【vim】编辑时打标签

来源:互联网 发布:heavy rotation 知乎 编辑:程序博客网 时间:2024/06/04 19:08
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.

原创粉丝点击