Re: [CentOS] Slightly OT: Vim command (or macro) to replace space under cursor by nbsp; (without deleting the following word)

2009-10-05 Thread Alfred von Campe
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 nbsp; : :map F2 cwnbsp;ESC ... except this also deletes the word after the cursor, which is annoying. Any suggestions ? Have you tried

Re: [CentOS] Slightly OT: Vim command (or macro) to replace space under cursor by nbsp; (without deleting the following word)

2009-10-05 Thread Niki Kovacs
Alfred von Campe a écrit : Have you tried the s command (substitute) instead of cw? Alfred Alfred, you're a star ! Thanks very much ! Niki ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos

Re: [CentOS] Slightly OT: Vim command (or macro) to replace space under cursor by nbsp; (without deleting the following word)

2009-10-05 Thread John R Pierce
Niki Kovacs wrote: :map F2 cwnbsp;ESC ... except this also deletes the word after the cursor, which is annoying. c1lnbsp;esc thats digit 1, lower case letter L, lower L being the move left command. the 1 is uneeded, but c3l would change 3 characters, etc. btw, my favorite way of