Home
   DIR <- Back
       
       Vim - A compact advanced guide
       ==============================
       
       Vim - Every button press matters:
       
        1.  Modes
                Normal (Hover)
                Insert
                Visual
       
        2.  WASD
                HJKL
       
        3.  How to exit vim
                :q
                :q!
                :wq
       
        4.  Elements
                words
                    w
                    b
                in a line
                    yy, p
                    dd
                    Shift + v, x
                    0
                    $
       
        5.  Lifesaver: Undo
                u
                Ctrl + r (redo)
       
        6.  move fast
                jump to next sign 'x'
                    f x
                jump to second next sign 'x'
                    2 f x
       
        7.  Visual Block
                comment a block
                    Ctrl + v
                    Shift + i
       
        8.  Numbers
                Ctrl + a
                Ctrl + x
       
        9.  Repeat
                .
       
       10.  precise change
                Change in Word
                Change in "
                Change in )
       
       11.  Macros
                qq
                @q
                100@q
       
       12.  Substitute
                :%s/foo/bar/g
                :%s/foo/bar/gc