mark可以方便的进行跳转。比如说你当前编辑A文件的100行,你需要跳转到其他文件,一会想快速的回到A文件100行,则先在A文件100行处做一个mark。切换回来就非常方便了
ma set mark a at current cursor location 'a jump to line of mark a (first non-blank character in line) `a jump to position (line and column) of mark a :marks list all the current marks :marks aB list marks a, B d'a delete from current line to line of mark a d`a delete from current cursor position to position of mark a c'a change text from current line to line of mark a y`a yank text to unnamed buffer from cursor to position of mark a :delmarks a delete mark a :delmarks a-d delete marks a, b, c, d :delmarks abxy delete marks a, b, x, y :delmarks aA delete marks a, A :delmarks! delete all lowercase marks for the current buffer (a-z)
发表回复