Ⅰ. 插件描述
Snipmate.vim support for BibTeX filesⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'rbonvall/snipmate-snippets-bib'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'rbonvall/snipmate-snippets-bib'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'rbonvall/snipmate-snippets-bib'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/rbonvall/snipmate-snippets-bib
Ⅳ. 文档说明
Snipmate.vim support for BibTeX files
This plugin provides some snippets
for writing BibTeX (.bib) files.
The supported entry types are:Article,Book,Booklet,Conference,InBook,InCollection,InProceedings,Manual,MastersThesis,Misc,PhDThesis,Proceedings,TechReport andUnpublished.
The trigger words are these names converted to lower case.
Most of the optional fields (such as annote and eprint) are not included.
I tested this plugin against garbas's Snipmate fork_.
If it doesn't work with your own configuration, please let me know.
.. _garbas's Snipmate fork: https://github.com/garbas/vim-snipmate
Dependencies
- Vim (of course)
- Snipmate_.
Installation
This addon is compatible with Pathogen_ and Vundle_.
If you use one of them,
you are awesome so you'll know what to do.
I pretend to support installation with VAM_ as well,
but I haven't tried it.
If you are an old-fashioned Vimmer,
just drop the bib.snippets_ file
into the snippets directory
of your Snipmate install.
.. _Snipmate: https://github.com/garbas/vim-snipmate
.. _Pathogen: https://github.com/tpope/vim-pathogen
.. _VAM: https://github.com/MarcWeber/vim-addon-manager
.. _bib.snippets: https://github.com/rbonvall/snipmate-snippets-bib/blob/master/snippets/bib.snippets
Author
Roberto Bonvallet <rbonvall@gmail.com>