Ⅰ. 插件描述
Vim <-> DeckardⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'deckardai/vim-deckard'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'deckardai/vim-deckard'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'deckardai/vim-deckard'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/deckardai/vim-deckard
Ⅳ. 文档说明
# Vim <-> Deckard
Vim connector to Deckard.
Installation
Install deckardai/vim-deckard with your favorite package manager.
Using Vundle
In .vimrc
Bundle 'deckardai/vim-deckard'
Then
:write | source % | BundleInstall
Using Pathogen
cd ~/.vim/bundle && git clone git://github.com/deckardai/vim-deckard.git
This plugin requires Python support, which is commonly included by default. Check with:
vim --version | grep python
Usage: b, w
Stop Vim's cursor at the beginning of a word.
Deckard will then refresh its content.
The default Vim way of jumping to the beginning of the current word is b. To go to the next word, w. But you can navigate in any other way as well.
Configuration
This plugin triggers refreshes after 200ms of stopping at the start of a word. You can adjust it with this setting in your .vimrc:
set updatetime=200