On 14/10/2012 09:57 a.m., Dotan Cohen wrote:
> On Sun, Oct 14, 2012 at 3:30 PM, Marcin Szamotulski<[email protected]> wrote:
>> Yes there is one, you could use C at the beginning of a line, but you
>> have to yank the line with y$ rather than Y (to not catch the EOL)
>> Explicitly you can use this: press C, now you are in the insert mode,
>> and press ^r0 (i.e. CTRL-R0) and ESC. The `-` might also be helpful, it
>> jumps to the beginning of the previous line.
>>
>
> Great, Marcin, thank you! I must do `0.` for each line but that is fine.
>
> This is quite why I love VIM and don't even consider any other text
> editor even with all my contemporaries on IDEs. I _felt_ that there
> had to be a simple way to do this task in VIM. That's just VIM. Thank
> you Marcin for showing me the bits of VIM that I was missing.

In tha case you could use S instead of C, then CTRL-R0 and ESC. Then you
only need to use '.'

--
Cesar

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