News for hackers. Stuff that matters.
Re:A mobile friendly Vim cheat sheet by getoffmalawn on Tuesday August 06, 2013 @12:11PM (#6167400)
Under "Working with multiple files", the split command is incorrect. It's not Ctrl+WQ; it's Ctrl+WS.
Re:A mobile friendly Vim cheat sheet by rtorr on Tuesday August 06, 2013 @12:40PM (#6167590)
Awesome find. I'll get that fixed.

EDIT: Looks like someone had a pull request for it. Merged.

Re:A mobile friendly Vim cheat sheet by redthrowaway on Tuesday August 06, 2013 @01:12PM (#6167792)
I'm a bit confused what the intended use case is, here. Is the idea to have it loaded on your tablet while programming on your laptop or desktop so you don't have to switch screens? Why not just print it out and pin it to the wall?
Re:A mobile friendly Vim cheat sheet by rtorr on Tuesday August 06, 2013 @01:17PM (#6167822)
I made a similar cheat sheet years ago as a PDF. It got some popularity around the developer community. I think it being html/an open source document, you can use it in many different ways (including printing it out and putting it on your wall). The fact that I have already received pull request I think shows it might be a good idea.
Re:A mobile friendly Vim cheat sheet by redthrowaway on Tuesday August 06, 2013 @02:01PM (#6168117)
I'm not saying I don't think people will find it useful, just that I don't get it. Still, it's clean and concise (and readily printable), so thanks!
Re:A mobile friendly Vim cheat sheet by ichinaski on Tuesday August 06, 2013 @01:01PM (#6167706)
"c$ - change (replace) to the end of line"

I find 'C' simpler for that command.

Re:A mobile friendly Vim cheat sheet by jrussino on Tuesday August 06, 2013 @02:06PM (#6168145)
Why doesn't 'Y' behave similarly? I've never understood this inconsistency in the default key bindings:

'c$' OR 'C' = change to end of line

'd$' OR 'D' = cut to end of line

'y$' = yank to end of line

'cc' = change entire line

'dd' = cut entire line

'yy' OR 'Y' = yank entire line

Re:A mobile friendly Vim cheat sheet by dokem on Tuesday August 06, 2013 @01:36PM (#6167944)
Should also mention:

  gg - top of file
  G - end of file
  5gg - go to line 5 (I find this easier than 5G)
  ciw - delete current word and enter insert mode
  yiw - copy current word
  zz - center cursor (its also nice to remap G to Gzz etc)
Re:A mobile friendly Vim cheat sheet by aaronmacy on Tuesday August 06, 2013 @02:05PM (#6168137)
one of these can be shortened: cw - deletes the current word & enters insert mode
Re:A mobile friendly Vim cheat sheet by bpeebles on Tuesday August 06, 2013 @11:39PM (#6170674)
Not quite: cw deletes until the end of the current word from the current position and then enters insert mode. ciw deletes the entire your current position is in and enters insert mode. Go ahead and try them.
Re:A mobile friendly Vim cheat sheet by dokem on Tuesday August 06, 2013 @07:02PM (#6169779)
Apparently yiw can be shortened to yw as well
Re:A mobile friendly Vim cheat sheet by dfinn on Tuesday August 06, 2013 @01:07PM (#6167745)
Very useful. Needs a few typo fixes, but it's bookmarked on my phone :)
Re:A mobile friendly Vim cheat sheet by tmimicus on Tuesday August 06, 2013 @01:24PM (#6167866)
It's missing my favorite commands - ci", ci{, and ci( - change (replace) inside quotes, brackets, and parens (respectively) pair under the cursor.
Re:A mobile friendly Vim cheat sheet by graywh on Tuesday August 06, 2013 @01:31PM (#6167907)
That's actually one command/operator (c) with different motions (in case, they're all text objects).
Re:A mobile friendly Vim cheat sheet by tmimicus on Tuesday August 06, 2013 @09:48PM (#6170346)
true, but isn't c$ similar in that sense? that one made the list...
Re:A mobile friendly Vim cheat sheet by toblender on Tuesday August 06, 2013 @02:35PM (#6168323)
I personally like :x Over :wq

Also a nice one is :Sex

For splitting windows and navigating the file system.

Re:A mobile friendly Vim cheat sheet by dsschnau on Tuesday August 06, 2013 @01:03PM (#6167719)
Looks awesome. Going over it I'm surprised how much Vim I know already without thinking.
Re:A mobile friendly Vim cheat sheet by harrytuttle on Tuesday August 06, 2013 @11:56AM (#6167307)
Actually just what I was after. Thanks for your efforts on this :)
Re:A mobile friendly Vim cheat sheet by tunnuz on Tuesday August 06, 2013 @12:01PM (#6167336)
Cool, thanks!