From: Stefan Schmiedl Date: 2005-08-31T03:31:25+09:00 Subject: Re: vim user switch to emacs? On Tue, 30 Aug 2005 23:37:54 +0900, Christian Neukirchen wrote: > Josef 'Jupp' SCHUGT writes: > >> When people hear me say "Emacs is great. It only lacks a good editor." >> they first think that is meant to be a funny remark. It is not. Emacs >> is a great program I use for many tasks but when it comes to quite >> advanced editing tasks I usually save the file, do the complex editing >> in vim, then switch back to Emacs. > > Hmm, I'm curious. Can you show me a sample task that made you switch > to vim? The global command, for example: :%g/\[CRON\]/d deletes all (uninteresting) cron entries in my auth.log :%g/Customer$/s/\([^ ]*\) \([^ ]*\)/&2, &1/g .... give and take a few \ in front of parentheses ... exchanges the first and second space delimited word in lines ending with Customer Being able to record arbitrary command sequences like (not a real life example) df.3j04 p (cut upto and including . and paste the deletion 3 lines down after column 4) and of course my favourite vim application: vimoutliner (www.vimoutliner.org) all of this without breaking my fingers because of the unlucky positioning of CTRL. s.