Skip to content

Instantly share code, notes, and snippets.

@L1fescape
Created April 19, 2013 00:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save L1fescape/5417198 to your computer and use it in GitHub Desktop.
Save L1fescape/5417198 to your computer and use it in GitHub Desktop.
My settings for splitting in vim
" Splits
" switching splits
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
" resizing splits
map = <c-w>+
map - <c-w>-
map + <c-w><
map _ <c-w>>
" new splits
map <Bar> <c-w>v
map \ <c-w>n
" open new splits to right and bottom
set splitbelow
set splitright
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment