On Sat, August 13, 2011 12:20 pm, John Beckett wrote: > I want to insert the following line after the current line: > abc "def" ghi > > This command works (each quote is escaped): > :put ='abc \"def\" ghi' > > These commands also work (no escaping): > :let line = 'abc "def" ghi' > :put =line > > But this command fails (the first quote starts a comment): > :put ='abc "def" ghi' > > Why does :let not require escaping, but :put does? > > The above is simplified from the original which uses :argdo > to put the text into multiple files.
No one has answered, so let me guess. I would expect, that historically :put allowed trailing commands while :let would not allow it simply to be able to parse quoted strings correctly. regards, Christian -- 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
