From 7e38e81bf290125df74d55b7c888077ef7722d59 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Sun, 13 Dec 2015 07:53:07 -0600 Subject: [PATCH] Add Enabling Vi Mode as a tmux til. --- README.md | 1 + tmux/enabling-vi-mode.md | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 tmux/enabling-vi-mode.md diff --git a/README.md b/README.md index 5d4f57d..c50eeb4 100644 --- a/README.md +++ b/README.md @@ -212,6 +212,7 @@ smart people at [Hashrocket](http://hashrocket.com/). - [Adjusting Window Pane Size](tmux/adjusting-window-pane-size.md) - [Create A Named tmux Session](tmux/create-a-named-tmux-session.md) - [Cycle Through Layouts](tmux/cycle-through-layouts.md) +- [Enabling Vi Mode](tmux/enabling-vi-mode.md) - [Jumping Between Sessions](tmux/jumping-between-sessions.md) - [List All Key Bindings](tmux/list-all-key-bindings.md) - [Organizing Windows](tmux/organizing-windows.md) diff --git a/tmux/enabling-vi-mode.md b/tmux/enabling-vi-mode.md new file mode 100644 index 0000000..1617bdd --- /dev/null +++ b/tmux/enabling-vi-mode.md @@ -0,0 +1,13 @@ +# Enabling Vi Mode + +If you'd like some vim-like bindings in tmux, you can turn on vi mode. To do +so, add the following line to your `.tmux.conf` file: + +``` +setw -g mode-keys vi +``` + +With this added and tmux re-sourced, you'll now have a variety of vi-like +bindings. For instance, when in tmux's copy mode, you can now use `v` to +begin making a visual selection and `y` to yank that selection into tmux's +copy buffer.