Skip to content

Instantly share code, notes, and snippets.

@ashwin
Last active October 9, 2017 03:56
Show Gist options
  • Select an option

  • Save ashwin/4730799 to your computer and use it in GitHub Desktop.

Select an option

Save ashwin/4730799 to your computer and use it in GitHub Desktop.

Revisions

  1. ashwin renamed this gist Feb 7, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. ashwin created this gist Feb 7, 2013.
    5 changes: 5 additions & 0 deletions gistfile1.vim
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    augroup CursorLineOnlyInActiveWindow
    autocmd!
    autocmd VimEnter,WinEnter,BufWinEnter * setlocal cursorline
    autocmd WinLeave * setlocal nocursorline
    augroup END