News for hackers. Stuff that matters.
Re:Essential Vim by nitrogen on Tuesday June 29, 2010 @12:59AM (#1470445)
It would be nice if that table included the full versions of some of the commands. For example:

  :sp is equivalent to :split
  :vs is equivalent to :vsplit
For me at least, the abbreviated commands become more intuitive if I know exactly what's being abbreviated (most of the time I type :vsplit instead of :vs anyway).
Re:Essential Vim by sigzero on Tuesday June 29, 2010 @08:51AM (#1471190)
I like to know the long version before I start abbreviating things too.
Re:Essential Vim by koenigdavidmj on Monday June 28, 2010 @10:38PM (#1470194)
Poor guy uses the Insert key to get into insert mode. My wrists already feel pain just from reading that.

A lot of his keybindings are are similarly nonstandard.

Re:Essential Vim by nitrogen on Tuesday June 29, 2010 @12:57AM (#1470441)
I almost never use i to get into insert mode. I use a or o almost exclusively.
Re:Essential Vim by BoppreH on Monday June 28, 2010 @10:45PM (#1470208)
Thanks for the heads up. I was already bookmarking it to practice.
Re:Essential Vim by alexkay on Monday June 28, 2010 @10:49PM (#1470214)
Same for Esc to leave it, C-[ works much better.
Re:Essential Vim by pssdbt on Monday June 28, 2010 @10:56PM (#1470232)
Or C-c.

Also pretty popular to remap capslock to esc, I tried it but never got used to it.

Re:Essential Vim by masterj on Monday June 28, 2010 @11:32PM (#1470291)
I have kj mapped to Esc here. Right on the home row, and almost never comes up in the english language.
Re:Essential Vim by steve19 on Tuesday June 29, 2010 @12:17AM (#1470380)
Can you explain how to do this?
Re:Essential Vim by bingaman on Tuesday June 29, 2010 @12:52AM (#1470433)
imap kj <Esc>
Re:Essential Vim by crazydiamond on Tuesday June 29, 2010 @05:03AM (#1470879)
A lot of folks map jj for ESC and uu for underscore. However, what this means is that on typing j or u, vim waits for the next keystroke before displaying or doing anything.

I can't remember where this used to hit me. Perhaps some abbreviation with u ?? I notice I've commented off "uu" but still have "jj".

I still go up and slam the ESC key after 20 years of vimming. How do i get into the habit of C-[ ?

Re:Essential Vim by sigzero on Tuesday June 29, 2010 @08:54AM (#1471196)
The habit is only formed by training. When I first started learning Vim I used the arrow keys for navigation. I recently null'd them out so the don't work. I couldn't do a damn thing. I still use the arrow keys.
Re:Essential Vim by steve19 on Sunday July 04, 2010 @06:48PM (#1486573)
thanks
Re:Essential Vim by vollmond on Tuesday June 29, 2010 @07:48AM (#1471062)
Here's a vote for the capslock/esc remap. I've got it as a global remap and have gotten used to it in other apps as well (canceling a dialog, for instance). Couldn't live without it.
Re:Essential Vim by Vitaly on Tuesday June 29, 2010 @07:57AM (#1471084)
I have capslock remapped globally to control on the OS level.
Re:Essential Vim by xtho on Tuesday June 29, 2010 @08:07AM (#1471104)
c-[ is Escape (displayed as ^[ in vim). Also, it isn't obvious for beginners where c-[ is located on non-English keyboards. And it's two keys to press. I'd still prefer Esc. The fact that the key is usally located outside of the main typing area reflect its meaning. Get me out of here.
Re:Essential Vim by ssx on Tuesday June 29, 2010 @01:39AM (#1470524)
Vim is awesome. NERDTree is a must for any developer.
Re:Essential Vim by Vitaly on Tuesday June 29, 2010 @07:59AM (#1471087)
a good collection of vim plugins and configs (with an awesome README) can be found here: http://github.com/astrails/dotvim
Re:Essential Vim by epistemenical on Tuesday June 29, 2010 @01:42AM (#1470529)
> If you are transitioning from windows, then in order of preference you will probably want to use, evim, gvim, vim.

What advantage does console vim have over gvim

Re:Essential Vim by telemachos on Tuesday June 29, 2010 @08:12AM (#1471112)
Probably "regular" vim goes last in that list because the author assumes Windows users are unfamiliar with the terminal. But it can be easier to open vim in the console for something quick or if you're doing something over the network (say, ssh). For example, I use the terminal often for quick commit messages or short edits and consistently for Mutt. Regular vim is easier with Mutt rather than kicking open G/Mvim and then returning to the terminal to send the mail. (You can automate the right return to focus for the terminal when you close G/Mvim, but it's still a bit jarring.) For very long edits on a good connection, I will open sshfs and use M/Gvim, but in general ssh + vim is simpler.
Re:Essential Vim by jamesbritt on Tuesday June 29, 2010 @02:27AM (#1470612)
Plays nice with screen and tmux.
Re:Essential Vim by jimmyjim on Tuesday June 29, 2010 @12:51AM (#1470430)
Now, someone give me the equivalent 'Essential Emacs' link please! =)
Re:Essential Vim by crazydiamond on Tuesday June 29, 2010 @05:08AM (#1470885)
Please go to the catonmat site. It has cheat sheets for vim, emacs and a bunch of other useful things.

There's also a ruby gem named "cheat" which has cheatsheets for 100's of commands and programs. you can access them on your command-line.