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
CTRL-O jumps to older positions
CTRL-I jumps back to newer positions
---------------------
原文:https://blog.csdn.net/lsff01/article/details/7670881
https://blog.csdn.net/qq_27717921/article/details/53322595
Vi是Linux的编辑器,visual interface
(1)主要指的就是编辑文本时光标移动的方向,在文本中可以来回移动
(2)在命令模式下还可以实现删除操作
(3)命令模式下的复制粘贴
可以通过下面的方式,将vi的命令模式切换到输入模式
进入输入模式后输入文本,输入后保存切换到底行命令