Advertisement
Guest User

Untitled

a guest
Feb 13th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.31 KB | None | 0 0
  1. "- Movement Between Vim Panes
  2. nnoremap ,h <C-W>h| " Move focus left
  3. nnoremap ,l <C-W>l| " Move focus right
  4. nnoremap ,j <C-W>j| " Move focus down
  5. nnoremap ,k <C-W>k| " Move focus up
  6. nnoremap ,H <C-W>H| " Move pane left
  7. nnoremap ,L <C-W>L| " Move pane right
  8. nnoremap ,J <C-W>J| " Move pane down
  9. nnoremap ,K <C-W>K| " Move pane up
  10.  
  11. "- Vim Pane Size Changes
  12. " All Panes
  13. nnoremap ,=  <C-W>=  | " Make all panes equal-ish/symmetrical in size
  14. " Current Pane
  15. nnoremap ,-  <C-W>-  | " Shrink vertically; horizontally; takes optional count
  16. nnoremap ,+  <C-W>+  | " Expand vertically; takes optional count
  17. nnoremap ,_  <C-W>_  | " Expand vertically as much as possible
  18. nnoremap ,>  <C-W><  | " Shrink horizontally; takes optional count
  19. nnoremap ,<  <C-W>>  | " Expand horizontally; takes optional count
  20. nnoremap ,\| <C-W>\| | " Expand horizontally as much as possible
  21. " Note: In the above command, "\|" is equivalent to '|', so type ",|" to use.
  22.  
  23. "- Other Vim Pane Movements
  24. nnoremap ,r <C-W>r | "
  25. nnoremap ,R <C-W>R | "
  26. nnoremap ,w <C-W>x | " Exchange current pane with next; takes optional count
  27. nnoremap ,o <C-W>o | " View only current pane
  28.  
  29. " Open panes
  30. nnoremap          ,e :e        | " Edit specific file
  31. nnoremap <silent> ,hn :new<cr> | " New file in split
  32. nnoremap <silent> ,vn :vne<cr> | " New file in vsplit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement