Re: Slightly OT: Vim command (or macro) to replace space under cursor by "  " (without deleting the following word)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Oct 5, 2009, at 5:34, Niki Kovacs wrote:

> Here's what the according macro would look like. Pressing F2 would
> replace the space under the cursor by " " :
>
> :map <F2> cw&nbsp;<ESC>
>
> ... except this also deletes the word after the cursor, which is  
> annoying.
>
> Any suggestions ?

Have you tried  the "s" command (substitute) instead of "cw"?

Alfred

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux