Yakov Lerner wrote: > I wanted to insert multiline text using :call append(). > > 1. I tried :call append(1, "a\nb\n"); > -- Not good, insert null-bytes (^@) > 2. I tried :call append(1, "a\rb\r") > -- Not good, inserts ^M (I'm on Linux) > 3. I tried :call append(1, "a\<CR>b\<CR>") > Not good, same as (2) > > So, how do I append() multiline text ?
:call append(1, ["a", "b"]) :call append(1, split("a\nb")) -- It's totally unfair to suggest - as many have - that engineers are socially inept. Engineers simply have different objectives when it comes to social interaction. (Scott Adams - The Dilbert principle) /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///