It is said that in Vim's command mode, directly enter vimtutor and press Enter to open the official vim tutorial. However, as soon as the letter v is entered, it automatically switches to visual mode, and the purpose of opening the vimtutor tutorial cannot be achieved at all.
Another way to say it is to enter: enter command mode first, and then enter vimtutor, but it still cannot be opened.
How to open vimtutor directly through commands? Can it only be opened with the mouse?
------------The problem has been solved--------------
It turns out that it refers to the command line prompt of the shell and then input vimtutor. It is understood that vimtutor is entered in vim command mode. Oops......
vimtutor
并不是一个文件, 也不是一种模式, 而是一个可执行程序, 在shell
命令行中输入vimtutor
Enter directly.To use
gvim
来使用vimtutor
, 可以添加-g
参数. 即在cmd
或shell
中, 执行vimtutor -g
.vimtutor
本质上只是不使用用户配置文件, 非兼容模式下打开tutor
文件. 类UNIX
系统下在$VIMRUNTIME/tutor/tutor
,Windows
下是%HOME%/vimfiles/tutor
(这点不确定). 你总可以在vim
中执行:set runtimepath
Press Enter to get the runtime path.You can copy and paste the file in the file manager, or execute it under the command. The main reason is to try not to modify the original file:
Description:
-u
指定用户配置文件, 此处NONE
means not using user profile-c
Execute commandFirst item: Open the
tutor
文件, 保存为TUTORCOPY
file in the runtime path and exit;Article 2: Open the file and identify it in incompatible mode