vim: mark操作

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)


《 “vim: mark操作” 》 有 3 条评论

  1. Other study found susceptibility to nalidixic acid only 10 cytotec tablets buy online

  2. In contrast, this technology cannot be used to study gene function in mice because antisense oligonucleotides are rapidly diluted during mouse development better business bureau online pharmacy priligy The Lancet 319

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

About Me

一位程序员,会弹吉他,喜欢读诗。
有一颗感恩的心,一位美丽的妻子,两个可爱的女儿
mail: geraldlee0825@gmail.com
github: https://github.com/lisuxiaoqi
medium: https://medium.com/@geraldlee0825