[Techtalk] VI(M) - Changing & Merging 2 lines?
Conor Daly
conor.daly at oceanfree.net
Mon Sep 1 19:57:03 EST 2003
On Mon, Sep 01, 2003 at 11:29:21AM -0400 or so it is rumoured hereabouts,
Subba Rao thought:
>
> The fields should be seperated by a comma.
>
> Line1,Line2
>
> How can I define a keystroke that will,
> add a comma at the end of Line1
> perform a JOIN of Line1 and Line2
> move the cursor to the next record?
The keystrokes are:
<J><r><,><j>
so it should be just a matter of defining a macro to do that. Something
like:
:map <F6> Jr,j
works for me. If you want to put it in your .vimrc, leave off the leading ':'
Conor
--
Conor Daly <conor.daly at oceanfree.net>
Domestic Sysadmin :-)
---------------------
Faenor.cod.ie
7:49pm up 15 days, 2:22, 0 users, load average: 0.00, 0.00, 0.00
Hobbiton.cod.ie
7:47pm up 15 days, 2:21, 1 user, load average: 0.04, 0.08, 0.02
More information about the Techtalk
mailing list