Ⅰ. 插件描述
VIP (VHDL Interface Plug-in) is a script for VIM text editor (http://www.vim.org/) which provides some facilities to copy and paste entities, components and instances of a components.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'jpr75/vip'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'jpr75/vip'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'jpr75/vip'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/jpr75/vip
Ⅳ. 文档说明
#Introduction
VIP (VHDL Interface Plug-in) is a script for VIM text editor which provides some facilities to copy paste entities, components and instances of components.
For example you can copy the component :
component mux is -- place the cursor on this line and enter the command :Viy (Vhdl Interface Yank)
port (
INPUT : in std_logic_vector (15 downto 0);
SEL : in std_logic;
OUTPUT : out std_logic
);
end component mux;and paste it as an instance :
mux_0 : mux -- place the cursor here and enter the command :Vii (Vhdl Interface Instance)
port map (
INPUT => s_INPUT,
SEL => s_SEL,
OUTPUT => s_OUTPUT
);VIP can :
copy an entity and paste it as
an entity
a component
an instance
copy a component and paste it as
an entity
a component
an instance
copy a instance and paste it as
an instance (with auto-incrementation of the suffix number)VIP tries to respect your indentation as much as possible (spaces, tabs, spaces + tabs).
It can work with many different styles of writing entities, components and instances but not all of them. See documentation.
Download :
[VIM scripts / VIP] (http://www.vim.org/scripts/script.php?script_id=3335)