close

/KEYWORD : search forward to find KEYWORD
n : find next

?KEYWORD : search backward to find KEYWORD
N : find previous


xG : jump to the x-th line (x is the line number)
dxG : delete current line to 1st line

G : jump to the last line
dG : delete current line to last line


:u : undo
Ctrl + r (or :redo) : redo


A : go to end of current line and go to INSERT mode
I : go to start of current line and go to INSERT mode


Search and Replace:

First occurrence on current line: :s/OLD/NEW
Globally (all) on current line: :s/OLD/NEW/g
Between two lines: :#,#s/OLD/NEW/g
Every occurrence in file: :%s/OLD/NEW/g

arrow
arrow
    全站熱搜

    bamil 發表在 痞客邦 留言(0) 人氣()