Vim editor Basic commands Moving through the text is usually possible with the arrow keys. h to move the cursor to the left l to move it to the right k to move up j to move down Basic operations n dd will delete n lines starting from the current cursor position. n dw will delete n words at the right side of the cursor. x will delete the character on which the cursor is positioned :n moves to line n of the file. :w will save (write) the file :q will exit the editor. :q! forces the exit when you want to quit a file containing unsaved changes. :wq will save and exit :w newfile will save the text to newfile. :wq! overrides read-only permission (if you have the permission to override permissions, for instance when you are using the root account. /string will search the st...
The directory we decided to name "box". To initialize a Git repository here, type the following command: $ git init "box" directory now has an empty repository in /.git/. The repository is a hidden directory where Git operates. let's type the git status command to see what the current state of our project is: $ git status
Comments
Post a Comment