[CentOS] Slightly OT: Vim command (or macro) to replace space under cursor by " " (without deleting the following word)
Alfred von Campe
alfred at von-campe.comMon Oct 5 10:23:39 UTC 2009
- Previous message: [CentOS] Slightly OT: Vim command (or macro) to replace space under cursor by " " (without deleting the following word)
- Next message: [CentOS] Slightly OT: Vim command (or macro) to replace space under cursor by " " (without deleting the following word)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <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
- Previous message: [CentOS] Slightly OT: Vim command (or macro) to replace space under cursor by " " (without deleting the following word)
- Next message: [CentOS] Slightly OT: Vim command (or macro) to replace space under cursor by " " (without deleting the following word)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list