Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
41 views1 page

Vim Cheat Sheet

This Mini Vim Cheat Sheet provides essential commands for navigating and editing in Vim across different modes including Normal, Insert, Visual, and Command-line. It outlines key navigation shortcuts, editing commands, and how to save or quit files. Additionally, it includes bonus commands for managing splits, buffers, and line numbers.

Uploaded by

Zen kun
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views1 page

Vim Cheat Sheet

This Mini Vim Cheat Sheet provides essential commands for navigating and editing in Vim across different modes including Normal, Insert, Visual, and Command-line. It outlines key navigation shortcuts, editing commands, and how to save or quit files. Additionally, it includes bonus commands for managing splits, buffers, and line numbers.

Uploaded by

Zen kun
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

===========================

Mini Vim Cheat Sheet


===========================

MODES
-----
Normal Mode : Esc -> Navigate & issue commands
Insert Mode : i, a -> Enter text
Visual Mode : v, V -> Select text (char/line/block)
Command-line : : -> Run commands like save, quit

NAVIGATION (NORMAL MODE)


------------------------
Left / Down / Up / Right : h / j / k / l
Next / Previous Word : w / b
Line Start / End : 0 / $
Scroll Up / Down : Ctrl+u / Ctrl+d
Go to Line N : :N (e.g., :42)
Search : /text, then n (next), N (prev)

EDITING
-------
Insert Before / After : i / a
Open New Line Below/Above : o / O
Delete Character : x
Delete Word : dw
Delete Line : dd
Copy Line : yy
Paste After / Before : p / P
Undo / Redo : u / Ctrl+r
Replace Char : r<char>
Change Word : cw

SAVE & QUIT


-----------
Save : :w
Quit : :q
Save and Quit : :wq or ZZ
Quit Without Saving : :q!

BONUS
-----
Vertical/horizontal split : :vsp or :sp
Buffer navigation : :bnext, :bprev
Line numbers on : :set number
Clear search highlight : :noh

You might also like