Sunday, August 23, 2009

Re: Replacing with c... and still seeing what was there before

Nathan Huesken <vim@lonely-star.org> [09-08-23 15:23]:
>
> Hi,
>
> I was just watching this: http://vimeo.com/6170479 and saw something, which I liked and want too :).
> When he pressed "ctc" (to replace everything until the next c), vim was still showing him the word that was there before (with an $ at the end).
> When I do that, the word just gets deleted and I can insert, but I can not see what was there before ...
> How can I have it like him?
>
> Thanks!
> Nathan
>
> So
>

Hi Nathan!

in ~/.vimrc (Unix/Linux...dont know the place of that file on
Windows-machines, sorry...) add an '$' to your cpoptions.

set cpoptions +=$

HTH

Have a nice weekend!
Best regards,
mcc

>
--
Please don't send me any Word- or Powerpoint-Attachments
unless it's absolutely neccessary. - Send simply Text.
See http://www.gnu.org/philosophy/no-word-attachments.html
In a world without fences and walls nobody needs gates and windows.


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

No comments: