Re: put = and newline
> :for i in range (1,10)| put =' \n'.i | endforSingle quotes treat characters without any special meaning. So you
> the above doesn't print new line as i expected , even \r didnt' help.
need to use double quotes for interpolation.
Working similar alternatives are:
for i in range (1,10)| exe 'put = "\n"'.i | endfor
for i in range (1,10)| put =expand(\"\n\").i | endfor
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