[wellylug] vim question
Tony Booth
Tony.Booth at treasury.govt.nz
Tue Sep 9 12:49:17 NZST 2003
You could try putting something like this in your .vimrc file (or typing
it in directly in vim to test):
:map <F2> :w<CR>
I think (no Linux box at work to test on) that will let you press F2 to
do a normal save of the file. Remove the <CR> if you just want :w
echoed. If you do that, you will need add a filename or press the enter
key to complete the command after pressing F2.
I hope this works.
Cheers
Tony
-----Original Message-----
From: Brenda Wallace [mailto:brenda at wallace.net.nz]
Sent: Tuesday, 9 September 2003 12:36 p.m.
To: welly Lug
Subject: [wellylug] vim question
i have vim rsi in my righthand :-(
too many times pressing :w
it's the shift-colon that's doing.
is it possible and easy to change the commands for save to something
else, like a semicolon instead of a colon?? then i won't need to press
the shift key.
thanks
-Brenda
--
Brenda Wallace
DDI +64 4 916 7213
Catalyst IT, P O Box 11053, Manners Street
Level 2, 150-154 Willis Street, Wellington
--
Wellington Linux Users Group Mailing List: wellylug at lists.naos.co.nz To
Leave: http://lists.naos.co.nz/mailman/listinfo/wellylug
More information about the wellylug
mailing list