4 ms·
A mobile friendly Vim cheat sheet
- harrytuttle 13y agoActually just what I was after. Thanks for your efforts on this :)
- tunnuz 13y agoCool, thanks!
- getoffmalawn 13y agoUnder "Working with multiple files", the split command is incorrect. It's not Ctrl+WQ; it's Ctrl+WS.
- rtorr 13y agoAwesome find. I'll get that fixed. EDIT: Looks like someone had a pull request for it. Merged.
- ichinaski 13y ago"c$ - change (replace) to the end of line" I find 'C' simpler for that command.
- jrussino 13y agoWhy 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
- dsschnau 13y agoLooks awesome. Going over it I'm surprised how much Vim I know already without thinking.
- dfinn 13y agoVery useful. Needs a few typo fixes, but it's bookmarked on my phone :)
- redthrowaway 13y agoI'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?
- rtorr 13y agoI 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.
- redthrowaway 13y agoI'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!
- tmimicus 13y agoIt's missing my favorite commands - ci", ci{, and ci( - change (replace) inside quotes, brackets, and parens (respectively) pair under the cursor.
- dokem 13y agoShould 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)
- aaronmacy 13y agoone of these can be shortened: cw - deletes the current word & enters insert mode
- toblender 13y agoI personally like :x Over :wq Also a nice one is :Sex For splitting windows and navigating the file system.