Skip to content

Instantly share code, notes, and snippets.

@cyx
Created April 19, 2010 05:36
Show Gist options
  • Save cyx/370775 to your computer and use it in GitHub Desktop.
Save cyx/370775 to your computer and use it in GitHub Desktop.
:noremap ,l <C-w>l
:noremap ,h <C-w>h
:noremap ,j <C-w>j
:noremap ,k <C-w>k
:noremap ,v :vsp<CR>:enew<CR>
:noremap ,s :split<CR>:enew<CR>
" Maximize current window
:noremap ,- <C-W>_
" New split, then maximize
:noremap ,N <C-W>n<C-W>_
" Even out all windows
:noremap ,? <C-W>n<C-W>H<C-W>q
:noremap ,c :only<CR>
:noremap J <Esc><C-w>j<C-w>_
:noremap K <Esc><C-w>k<C-w>_
" Even out all columns, then maximize all columns
map ,/ <C-W>n<C-W>H<C-W>q<C-W>t<C-W>_<C-W>l<C-W>_<C-W>l<C-W>_<C-W>l<C-W>_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment