如何安装 Vimball 插件(扩展名为 .vba)? [英] How to install a Vimball plugin (with .vba extension)?

查看:28
本文介绍了如何安装 Vimball 插件(扩展名为 .vba)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何安装 Vimball 插件(带有 .vba 扩展名)?

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

文档只是说:

安装细节编辑vba文件并输入:

install details Edit the vba file and type:

:so %

vimball 文档说:

The vimball documentation says:

用户需要使用 vimball 做的就是:

All a user needs to do with a vimball is:

vim someplugin.vba
:so %
:q

  • 我必须在正常模式下(在 Vim 内)还是在 _vimrc 文件中编写它?
  • 我是否必须写出 .vba 文件的完整路径?
  • 我无法在正常模式下编写 vim someplugin.我是否必须编写 :vim 插件?
    • 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?
    • 推荐答案

      用 vim 打开 vba 文件,然后在那里输入 :source % 命令.% 指的是当前文件,因此在 vim 中打开文件时使用 :source % 是告诉它在 vim 的上下文中运行该文件,在vba 文件的情况下,将其安装在正确的目录中.

      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.

      这篇关于如何安装 Vimball 插件(扩展名为 .vba)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆