From: Randy Kramer Date: 2005-09-01T01:16:52+09:00 Subject: Re: vim user switch to emacs? Top posting to say, if you're looking for (or to recommend) an editor and you're considering vim or emacs, I'd recommend considering nedit as well. In many ways it's almost as powerful as emacs (ignoring the emacs as an OS syndrome), including such features as regular expressions, macros, recordable keyboard macros (which can be editied to include any macro command or construct available), (programmable) syntax highlighting, the possiblity to do folding by virtue of macros (the text is, unfortunately, truly folded instead of hidden--this may be its biggest weak point), but encased in a much more modern GUI with "traditional" (Windows like) menus and keyboard shortcuts. At a quick glance, I believe that all of the tasks mentioned below can be done in nedit (but I might not respond to any challenge to prove it, at least not at the moment). Randy Kramer On Wednesday 31 August 2005 11:01 am, Stefan Schmiedl wrote: > On Wed, 31 Aug 2005 22:20:46 +0900, Christian Neukirchen wrote: > >> The global command, for example: > >> :%g/\[CRON\]/d deletes all (uninteresting) cron entries in my auth.log > > > > C-x h M-x flush-lines \[CRON\] RET > > vim lets you put any command after the global pattern. How does emacs solve > this with its interactive parameter queries? > > >> :%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 > > > > M-% ... RET ... ! > > I don't know enough emacs to see through the dots, but that's not > important. > > >> 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) > > > > C-x ( M-z . M-3 C-n C-a M-4 C-f C-y C-x ) > > That's the main difference for me. I just can't remember all those > meta/control combinations. the vim command maps better to my brain. > > >> all of this without breaking my fingers because of the unlucky > >> positioning of CTRL. > > > > Just curious: How do you leave vim's input mode? > > with a swish of the hand to the ESC button ... don't ask how often > I hit ESC while I typed this message in Opera ... > > s.