ReloadScript


Ⅰ. 插件描述

Reload a Vim script during script development.

Ⅱ. 基本信息

创建日期:  2007-05-22
使用用户:  4
Github星:  5
插件作者:  Ingo Karkat

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/reloadscript'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/reloadscript'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/reloadscript'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/ReloadScript

Ⅳ. 文档说明

DESCRIPTION
Re-sources a Vim script. The script may use a multiple inclusion guard
variable g:loaded_{scriptname} (with {scriptname} having either the same case
as specified or all lowercase.)
If you specify the bare scriptname (without .vim extension), the script must
reside in plugin/{scriptname}.vim somewhere on 'runtimepath'. Otherwise, the
passed filespec is interpreted as the file system location of a Vim script and
sourced as-is. If you execute :ReloadScript without passing a scriptname,
the current buffer is re-sourced.

RELATED WORKS

  • scriptease.vim (vimscript #4394) has a :Runtime command that unlets any
      include guards first

USAGE
ReloadScript                            Re-sources the current buffer.
ReloadScript {scriptname}               Re-sources the passed plugin script.
ReloadScript {path/to/script.vim}       Re-sources the passed file.

添加新评论