Sunday, August 8, 2010

Search for selection in vim visual mode

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. 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


No comments: