Vim Graphical Cheat Sheet



  • Here's a tip sheet I wrote up once, with the commands I actually use regularly: References. Vim documentation online; advanced vim tips; more useful tips and graphical cheat sheet; General. Nearly all commands can be preceded by a number for a repeat count. 5dd delete 5 lines gets you out of any mode and back to command mode.
  • Vi/vim graphical cheat sheet tutorial. By now, you might have Vim is actually a word processor which you can easily.
  • Update: Version 2.0 is up! There are now 4 versions to chose from: (If you are wondering what the differences are between the screen and print: the screen has less color variations, and no gradients to make it easier to read.).
Http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html

Learning vi or vim is not easy. But it doesn't have to be that difficult, either. It is, in any case, faster, more powerful, and more productive than editing with any other editor, so you would do very well in investing the time and effort to learn it.

Vi vim graphical cheat sheet pdf Vim is a replacement text editor for Vi and is available for most Linux distributions. Whether you are new to Vi or not, here is a list of the best VIM cheat sheets for easy reference. VIM Cheat Sheet for Programmers Source: VIM Cheat Sheet for Programmers 2. Being a vi lover myself, I came up with the idea of providing a graphical cheat sheet for those learning vi or vim, and I also found out it was a very good way to structure a tutorial. Here are the results for your learning enjoyment (or your colleagues').

Being a vi lover myself, I came up with the idea of providing a graphical cheat sheet for those learning vi or vim, and I also found out it was a very good way to structure a tutorial. Here are the results for your learning enjoyment (or your colleagues').

By the way, I recently published the definitive article explaining why vi/vim editing is so much better than regular editing. It should prove useful if you want to read it yourself, or if you want to point your skeptical friends to a description of why it makes sense, apart from being an entertaining read: Why, oh why, do those #?@! nutheads use vi?.

Graphical cheat sheet

This is a single page describing the full vi/vim input model, the function of all keys, and all major features. You can see it as a compressed vi/vim manual. Click on the image below to access the full-size bitmap image, or download the vector-based, scalable SVG version (zip-compressed - and be sure to view & print the SVG with the open source application Inkscape or the Adobe plug-in for Internet Explorer, Firefox breaks the layout for some reason, apart from rendering it with no anti-alias!).


Graphical cheat sheet based tutorial

Lesson 1 (hi)
Lesson 2 (hi)
Lesson 3 (hi)
Lesson 4 (hi)
Lesson 5 (hi)
Lesson 6 (hi)
Lesson 7 (hi)
Zip with all GIFs
Zip with all SVGs

The tutorial above is structured in 7 lessons that cover the major commands in vi/vim. They are structured so that you will learn the simplest and most useful first, and the more advanced ones afterwards. Actually, using just the commands shown in lesson 1, you can already start editing in vi/vim in a similar way to how you would on a regular editor. Lesson 2 introduces the very powerful, and vi/vim-exclusive operators, and the rest of the lessons advance from there. Each thumbnail links to a high-resolution bitmap version. You can also download the full tutorial in a single zip file with all the bitmaps or a single zip file with all the SVGs (see the note above about incorrect rendering on Firefox).

Notes

Cheat

vim is an incredible editor by Bram Moolenaar, based on the original vi by Bill Joy, adding a ton of improvements over it. Nowadays, you should choose vim over vi every time you can.

Vim graphical cheat sheet

The cheat sheet and tutorial cover most important functions of vi's input model, leaving out the more advanced regular expressions/ex command line material. This should be a very good beginning to becoming a vi/vim wizard.

With the single exception of the external filter feature ('!'), all functions shown are supported by ViEmu, my commercial add-in that provides advanced vi-vim emulation in Visual Studio.

Relevant links

This cheat sheet has proven to be pretty popular. Here are some relevant links:

  • Sebastian Feltel prepared a version for the German keyboard layout
  • Brendan Kidwell prepared a PDF version for easy printing of the whole tutorial and cheat sheet
  • Peter Hosey prepared a Dvorak layout version
  • Donglu Feng prepared a simplified-Chinese version
  • This looks like a traditional Chinese version, but don't put my knowledge of Chinese to test :)
  • Mark Schoonover prepared another Dvorak version (more similar to the original)
  • JiHui Choi prepared a Korean version, cool!
  • Nathael prepared a version with the French AZERTY keyboard layout, you can visit his page.
  • Belorussian provided by fatcow
  • G. Richard Bellamy took the time to prepare a Kinesis-Ergo style Dvorak version in SVG (for which he prepared a new Dvorak SVG version.
  • Bohdan Zograf prepared a very polished Belorussian translation

And of course, the article detailing why vi/vim editing is 'the killerest':

Vi/vim Graphical Cheat Sheet

  • Why, oh why, do those #?@! nutheads use vi?.

Jump to: Cursor Navigation (if your arrow keys dont work on that old Sun box....), Fast Search, Command Mode, From Normal to Edit Mode, Clipboard

1. Cursor Navigation (if your arrow keys dont work on that old Sun box....)

J

Next line

K

Previous line

H

Left

L

Right

Shift+G

Bottom of document

GG

Top of document

/

Search Term

N

Next

Shift+N

Previous

:

enter command mode

:w

write

:q

quit

:q!

quit without saving

:wq

Write and quit

ZZ

Write and quit

:e <filename>

open <filename>

Esc

escape command mode

u

undo last command

I

Insert at current position

I

Insert at start of line

A

Append to end of line

O

Insert Line Below

O

Insert Line Above

S

Delete character at current position and insert

S

Delete the current line and insert

dw

delete word

dd

delete line

P

put after cursor

P

put before cursor

yw

copy word

yy

copy line

Created by terryrankine on 7/11/2012. Last updated by admin on 11/29/2020

5 Comments for 'vi '

Comment #5 by Andy Jan 9, 2019 at 11:10 am Reply

N Previous should be: Shift + N Previous

Comment #4 by Wesley Steinbrink Jan 31, 2017 at 10:54 pm Reply

In addition to Emacs with Evil mode, there is Spacemacs: http://alejandroerickson.com/j/2016/06/11/emacs-to-evil-to-spacemacs-a-journey.html It appears to be a better Emacs with Vim combination

Vi Vim Graphical Cheat Sheet Pdf

Comment #3 by Anonymous Mar 30, 2016 at 09:50 am Reply

Kindly check your VI commands

Comment #2 by Wesley Steinbrink Jul 5, 2015 at 08:09 pm Reply

New link for the Derek Wyatt Vim Tutorials: http://derekwyatt.org/vim/tutorials/index.html

Vim Graphical Cheat Sheet

Comment #1 by Wesley Steinbrink Nov 20, 2013 at 03:07 pm Reply

vi is actually combinations of single letter shortcuts in the normal mode.
Your vi shortcuts need to mention going from insert mode to normal mode (Using Esc or Ctrl-[):
http://vim.wikia.com/wiki/Avoid_the_escape_key
Some good links are
http://zzapper.co.uk/vimtips.html
(note the link to more vi books)
and
the graphical cheat sheet:
http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html
and
http://www.derekwyatt.org/vim/vim-tutorial-videos/
and for using as a plugin for emacs (scalpal on top of swiss army knife)
http://www.emacswiki.org/emacs/Evil

Reply #1 Wesley Steinbrink Nov 20, 2013 at 03:24 pm

Vim Visual Cheat Sheet

Note also - most of the letters for control in normal mode coordinate with the first letter of English words for character manipulation.