Highlight all occurrence of a selected word?

后端 未结 15 1680
难免孤独
难免孤独 2020-12-12 10:05

How can I highlight all occurrence of a selected word in GVim, like in Notepad++?

15条回答
  •  自闭症患者
    2020-12-12 10:15

    For example this plugIns:

    • https://github.com/rrethy/vim-illuminate

    • https://github.com/itchyny/vim-cursorword

    Just search for under cursor in vimawesome.com

    The key, as clagccs mentioned, is that the highlight does NOT conflict with your search: https://vim.fandom.com/wiki/Auto_highlight_current_word_when_idle

    Screen-shot of how it does NOT conflict with search: Notes:

    • vim-illuminate highlights by default, in my screen-shot I switched to underline
    • vim-illuminate highlights/underlines word under cursor by default, in my screen-shot I unset it
    • my colorschemes are very grey-ish. Check yours to customize it too.

提交回复
热议问题