~gpanders/dotfiles

ref: c8e63bac959db19c138dcc3198a56514f0b444ff dotfiles/.vim/plugin/cursorline.vim -rw-r--r-- 422 bytes
c8e63bacGreg Anders Manage dotfiles directly in home directory 1 year, 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
" Highlight the current line in the current window but disable in Insert mode
" Author: Greg Anders <greg@gpanders.com>
" Date: 2019-02-25

if exists('g:loaded_cursorline')
  finish
endif
let g:loaded_cursorline = 1

let g:cursorline_blacklist = ['tex']

augroup plugin.cursorline
  autocmd!
  autocmd InsertEnter,WinLeave * call cursorline#toggle(0)
  autocmd InsertLeave,WinEnter * call cursorline#toggle(1)
augroup END