Efraim Yawitz schrieb: > On Mon, Jul 6, 2009 at 5:46 PM, Andy Wokula <[email protected]> wrote: > >> This works for me: >> >> :g/abc/inser...@line1\^@Line2 >> >> where ^@ is one character inserted with CTRL-V_CTRL-J or CTRL-K_N_U etc. > > Right, that works fine, but is that what the help means?
I'm not sure, but it looks like a bug -- the NL is confusing and readability is gone. see also Tim's post ... And to make it work within a script, a different notation is required: :exec "g/abc/insert\\\nLine1\\\nLine2" Anyway: :insert is an old Vi thing -- as help states, it can also confuse :if statements etc, so I'd only use it in very "simple" situations. -- Andy --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
