Last active
October 9, 2017 03:56
-
-
Save ashwin/4730799 to your computer and use it in GitHub Desktop.
Show cursorline only in active window of Vim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
augroup CursorLineOnlyInActiveWindow | |
autocmd! | |
autocmd VimEnter,WinEnter,BufWinEnter * setlocal cursorline | |
autocmd WinLeave * setlocal nocursorline | |
augroup END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment