xiyaowong/nvim-cursorword

github github
cursorline
star 90
stars
alert-circle 1
open issues
users 2
subscribers
git-branch 6
forks
CREATED

2021-06-28

UPDATED

3 months ago


nvim-cursorword

Part of nvim-cursorline.

screenshot

feature

Only highlight the word under the cursor.

Options

" disable highlighting for some filetypes
let g:cursorword_disable_filetypes = []

" disable highlighting at startup.
" run :CursorWordEnable or :CursorWordToggle to activate highlighting
let g:cursorword_disable_at_startup = v:true

" min width of word
let g:cursorword_min_width = 3

" max width of word
let g:cursorword_max_width = 50

Commands

:CursorWordDisable
:CursorWordEnable
:CursorWordToggle

highlight

by default

hi default CursorWord cterm=underline gui=underline