Ⅰ. 插件描述
Intelligently edit environment variable valuesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/envedit-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/envedit-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/envedit-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/EnvEdit.vim
Ⅳ. 文档说明
Please send comments, suggestions, flames, etc. to NewOfalSor at gPmaAilM dot com, minus NOSPAM
Changing environment variables in Windows' "Environment
Variables" dialog is just WAY too tedious. This plugin
provides the following benefits:
1. Vim's editing keystrokes.
2. You can resize the window so that the entire value
fits on the screen.
3. You can easily use the value of a different variable
in the definition of another.
4. Vim shows up in the taskbar, so you don't have to
minimize all of your other windows to find the
misplaced "Environment Variables" dialog after looking
up the correct value for a variable in the
documentation.
5. Command-line completion is an easier way to locate
a variable than hunting for it in two different
five-line high lists.
At the command-line type this command: :EnvEdit {VARIABLE}
This will open a new buffer named $VARIABLE and containing the
value of that environment variable. If there exists no such
environment variable, you'll be greeted with an empty buffer.
When the buffer is saved, the new text is stored in the
default register "", exported to the clipboard via the "+ and "*
registers, and exported to Vim's own environment. This means
that any child processes of that instance of Vim inherit the
new environment variable.
If the environment variable contains your system's path
separator character (':' on UNIX and ';' on Windows), the
variable's text is split on this character and each component
is presented on its own line. When you save the buffer, all
lines are joined and delimited by this same character. Empty
lines are filtered out to prevent consecutive path separators
from appearing.