ci( -> change inside ()
ci{ -> change inside {}
ci" -> change inside ""
di( -> delete inside ()
di{ -> delete inside {}
di" -> delete inside ""
:g/pattern/d -> removing lines matching regular expression
:g/^$/d -> remove blank lines
:%s/\s\+$//g -> remove trailing white spaces
dG -> delete all from the cursor to eof
A -> append text to end of the current line
I -> insert text at beginning of line
D -> d$
C -> c$
:set wrapmargin=XX -> useful option for editting nonprogram text,
specifies the size of the right margin that will be used to autowrap text
as you type. This saves manually typing carriage returns.
阅读(1322) | 评论(0) | 转发(0) |