VIM editor

    Here briefly I would like to tell about VIM editor.

    VIM

    • VIM is choice of most of the developer and power user.
    •  It saved the file without touching keyboard it automatically saved the file.
    • VIM has 3 mode :
           1.insert mode.
           2.command mode.
           3.Exit mode.


    1.insert mode.

    From command mode, press i key o go insert mode at the cursor's correct position.Then we can begin the editting.
    Press Esc key to return command mode.

    2.command mode

    After opening vim editor, we begin in command mode.This is the basic mode.
    In this mode, we can move around the file(using PageUp , PageDown or arrow keys)

    3.last-line mode. 

    From command mode  press : character to go to exit mode.
    • :q!                 this character use quite without save the editing.
    • :wq!              this character use quite with save the editing.
    • :q                  this character use quite.
    • :w                 this character use write changes to file.
    • :wq               this character use write and quit.
    • vim /home/myfolder/hello.php      
                                  Open the file using vim editor.
    • j                     this character use to move the cursor on down line.
    • dd                  this character delete the entire line.
    • h                    this character use to move cursor to left line.
    • k                    this character use to move cursor to up line. 
    • l                     this character use to move cursor to right line.
    • o                    this character use to move cursor to beginning of the line.
    • $                    this character use to move cursor to end of the line.
    • w                   this character use to forward one word. 
    • b                    this character use to backward one word.
    • G                   this character use to move end of the file.
    • gg                 this character use to move beginning of the file.
    • dgg               this character use to delete the beginning of the file. 
    • u                   this character use to redo the last operation.
    • d                   this character use to start he deleting operation.

    Comments

    Popular posts from this blog

    Easy understanding of MVC design architecture

    A / B Testing

    Firewall