Skip to content

Instantly share code, notes, and snippets.

@LIttleAncientForestKami
Last active August 28, 2018 16:18
Show Gist options
  • Save LIttleAncientForestKami/7c7c064439118141d6a62377d0f29601 to your computer and use it in GitHub Desktop.
Save LIttleAncientForestKami/7c7c064439118141d6a62377d0f29601 to your computer and use it in GitHub Desktop.
Vim learning resources

Why bother? Explained by Jim Dennis in accepted answer to a common question: https://stackoverflow.com/questions/1218390/what-is-your-most-productive-shortcut-with-vim which actually ponders why bother with VIM if it breaks "the default" Ctrl+f, Ctrl+C, Ctrl+V, Ctrl+A that one learned from other (usually MS) tools...

Absolute basics and necessary

vimtutor -> man vim -> and when in Vim ':help whatever-you-need-help-on'.

Also, echo "set nocompatible" >> ~/.vimrc so that your Vim acts like Vim and not like VI. >> appends, to not overwrite if you already had a Vim config file (.vimrc).

Getting practice

vimtutor goes first, obviously.

  1. http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html - πŸ’― for conciseness! Tutorial via a cheatsheet; πŸ” if you want to create your own tutorial and would like to see "in what order"
  2. https://vim-adventures.com/ - ❀️ 😍 a pretty and well made game teaching you how to Vim. Seriously πŸ†’. :-) πŸ’° for level 3 and above (25$ personal license) but I'm still putting it here.
  3. https://www.vimgolf.com/ - β›³ πŸ†. You register with 🐦 and you β›³ with Vim, each πŸ† gets you new tips (if anybody solved it better). Several thousand exercises.

Consider this instead of plugins: https://www.youtube.com/watch?v=XA2WjJbmmoM

Cheat sheets

  1. http://www.viemu.com/vi-vim-cheat-sheet.gif - condensed yet colourful
  2. http://michael.peopleofhonoronly.com/vim/ - extensive yet one A4 page, multiple versions (monochrome, colours, for colour-blind, hard-copy or print...)
  3. https://vim.rtorr.com/ - has other languages (Polish, Portuguese, ...)
  4. https://devhints.io/vim - clear, yet long

Noteworthy commercial one: http://vimcheatsheet.com/, $10 for PDFs or $25 for a printed poster :-)

There are many others, but I'm adding only those, that somehow distinguish themselves.

Books

  1. Mastering Vim - Practical Programmers
  2. http://www.oualline.com/vim-cook.html

Prepping Vim for a language:

  1. Ctags: http://andrewradev.com/2011/06/08/vim-and-ctags/
  2. Java: http://blog.vinceliu.com/2007/08/vim-tips-for-java-1-build-java-files.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment