Re:Vim is a great text editor - try it
by RiderOfGiraffes on Friday October 02, 2009 @09:15AM
(#856935)
You're replying to the wrong person - vim is my primary editor. I'm ranting about the stupidity of the phrase "Steep learning curve."
heh, I guess I misread what it was you were ranting about; I took it to mean that you hate any sort of learning curve when it comes to editors. Thanks for clarifying!
You left out hjkl and C-bnpf, the cursor. And / and C-s, search. These are the only things I know in vi but it makes it barely usable for config.
Re:Vim is a great text editor - try it
by silentbicycle on Friday October 02, 2009 @01:29PM
(#857520)
If you're using vi/vim for real programming, you'll want to know about tag searching as well - it's one of the better ways to deal with multi-file source code. In both nvi and vim, control-] jumps to the tag under the cursor, and control-t pops back to the previous context. (You'll need to run a program such as ctags on the source to create the tag index first.)
The commands you demonstrate are not going to convince anybody that Vi(m) is a great editor. Not at all.
Emacs can be treated similiarly: C = control M = "meta", usually the alt or option key. You can use escape if you want.
For emacs, it may be easier to start with cua mode - Cua mode gives you a copy, cut and paste that works the same as your operating system.