VIM Cheat Sheet for Beginners
Verbose vs Shortcuts
Vim provides a short cut and a verbose version of every command. For instance, you can type the short cut version of the edit command
1 |
:e . |
or you can type the verbose version of the exact same command by typing
1 |
:edit . |
Now, the way that we will express the verbose vs the abbreviated command is
1 2 |
:e<span style="color: #c0c0c0;">[dit]</span> . :shortcut<span style="color: #c0c0c0;">[extra letters for long version]</span> |
Commands for Complete Beginners
-
1:e<span style="color: #c0c0c0;">[dit]</span> path/to/some/file.txt
Beginner’s example 1
1:e .
This will display all of the files/folders that are in the directory
Command 2
jk
Slightly more Advanced Commands
- :ol[dfiles]
String Commands
- w – Forward to the start of next
- W-
Other helpful links