Vim Cheatsheet

A collection of Vim tips that I’ve found useful.

In Vim commands
===============
gg to jump to top of file
G to jump to. Bottom of file
= to auto indent (combine with others to select what to indent)
gv to select the last visual selection again.
`. to jump to the last edited position.
ctrl-v to switch from visual selection to visual block selection
I [your text] to insert [your text] before a visual block

Vimrc settings
==============
” enable mouse
mouse=nvicr

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.