Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "- Movement Between Vim Panes
- nnoremap ,h <C-W>h| " Move focus left
- nnoremap ,l <C-W>l| " Move focus right
- nnoremap ,j <C-W>j| " Move focus down
- nnoremap ,k <C-W>k| " Move focus up
- nnoremap ,H <C-W>H| " Move pane left
- nnoremap ,L <C-W>L| " Move pane right
- nnoremap ,J <C-W>J| " Move pane down
- nnoremap ,K <C-W>K| " Move pane up
- "- Vim Pane Size Changes
- " All Panes
- nnoremap ,= <C-W>= | " Make all panes equal-ish/symmetrical in size
- " Current Pane
- nnoremap ,- <C-W>- | " Shrink vertically; horizontally; takes optional count
- nnoremap ,+ <C-W>+ | " Expand vertically; takes optional count
- nnoremap ,_ <C-W>_ | " Expand vertically as much as possible
- nnoremap ,> <C-W>< | " Shrink horizontally; takes optional count
- nnoremap ,< <C-W>> | " Expand horizontally; takes optional count
- nnoremap ,\| <C-W>\| | " Expand horizontally as much as possible
- " Note: In the above command, "\|" is equivalent to '|', so type ",|" to use.
- "- Other Vim Pane Movements
- nnoremap ,r <C-W>r | "
- nnoremap ,R <C-W>R | "
- nnoremap ,w <C-W>x | " Exchange current pane with next; takes optional count
- nnoremap ,o <C-W>o | " View only current pane
- " Open panes
- nnoremap ,e :e | " Edit specific file
- nnoremap <silent> ,hn :new<cr> | " New file in split
- nnoremap <silent> ,vn :vne<cr> | " New file in vsplit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement