Sunday, January 20, 2013

Re: How to add two lines in vim?

On Jan 20, 3:13 pm, Bee <fo...@calcentral.com> wrote:
> On Jan 20, 2:52 pm, Peng Yu <pengyu...@gmail.com> wrote:
>
> > Hi,
>
> > O can only add one lines. I'm wondering if there is a built in command to add two lines at a time in vim. Does anybody know?
>
> > Thanks,
> > Peng
>
> If you do 2O<return><esc> you will have two lines
> --OR--
> try 22O<return><esc> and you will have 22 new lines
>
> Bill

Correction:

2O<esc>i
--OR--
22O<esc>i

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

No comments: