Skip to content

Instantly share code, notes, and snippets.

@hayajo
Created August 5, 2011 04:02
Show Gist options
  • Save hayajo/1126900 to your computer and use it in GitHub Desktop.
Save hayajo/1126900 to your computer and use it in GitHub Desktop.
set cursorline only current window - vim
" set cursorline only current window
augroup cch
autocmd! cch
autocmd WinLeave * set nocursorline
autocmd WinEnter,BufRead * set cursorline
augroup END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment