Skip to content

Instantly share code, notes, and snippets.

@sannithibalaji
Last active October 22, 2020 11:18
Show Gist options
  • Save sannithibalaji/65abbf297b4fbff61c3bc2bc95f01e16 to your computer and use it in GitHub Desktop.
Save sannithibalaji/65abbf297b4fbff61c3bc2bc95f01e16 to your computer and use it in GitHub Desktop.
vim shortcuts
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