现在的位置: 首页 > 综合 > 正文

【vim】编辑时打标签

2013年06月19日 ⁄ 综合 ⁄ 共 555字 ⁄ 字号 评论关闭

During a vi session, you can mark your place in the file with an invisible “bookmark,”
perform edits elsewhere, and then return to your marked place. In command mode:
mx
Marks the current position with x (x can be any letter). (The original vi allows only

lowercase letters. Vim distinguishes between uppercase and lowercase letters.)

'x
(Apostrophe单引号.) Moves the cursor to the first character of the line marked by x.
`x
(Backquote反引号.) Moves the cursor to the character marked by x.
``
(Backquotes.) Returns to the exact position of the previous mark or context after
a move.
''
(Apostrophes.) Returns to the beginning of the line of the previous mark or context.

抱歉!评论已关闭.