Skip to content

Instantly share code, notes, and snippets.

@abdulhadad
Last active February 6, 2017 02:01
Show Gist options
  • Save abdulhadad/9ac62176df37cf4581a97462f4276be9 to your computer and use it in GitHub Desktop.
Save abdulhadad/9ac62176df37cf4581a97462f4276be9 to your computer and use it in GitHub Desktop.
Vi Basic Editing
# select, cut, copy, paste
select v+arrow
select line yy or Y
cut d
copy y
paste p
delete d
delete line dd or D
# undo redo
undo u
redo ctrl-r
# aearch and replace
find /text
find next /
replace :%s/text_old/text_new/gc
replace all :%s/text_old/text_new/g
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment