TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Graphical Vim Cheatsheet

104 pointsby bryover 14 years ago

14 comments

tumultover 14 years ago
Important VIM tip that cheatsheets never mention for some reason: text objects. First, remember these two things: a for a, and i for 'inner'. 'daw' deletes a word under the cursor. 'diw' deletes the contents of a word (the 'inner' of a word) under the cursor.<p>What? How is that useful?<p>'das' deletes a sentence under the cursor. 'dap' deletes a paragraph under the cursor.<p>'da{' deletes the block of text that's currently surrounded by braces. 'ci(' deletes the inner content that's surrounded by parentheses and puts you in insert mode. 'gqap' reformats the contents of the paragraph under the cursor ('gqip' will end up leaving your cursor at the beginning of the paragraph instead of the end.)
评论 #2005297 未加载
评论 #2005024 未加载
评论 #2004921 未加载
评论 #2005469 未加载
评论 #2004742 未加载
评论 #2006116 未加载
Symmetryover 14 years ago
I've had that taped to my office wall since way back when I decided to use Vim. That, and the intermediate learning cheatsheets here were very useful. <a href="http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html" rel="nofollow">http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial...</a>
nuclear_eclipseover 14 years ago
Definitely be sure to give thanks to ViEmu for this great set of graphics, and if you happen to like Vim and use Visual Studio, give consideration to buying their plugin. It works incredibly well, and really helps me feel at home when writing software in Windows.
wahnfriedenover 14 years ago
It's a good sign of ViEmu's quality that they provide the standard Vim cheatsheet without any editing. I haven't used ViEmu myself, but their emulation seems extensive -- impressive given how limited to the point of uselessness Vi-emulating "keybindings" are for other software.
wallflyover 14 years ago
I had Office Depot print this cheat sheet: in color, legal-sized, double-sided, laminated with a heavy/stiff plastic and spiral bound. It now sits off to the side of my desk and has made for an invaluable reference over the past year.
sigzeroover 14 years ago
If you use Vim, snipMate is an awesome plugin to give you snippets.<p><a href="http://www.vim.org/scripts/script.php?script_id=2540" rel="nofollow">http://www.vim.org/scripts/script.php?script_id=2540</a>
preekover 14 years ago
Here's a nice article on how to set up VIM as a Python IDE: <a href="http://blog.dispatched.ch/vim-as-python-ide/" rel="nofollow">http://blog.dispatched.ch/vim-as-python-ide/</a>
maceover 14 years ago
This cheatsheet was great when I started using vim years ago.<p>I highly recommend <a href="http://vimcasts.org/" rel="nofollow">http://vimcasts.org/</a> It has neat little tutorials that cover a lot of vim's powerful features.
hardik988over 14 years ago
Does anyone know what sort of a license does this picture carry ? I want to 'reblog' this to my own blog, just for future reference..
评论 #2005203 未加载
Luytover 14 years ago
Seeing this makes me wanna use vi again.
评论 #2004837 未加载
评论 #2005299 未加载
abetterlieover 14 years ago
Those come as stickers too, and make your laptop look really cool! I got mine from 4keyboard.
joeguilmetteover 14 years ago
Sometimes I feel like I am the only one who just doesn't get VIM
gasullover 14 years ago
Is there something like this for non-US keyboards?
baluover 14 years ago
Hahah. A graphical cheatsheet for a command line editor. Nice!