sinbad wrote:
> how to print a new line in put command in vim
>
> :for i in range (1,10)| put =' \n'.i | endfor

A string like 'this' treats backslash as just another character.

A string like "this\none" interprets \n as newline.

If you just want the numbers, see:
http://vim.wikia.com/wiki/Increasing_or_decreasing_numbers

If you want numbers with blank line between try this:

:for i in range (1,10)| put =\" \n\".i | endfor

In the last line, the backslash is necessary if you enter the
command on the command line because " introduces a comment.

John

-- 
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

Reply via email to