-
-
Save sannithibalaji/65abbf297b4fbff61c3bc2bc95f01e16 to your computer and use it in GitHub Desktop.
vim shortcuts
This file contains 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
delete all lines in file ggdG (gg for beggining of file, d for delete, G for End of file) | |
save and quit: <shift>ZZ | |
select multiple lines: <shift>V (j or k) j for next line and k for previous line. you can also give 3j where it selects next 3 lines | |
yanking(copying): yy, can also give 3yy , y means copy character, yy means copy line, and nyy means copy n lines | |
paste: p or P, p for pasting after current character, P for pasting before current character. | |
delete a string: di" | |
change a string: ci" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment