VIM 书签功能、正则 -- vim搞起之史
vim 提供书签的功能ma[rk] {a-z} 可以在文档里面设置26个字母以上命令设置光标所在行的标志可以通过 ‘{a-z} 或 ’{a-z} 回到书签所在的行首:marks 可以查看所有的书签一下是四个特殊的书签: ' The cursor position before doing a jump " The cursor
·
vim 提供书签的功能
ma[rk] {a-z} 可以在文档里面设置26个字母
以上命令设置光标所在行的标志
可以通过 ‘{a-z} 或 ’{a-z} 回到书签所在的行首
:marks 可以查看所有的书签
一下是四个特殊的书签:
' The cursor position before doing a jump
" The cursor position when last editing the file
[ Start of the last change
] End of the last change
" The cursor position when last editing the file
[ Start of the last change
] End of the last change
CTRL-O jumps to older positions
CTRL-I jumps back to newer positions
vim 的一点点点正则知识
^[word] 匹配行首为[word]的行
$[word] 匹配行末为[word]的行
. 匹配任何字符
\. 匹配'.'字符
搜索/:
匹配/word : 会找到所有单词里面包含word 比如: awordb ,aword, wordb, word
/\<word : 前缀是word的单词,包括wordb,word
/word\> : 后缀是word的单词,包括aword,word
更多推荐
所有评论(0)