Closed tenfyzhong closed 9 years ago
augroup cursorword autocmd! autocmd VimEnter,ColorScheme * call cursorword#highlight() autocmd VimEnter,WinEnter,BufEnter,CursorMoved,CursorMovedI * call cursorword#matchadd() augroup END
should be
augroup cursorword autocmd! autocmd VimEnter,WinEnter,BufEnter,ColorScheme * call cursorword#highlight() autocmd VimEnter,WinEnter,BufEnter,CursorMoved,CursorMovedI * call cursorword#matchadd() augroup END
No. Defining a highlight is enough on Vim's startup and when user changes the colorscheme.
augroup cursorword autocmd! autocmd VimEnter,ColorScheme * call cursorword#highlight() autocmd VimEnter,WinEnter,BufEnter,CursorMoved,CursorMovedI * call cursorword#matchadd() augroup END
should be
augroup cursorword autocmd! autocmd VimEnter,WinEnter,BufEnter,ColorScheme * call cursorword#highlight() autocmd VimEnter,WinEnter,BufEnter,CursorMoved,CursorMovedI * call cursorword#matchadd() augroup END