Emacs style highlighting for inc

I realize that this question has been posed before on this forum, but I didn't find an answer so here goes..

In Vim, is there a way to enable on-the-fly highlighting for all matches when searching?

If I enable incsearch and type "/something" it will highlight the first match only. If I enable hlsearch and type "/something", nothing happens until I press enter (it only highlights the previous search).

In emacs the first match will be highlighted, and (after a slight delay) all other matches on the screen are highlighted in a different color, giving almost instant feedback when scanning for matches in a piece of code.


use the n-search feature of easy-motion , it does exactly what you need(look in the gif demo) BONUS: it also dims down the background for you that really makes searching easy

https://github.com/Lokaltog/vim-easymotion#n-character-search-motion


You can do this with the incsearch.vim plugin:

Emacs-like incsearch:在增量搜索时移动光标

You need to first install the plugin and bind <Over>(incsearch-...) .


You are looking for :set incsearch together with hlsearch. However all hits will have the same color.

链接地址: http://www.djcxy.com/p/25922.html

上一篇: 将视频从Android相机流式传输到服务器

下一篇: 针对inc的Emacs风格突出显示