Search in the current line in Vim? -


I like incremental search ( / pattern> ) in vim, which is when I'm typing it. But this file is in the field. Is it possible to search in the current line and wrap it while reaching the end of the line? This will help speed up navigation in a row, so it would be great if no additional (more) major strokes are offered.

You can do something like this.

  noremap & lt; F6 & gt; /\%<C-R>=line('.')<CR>l  

To match this current \% l atom Uses the line For example, \% 15l matches matches 15. It prohibits search for that line. See : h \% l . To get the current line number, we use expression register and line function.


Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -