Check this Vim tip: Search for visually selected text
Or you can simply yank the selected text with y and go to search mode /, then you can paste the last yanked text with Ctrl+R 0
CMS
@CMS. Thanks. Great tip! Using :reg to see what's in your registers and then using cntl-R N to get what's in register N is excellent! – Rob Wells Dec 15 '08 at 20:22
Referenece:
http://stackoverflow.com/questions/363111/search-for-selection-in-vim
Sunday, August 8, 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment