In gVim, if you enter vimtutor in command mode and press Enter, the official vim tutorial cannot be opened and it will enter visual mode.
过去多啦不再A梦
过去多啦不再A梦 2017-05-16 16:36:41
0
1
1028

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......

过去多啦不再A梦
过去多啦不再A梦

reply all(1)
世界只因有你

vimtutor并不是一个文件, 也不是一种模式, 而是一个可执行程序, 在shell命令行中输入vimtutorEnter directly.

To usegvim来使用vimtutor, 可以添加-g参数. 即在cmdshell中, 执行vimtutor -g.

vimtutor本质上只是不使用用户配置文件, 非兼容模式下打开tutor文件. 类UNIX系统下在$VIMRUNTIME/tutor/tutor, Windows下是%HOME%/vimfiles/tutor(这点不确定). 你总可以在vim中执行:set runtimepathPress 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:

vim -u NONE -c "e $VIMRUNTIME/tutor/tutor" -c "w! TUTORCOPY" -c "q"
vim -u NONE -c "set nocp" TUTORCOPY

Description:

  • -u指定用户配置文件, 此处NONE means not using user profile

  • -cExecute command

  • First item: Open the tutor文件, 保存为TUTORCOPY file in the runtime path and exit;

  • Article 2: Open the file and identify it in incompatible mode

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template