Last active
February 6, 2017 02:01
-
-
Save abdulhadad/9ac62176df37cf4581a97462f4276be9 to your computer and use it in GitHub Desktop.
Vi Basic Editing
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
# 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