Vim -- 普通模式
本文将介绍Vim中的普通模式
基础概念普通模式(normal mode)是Vim的自然放松状态,也是Vim的默认模式其他文本编辑器大部分时间都处于类似Vim插入模式的状态中普通模式之所以强大,主要由于它可以把操作符和动作命令结合在一起:**操作 = 操作符 + 动作命令**
12345:h operatorThe motion commands can be used after an operator command,to have the command operate on the text that was moved over.That is the text between the cursor position before and after the motion.Operators are generally used to delete or change text.
语法规则{operator}{motion}{operator}{operator}(motion默认为当前行)
操作符待决模式该模式 ...
Vim -- 命令.
本文将介绍Vim中的命令.
基础Vim启动命令12# 不加载配置文件,且不启用vi兼容模式$ vim -u NONE -N
Vim手册1234567$ man vim-u {vimrc} Use the commands in the file {vimrc} for initializations. All the other initializations are skipped. Use this to edit a special kind of files. It can also be used to skip all initializations by giving the name "NONE". See ":help initialization" within vim for more details.-N No-compatible mode. Reset t ...