Ⅰ. 插件描述
verilog filetype plugin to enable emacs verilog-mode autosⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/verilog-emacsauto-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/verilog-emacsauto-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/verilog-emacsauto-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/verilog_emacsauto.vim
Ⅳ. 文档说明
Two emacs verilog-mode functions are mapped.
a expands all the verilog-mode autos (similar to C-c C-a in emacs).
d collapses all the verilog-mode autos (similar to C-c C-d in emacs).
Previously if I wanted to update verilog-mode autos, I would
save and quit vim
fire up emacs
do the auto commands
save and close emacs
fire up vim.
And in doing so, I would lose all the edit history in vim.
With this I can just type a and keep all the previous edit history for undos.
This is my first attempt at writing a vim plugin. Code should be simple enough for an average Verilog user to take and fix/enhance according to needs. Doing :he plugin, :he write-plugin, or :he plugin-details should reveal how simple this really is.