Thursday, December 23, 2010

Re: How to keep indent when pasting in gvim?

On 12/23/2010 07:32 PM, Yegappan Lakshmanan wrote:
> Hi,
>
> On Thu, Dec 23, 2010 at 3:39 PM, AK<andrei.avk@gmail.com> wrote:
>> When pasting something into gvim from a webpage, I almost always prefer to
>> keep my current indent level for all subsequent lines of a paste that have 0
>> indent and add to current level if lines do have indent.
>>
>
> You can use the ]p command to paste the text and indent to the current line.
> If you want the text to be inserted literally, then you can use the
> CTRL-R CTRL-O * command.
>
> These are explained in the following help:
>
> :help ]p
> :help i_CTRL-R_CTRL-O
>
> - Yegappan
>

Thanks! ctrl-r ctrl-o + works like a charm. -ak

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