~gpanders/dotfiles

ref: 2da1dde5ea566f82ebe6532bc6d3b8670fd77ce8 dotfiles/vim/.vim/plugin/cursorline.vim -rw-r--r-- 422 bytes
2da1dde5Greg Anders Note 'open' subcommand opens editor in NOTES_DIR when no argument given 1 year, 4 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