Skip to content

Instantly share code, notes, and snippets.

@sinefunc
Created April 14, 2010 20:06
Show Gist options
  • Save sinefunc/366268 to your computer and use it in GitHub Desktop.
Save sinefunc/366268 to your computer and use it in GitHub Desktop.
" Switch between windows, maximizing the current window
map ,.j <C-W>j<C-W>_
map ,.k <C-W>k<C-W>_
map ,.h <C-W>h<C-W>_
map ..l <C-W>l<C-W>_
map <C-J> <C-W>j<C-W>_
map <C-K> <C-W>k<C-W>_
map <C-H> <C-W>h<C-W>_
map <C-L> <C-W>l<C-W>_
" Maximize current window
map ,- <C-W>_
" New split, then maximize
map ,N <C-W>n<C-W>_
" Even out all windows (tile)
map ,? <C-W>n<C-W>H<C-W>q
" 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