Skip to content

Instantly share code, notes, and snippets.

@chenkaie
Created February 8, 2010 00:36
Show Gist options
  • Save chenkaie/297789 to your computer and use it in GitHub Desktop.
Save chenkaie/297789 to your computer and use it in GitHub Desktop.
nmap - <C-w>-
nmap + <C-w>+
" Define different behavior in left/right window
if has("autocmd")
autocmd BufEnter,BufLeave *
\ if winnr() == 1 |
\ nmap < <C-w><|
\ nmap > <C-w>>|
\ else |
\ nmap < <C-w>>|
\ nmap > <C-w><|
\ endif |
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment