Familiarity with Vim shortcuts will help Linux users. Vim editor is a more enhanced version of the venerable VI Editor. The Vim Editor, a cross-platform text editor, is a very lightweight, efficient, highly configurable and powerful tool. The Vim helps you to work with more than one document at a time, and it can do extraordinary things without a mouse.
List of Vim Shortcuts – Vim Cheat sheet – Vim Cheat Sheet PDF
Summary
Note that the VIM shortcuts depend upon the mode of the editor. Hence you must check the way first while using the VIM shortcuts.
Below is the list of Vim shortcuts. By mastering a couple of Vim shortcuts, you’ll quickly achieve higher productivity that you’ll with a daily text editor. With this, you will see small improvements in your keyboard commands. Download the Vim shortcuts PDF.
General Shortcuts
Action | Shortcut Keys |
---|---|
Yank (Copy) a line | yy |
Yank 2 lines | 2yy |
Yank word | yw |
yank to end of line | y$ |
Put (paste) the clipboard after cursor | p |
Put (paste) before cursor | P |
Delete a line | dd |
Delete the current word | dw |
Delete current character | x |
Editing Shortcuts
Action | Shortcut Keys |
---|---|
Change an entire line | cc |
Change to the end of word | cw |
Change to the end of line | c$ |
Delete character at cursor | s |
Transpose two letters | xp |
Undo | u |
Repeat last command | . |
Replace a single character | r |
Join line below to the current one | J |
Cursor Movement Shortcuts
Action | Shortcut Keys |
---|---|
Move left | h |
Move down | j |
Move up | k |
Move right | I |
Jump by start of words | w |
Jump by words | W |
Jump by end of words | e |
Jump by end of words | E |
Jump backward by words | b |
Jump backward by words | B |
start of line | 0 |
First non-blank character of line | ^ |
End of line | $ |
Go to command | G |
Inserting and Appending text | Insert |
Visual Mode Shortcuts
Action | Shortcut Keys |
---|---|
Start visual mode | v |
Move to other end of marked area | o |
Start linewise visual mode | V |
Move to other corner of block | O |
mark a word | aw |
a () block | ab |
a {} block | aB |
Inner () block | ib |
Inner {} block | iB |
Exit | Esc |
Visual Commands Shortcuts
Action | Shortcut Keys |
---|---|
Shift Right | > |
Shift Left | < |
Copy marked text | y |
Delete marked text | d |
switch case | ~ |
Search and Replace Shortcuts
Action | Shortcut Keys |
---|---|
Search for pattern | /pattern |
Search backward for pattern | ?pattern |
Repeat search in the same direction | n |
Repeat search in the opposite direction | N |
Replace all old with new throughout the file | :%s/old/new/g |
Replace all old with new throughout file with a confirmation | :%s/old/new/gc |
Others shortcuts
Action | Shortcut Keys |
---|---|
Edit a file in a new buffer | :e filename |
Go to Next buffer | :bnext |
Go to previous buffer | :bprev |
Delete a buffer | :bd |
Split windows | Ctrl + ws |
Switch between windows | Ctrl + ww |
Quit a window | Ctrl + wq |
Split windows vertically | Ctrl + wv |
Save the file | :w |
Save and Quit | :wq |
Quit | :q |
Related Blog
List of Solidworks Shortcuts for Beginners
Download and Install Windows 10 step-by-step with pictures
#51 most used Davinci Resolve Shortcuts you should know
Google Earth Shortcuts for Beginners
GIMP Shortcuts for Windows | GIMP Shortcuts for Mac
Vim isn’t easy to learn for all and so it requires you to learn a variety of editor commands. These Vim shortcuts are best suited for people who are programmers, coders, system administrators, and individuals with the streamlined editor.
Vim in today’s world has reached its massive popularity. However, if you wish to see some alternative to Vim shortcuts are: Notepad ++ shortcuts, Visual Studio Code shortcuts, Sublime Text shortcuts.
Hope you have liked our blog on Vim Shortcuts and Vim Cheat Sheets. Suggestions are always welcomed for the blog you looking forward to hearing from us. Connect with us and Take your Office Productivity to Next Level.