* Igor <[email protected]> [2020-09-19 12:55]: > I have the following sample text file: ... > *REPLACE RULE:* > I need to replace string "aaa" with "bbb" > only in paragraphs that starts with "XXX".
:g/^XXX/?^$?,/^$/s:aaa:bbb:g i wish i could write that with less characters. ;) Sven -- #Kielux2020 https://kielux.de Sep18+19 11-19h, 10-18h 18. Kieler Open Source und Linux Tage 2020-09-08: 16 Vorträge + 8 Workshops http://www.guckes.net/kielux/schedule.html -- -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20200919120810.GA21150%40guckes.net.
