vim - Move to start and end of search lookup -


in vim/gvim able move front , end of current search lookup. possible?

for example, file:

a dog , cat hat , bat 

i able perform search, example /dog\sand , able move beginning of 'dog and' expression end , cursor starts on column 3, under letter 'd' of word 'dog' , moves column 9 under letter 'd' or word 'and'.

the reason want able can search expression , use change command, c, combined movement command replace particular search expression. don't want use substitue , replace here, want perform operation using change command , movement key.

you can change end of match c//e<cr>. , //<cr> take beginning of next match. work out kind of bindings make sense. instance tried following, , seems work nicely:

:onoremap <silent>m //e<cr> 

so can cm change match. i'm not sure map //<cr> to, though. tried mapping n, , seemed work fine. don't know if problem you.

:nnoremap <silent>n //<cr> 

Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -