3 ms·
> don’t forget you can yank, delete or change forward or backward to a search result. Did not know this! (although I've been on vim for ~a month) That's a grea
by vlunkr 10y ago
> don’t forget you can yank, delete or change forward or backward to a search result.
Did not know this! (although I've been on vim for ~a month) That's a great trick. Much easier than trying to count words.
- pjungwir 10y agoI agree it is very nice, although you should know one caveat: deleting/yanking with / and ? will do whole lines, so it may go past the match. deleting/yanking with t, T, f, and F will go up to just the char you want, but it won't search onto the next line. I wish there was a way to get a char-by-char multiline search, so I could e.g. cut/yank a whole sentence (something like d/.). But I haven't found it. I wonder if anyone else knows of a way?
- tomku 10y agoYou might find vim-sneak useful: https://github.com/justinmk/vim-sneak https://github.com/justinmk/vim-sneak. https://github.com/easymotion/vim-easymotion https://github.com/easymotion/vim-easymotion is another plugin that does something slightly different, but also useful.