Vous êtes sur la page 1sur 2

Command h l k j Command w nw B E $ ^ gg G :n :$ ( ) Command x X dw db D ndd ndw cc cw s Command w q wq ZZ :wq! :w new filename :e!

:e new filename e#: :se nu :se nonu

: : : :

: : : : : : : : : : : :

: : : : : : : : : :

: : : : : : : : : : :

Moving One Character at a time: Description Left one space Right one space Up once space Down one space Moving words & Lines Description To move one word forward To move no.of words forward To move one word backward To move to end of charter in a word To move to end of line To move to starting of line To move to top of the file To move to end of the file To move to particular line To move to last line of fil Beginning of current block End of current block Deleting charter, word & line Description for deleting current character for deleting charter to left of your curser for deleting current word for deleting word before cursor position Deleting up to end of line for cursor position Deleting n lines from current line For deleting n no.of word from current word For deleting whole line from cursor position and change to insert mode For deleting whole word and change to insert mode Deleting current character and change to insert mode Closing & saving the files Description To save the file but not quit VI-editor To quit VI-editor To save & quit To save file & exit VI-editor To save file & quit forcely Save as new file written to last saved version of current file Open new file Toggle between to files To set line numbers For un setting line numbers

Command Y (or) yy p P nyy (or)nY yw yb u U ygg yG Command r R cw c Command i I Command o O Command a A J Command /word ?word n N

: : : : : : : : : :

: : : :

: :

: :

: : :

: : : :

COPYING,PASTING & UNDO Description Yanks(copy) the current curser line Past below the current line Past above the current line yanks the n line from current curser line yabk the current cursor word yank the one word backward Undo the last change Undo all the change done on current line To copy form cursor position to top of the file To copy from cursor position end of the file Command for Changing Text Description Replaces the current charter with next charter we type Replace more than one character press ESC to terminate Changes and replaces the current word with then text we type change to end of line form cursor position Inserting text Description Began inserting text at current cursor location Began inserting text at the beginning of current line Inserting Blank Line Description To insert blank line below cursor position To insert blank line above cursor position Appending (adding) Text Description Appending after cursor Appending end of line Joining lines Searching Description search forward string search backward string Repeat for searching Repeat searching opposite direction