Last active
December 9, 2020 06:43
-
-
Save StuffbyYuki/7b7a2b67920e12ab0064d3c695671c2b to your computer and use it in GitHub Desktop.
Vim Basic Commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :w # save | |
| :wq # save and exit | |
| :q! # exit | |
| :u # undo | |
| :noh # delete highlights | |
| :10,50s/^/# # comment out 10 - 50 lines | |
| :10,50s/^# # uncomment 10 - 50 lines | |
| :n or :next # go to next file that's open | |
| :prev or :N # go to the previous file | |
| :wn or :wnext # save the current go to next | |
| :wprev or :wN # save the current go to prev | |
| e # moving to the end of a word | |
| w # move forward to the begining of a word | |
| 3w # move forward 3 words | |
| b # move backward | |
| 3b # move backward 3 words | |
| $ # move to the end of line | |
| 0 # move to the beginning of line | |
| ) # jump forward one sentense | |
| ( # jump backward one sentense | |
| } # jump forward one paragraph | |
| { # jump forward one paragraph | |
| h # left | |
| j # down | |
| k # up | |
| l # right | |
| H # jump to the top of the screen | |
| M # jump to the middle of the screen | |
| L # jump to the bottom of the screen | |
| gg # jump to the top of the file | |
| G # jump to the buttom of the file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment