Ⅰ. 插件描述
Design/Library Exchange Formats syntax filesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'tarikgraba/vim-lefdef'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'tarikgraba/vim-lefdef'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'tarikgraba/vim-lefdef'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/tarikgraba/vim-lefdef
Ⅳ. 文档说明
# Design/Library Exchange Formats syntax files
The comtent of this repository is based on the LEF_DEF_syntax syntax files created by Levon Ohanyan that you can find on vim.org.
This copy simplifies the installation using a plugin manager (like Vundle or Plug).
Some highlight group have been modified to use more common ones.
Original readme
How to install DEF (Design Exchange Format) and LEF (Library Exchange Format) syntax files:
For UNIX:
- Copy
syntax/*to$HOME/.vim/syntax/ - Copy
ftdetect/*to/home/.vim/ftdetect/ - Add to your .vimrc file following lines:
autocmd FileType lef so ~/.vim/syntax/lef.vim
autocmd FileType def so ~/.vim/syntax/def.vimFor Windows:
- Copy
syntax/*toC:\Program Files (x86)\Vim\vimfiles\syntax\ - Copy
ftdetect/*toC:\Program Files (x86)\Vim\vimfiles\ftdetect\