vim - Search current line in ZSH (vi mode) -


how search/navigate within current line in zsh? example, if cursor @ end of line..

// [] indicates cursor position user@hostname: vim /etx/apache2/sites-enabled/defaul[t] 

in vi normal mode, i'd use backward-search (?), type etx , have cursor move so:

// [] indicates cursor position user@hostname: vim /[e]tx/apache2/sites-enabled/default 

however, / , ? mapped history search, not inline search. know can type 9b , there, find searching , moving match easier counting number of words jump.

not sure if clear @ all, let me know if need clarify things.

i hope understood right. want in zsh command line, move cursor faster when type commands.

e.g.

user@hostname: vim /etx/apache2/sites-enabled/defaul[t] 

you want move first e

i don't use vi-binding, f , f friends.

in example, 5fe move backwards 5th e . if don't want count, fe, press ;, till moves right position.

check vim detail:

:h f :h f 

also faster way 0fe, example. moving cursor beginning, e

if misunderstood question, please leave comment, remove answer.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -