Skip to content

Instantly share code, notes, and snippets.

@kates
Created September 6, 2013 09:34
Show Gist options
  • Save kates/6461610 to your computer and use it in GitHub Desktop.
Save kates/6461610 to your computer and use it in GitHub Desktop.
Hide cursorcolum and cursorline in inactive window
augroup CrossHair
au!
au VimEnter * setlocal cursorline
au WinEnter * setlocal cursorline
au BufWinEnter * setlocal cursorline
au WinLeave * setlocal nocursorline
au VimEnter * setlocal cursorcolumn
au WinEnter * setlocal cursorcolumn
au BufWinEnter * setlocal cursorcolumn
au WinLeave * setlocal nocursorcolumn
augroup end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment