Tuesday, June 11, 2019

multi line find in files and replace?

sorry, new to google groups in general, i dont know how to handle links properly.

https://reddit.com/r/vim/comments/buvs49/quest_noob_friendly_mass_select_copy_search
shortened TL:DR
select lines of text, copy to register, search for string in files, replace.
a look of what i want to do is shown in https://github.com/brooth/far.vim#multiline-replacement

from some digging around
https://vim.fandom.com/wiki/Search_and_replace
says we can use registers while using subs, but i somehow cant use <c-r> (and <c-v> in behave mswin) as both search and replace parameters. but, with \+@ i can freely use any reg as the replace param.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/d9191bae-7d42-43f3-8205-7955f3b93ea3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: