1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 07:08:01 +00:00

Add Enabling Vi Mode as a tmux til.

This commit is contained in:
jbranchaud
2015-12-13 07:53:07 -06:00
parent 0190e70057
commit 7e38e81bf2
2 changed files with 14 additions and 0 deletions

View File

@@ -212,6 +212,7 @@ smart people at [Hashrocket](http://hashrocket.com/).
- [Adjusting Window Pane Size](tmux/adjusting-window-pane-size.md) - [Adjusting Window Pane Size](tmux/adjusting-window-pane-size.md)
- [Create A Named tmux Session](tmux/create-a-named-tmux-session.md) - [Create A Named tmux Session](tmux/create-a-named-tmux-session.md)
- [Cycle Through Layouts](tmux/cycle-through-layouts.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) - [Jumping Between Sessions](tmux/jumping-between-sessions.md)
- [List All Key Bindings](tmux/list-all-key-bindings.md) - [List All Key Bindings](tmux/list-all-key-bindings.md)
- [Organizing Windows](tmux/organizing-windows.md) - [Organizing Windows](tmux/organizing-windows.md)

13
tmux/enabling-vi-mode.md Normal file
View File

@@ -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.