Vim is powerful tool.
Vim emulation is everywhere.
Official exercises:L3
All Practice makes perfect It takes about 20hrs spent on one particular skill until you earn proficiency on it .
Vim
Vim philosophy
Vim is a modal editor.即vim的思想在于模式。不同的模式下可以进行不同的工作。
以 vim editor.md为例子来学习vim。
Enter vim editor.md来进入normal mode.我理解的normal moder就是相当于pdf的不在编辑的状态。<\esc>进行模式的切换,这里还可以把<\esc>进行remap,但是我初步跟着官方notes试了一下,发现跟我平时的输入模式有较大的出入,所以我就又改回来了。
【等等,typora是不是不需要换行,所以typora的换行,是理解意义上的分段?- 输入
:进入输入command-line的模式。即可以用该模式像shell一样交互。 :有很多常用命令,不会就去看mannul.或输入help <\name>进行查询。注意这里有趣的是,也是vim不同模式下面的理解,即,help w与helo :w的不同。help w是wmovement.help :w是有了semicolon嘛,那肯定是help该command.- vim概念中的 tab/window/buffer:可以在
:的下面进行新建tab.: sp是多tab;q是退出当前tab。qa退出全部tab并退出。
Note: There is not a 1-to-1 correspondence between buffers and windows.
Vim ‘s interface is a programming language.
- Vim emulation:即我在我所有的编辑器中都使用vim的仿真模式,以提高文本的编辑效率。
- normal mode is like home.
- Vim 一般是do some changes,不是说我整个编程在里面写,而是编完再debugs的过程。
- visual mode:进行选择。Type
v以进入visual mode ci<\charactre>,如我想更改[hello](www.learning.com)我可以输入,ci[即更改了。- 与
ci同理,ca是change around; - editing : 如
x删除,d删除;连续输入dd表示删除正航 - 注意vim的逻辑在于compose :
dw/db/de这种就是combine着结合表示的。 - vim中的搜寻功能
/<你想查询的内容>,这样cursor就好用啦。 - 还有某种重复上次修改操作的功能。
- vim customize.
vim extensions
left to do
vim exercise.
left to do
still a long way to go.