Skip to content

hotoo/highlight-cursor-word.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

README

Highlight words which under the cursor.

ScreenShot

Install

Vundle:

Plugin 'hotoo/highlight-cursor-word.vim'

autocmd CursorMoved,CursorHold *.php,*.jsp silent! call HighlightCursorWord()

If you want highlight every filetypes, try:

autocmd CursorMoved,CursorHold * silent! call HighlightCursorWord()

Default support:

  • *.js
  • *.java
  • *.cs
  • *.c
  • *.cpp
  • *.h
  • *.ts
  • *.jsx
  • *.tsx
  • *.py
  • *.rb

want support more filetypes by default? Fork & Pull Request please.

Options

g:highlight_cursor_word_white_list

If you use https://github.com/neoclide/vim-jsx-improve for javascript, you should use the following configuration.

let g:highlight_cursor_word_white_list = {
      \ 'javascript': '*',
      \ 'javascriptreact': '*'
      \ }

also you can specify the syntax name:

let g:highlight_cursor_word_white_list = {
      \ 'javascript': 'jsVariableDef,jsDestructuringBlock',
      \ }

About

Highlight words which under text-cursor(caret) for Vim.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages