~gpanders/dotfiles

ref: c8e63bac959db19c138dcc3198a56514f0b444ff dotfiles/.vim/autoload/cursorline.vim -rw-r--r-- 326 bytes
c8e63bacGreg Anders Manage dotfiles directly in home directory 1 year, 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
function! cursorline#toggle(enable)
  if a:enable
    if index(get(g:, 'cursorline_blacklist', []), &ft) < 0 && exists('b:cul')
      let &l:cursorline = b:cul
    endif
  else
    if index(get(g:, 'cursorline_blacklist', []), &ft) < 0
      let b:cul = &l:cursorline
      let &l:cursorline = 0
    endif
  endif
endfunction