Skip to content

Instantly share code, notes, and snippets.

@cobodo
Created August 26, 2013 08:14
Show Gist options
  • Save cobodo/6339124 to your computer and use it in GitHub Desktop.
Save cobodo/6339124 to your computer and use it in GitHub Desktop.
カーソル行をハイライトしつつ縦分割時の隣のバッファはハイライトしないやつ。どっかで拾ったけど忘れた。
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