The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My badges

  • Twitter Updates

  • My Flickr Stream

  • Pages

  • All categories

  • Email Subscription

    Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 716 other subscribers

ikwyl6 vim cheat sheet

Posted by jpluimers on 2026/09/28

Not using vim much, so every time I need it for more complex things than basic editing or leaving any vi based text editor (hello <Esc> :q!), I need a FAQ or cheat sheet.

I like this one the most as it has merged most if not all other cheat sheets in it: [Wayback/Archive] ikwyl6 vim cheat sheet.

The above page is the [Wayback/Archive] CDN for your source code | raw.githack.com hosted version of the HTML page in the repository [Wayback/Archive] GitHub – ikwyl6/vim-cheat-sheet-html: Collaboration of vim cheat sheets I’ve found and put them in a html file.

That means you can contribute to it with more vim features in case they become available.

By intent, the cheat sheet looks like [Wayback/Archive] Vim Cheat Sheet – vim.rtorr.com, but it omits the tips bits like:

Tip Run vimtutor in a terminal to
learn the first Vim commands.

Feel free to add them¹ back to ikwyl6 vim cheat sheet in a pull request if you miss them too.

Two cool things about the  the rtorr cheat sheet:

  1. it is also open source: [Wayback/Archive] GitHub – rtorr/vim-cheat-sheet: A mobile friendly Vim cheat sheet
  2. contrary to the ikwyl6 cheat sheet, it is modular based on the Handlebars template system

Another thing that is cool in the ikwyl6 cheat sheet is that it has a list of external documentation:

Query: [Wayback/Archive] vim cheat sheet at DuckDuckGo

Via: python – Some gists on github have very many forks. How can I find the most recently active and/or heavily modified? – Stack Overflow which lead me to [Wayback/Archive] ikwyl6 · GitHub.

--jeroen


¹ the list of tips I found

  1. Tip Run vimtutor in a terminal to learn the first Vim commands.
  2. Tip Prefix a cursor movement command with a number to repeat it. For example, 4j moves down 4 lines.
  3. Tip Instead of b or B one can also use ( or { respectively.
  4. Tip Registers are being stored in ~/.viminfo, and will be loaded again on next restart of vim.
  5. Tip Special registers:
     0 – last yank
    " – unnamed register, last delete or yank
    % – current file name
    # – alternate file name
    * – clipboard contents (X11 primary)
    + – clipboard contents (X11 clipboard)
    / – last search pattern
    : – last command-line
    . – last inserted text
    - – last small (less than a line) delete
    = – expression register
    _ – black hole register
  6. Tip To jump to a mark you can either use a backtick (`) or an apostrophe ('). Using an apostrophe jumps to the beginning (first non-blank) of the line holding the mark.
  7. Tip You can also use the following characters to specify the range:
    e.g.

    :.,$d – From the current line to the end of the file
    :.,1d – From the current line to the beginning of the file
    :10,1d – From the 10th line to the beginning of the file
  8. Tip The commands for folding (e.g. za) operate on one level. To operate on all levels, use uppercase letters (e.g. zA).
  9. Tip To view the differences of files, one can directly start Vim in diff mode by running vimdiff in a terminal. One can even set this as git difftool.

Leave a Comment

 

Discover more from The Wiert Corner - irregular stream of stuff

Subscribe now to keep reading and get access to the full archive.

Continue reading