How to install a Vimball plugin (with .vba extension)?

不羁的心 提交于 2019-11-28 15:35:59

问题


How to install a Vimball plugin (with .vba extension)?

The documentation just says:

install details Edit the vba file and type:

:so %

The vimball documentation says:

All a user needs to do with a vimball is:

vim someplugin.vba
:so %
:q
  • Do I have to write that in normal mode (inside Vim) or in the _vimrc file?
  • Do I have to write the full path of the .vba file?
  • I can't write vim someplugin in normal mode. Do I have to write :vim plugin?

回答1:


Open the vba file with vim, and type the :source % command right there. The % refers to the current file, so using :source % while having a file open in vim is telling it to run the file in the context of vim, which in the case of vba files, is installing it in the proper directories.



来源:https://stackoverflow.com/questions/2033078/how-to-install-a-vimball-plugin-with-vba-extension

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!