> How are you finding that "-c does not do exactly the same thing"? I > just issued: > > bash$ seq 20 > test.txt > bash$ ex -c '10s/$/hello' -c '15>' -c 'wq' test.txt
The result in the file is the same, but when I launch the command I see a kind of flash (like when something is opened and then closed and I have not enough time to see it well). Whereas with stdin, I do not see this flash, ex window is never opened in this case. Everything is done entirely silently. > >>For such an example, I'd use a combination of :put with the > >>expression register, which takes a list: > >> > >> :put=[var, 'line2', '.', 'that was a line with 1 period'] > > Just to be clear, I should have said ":put with the expression > register, which *can take* a list"...it's not limited to a list, but > for doing multiple lines, it's a very nice way to do it. A remark about :put =list I tried :put =[ 'str1', 'str2', '', 'str3', '' ] the '' are here to insert empty lines. The last one is not inserted. It seems that to obtain what I want I need two commands :put = [ 'str1', 'str2', '', 'str3' ] :put = [ '' ] Is there a solution with one command. I tried, adding '\n', somewhere but it seems I can't. Inside '', \n does not work and :put = does not like "" it seems. -- 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
