Académique Documents
Professionnel Documents
Culture Documents
dw D dd .
delete the current word" delete the remainder of the line after the cursor" delete the current line" repeat the last insertion, replacement or delete command"
Replacing strings
Can also )e done manually, searching and replacing once, and then using n 0ne,t occurrence1 and . 0repeat last edit1" n,ps/str1/str2/g )et/een line num)ers n and p, su)stitute all 0g glo)al1 occurrences of str1 )y str2" 1,$s/str1/str2/g in the /hole 2le 04 last line1, su)stitute all occurrences of str1 )y str2"
Misc
[Ctrl] l redra/ the screen" J join the current line /ith the ne,t one u undo the last action
!oing further
vi has much more 5e,i)ility and many more commands for po/er users6 7t can ma*e you e,tremely producti'e in editing and creating te,t" #earn more )y ta*ing the 8uic* tutorial 9ust type vimtutor"