Created
August 26, 2013 08:14
-
-
Save cobodo/6339124 to your computer and use it in GitHub Desktop.
カーソル行をハイライトしつつ縦分割時の隣のバッファはハイライトしないやつ。どっかで拾ったけど忘れた。
This file contains 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
set cursorline | |
if has('autocmd') | |
augroup cch | |
autocmd! cch | |
autocmd WinLeave * set nocursorline | |
autocmd WinEnter,BufRead * set cursorline | |
augroup END | |
endif | |
:hi clear CursorLine | |
:hi CursorLine gui=underline | |
highlight CursorLine ctermbg=lightblue guibg=lightblue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment