Ⅰ. 插件描述
AsciiDoc, DocBook, Mallard, and RELAX NG snippets for VimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'jhradilek/vim-snippets-sweeter-than-fiction'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'jhradilek/vim-snippets-sweeter-than-fiction'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'jhradilek/vim-snippets-sweeter-than-fiction'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/jhradilek/vim-snippets
Ⅳ. 文档说明
# Snippets for Vim
Description
The vim-snippets repository provides a collection of snippets for Vim, namely for the UltiSnips and snipMate plug-ins.
The following snippets are available for UltiSnips (recommended):
- asciidoc.snippets — Snippets for AsciiDoc. Read more…
- docbk.snippets — Snippets for DocBook XML 4.5. Read more…
- mallard.snippets — Snippets for Mallard XML. Read more…
- rng.snippets — Snippets for the RELAX NG schema language for XML. Read more…
The following snippets are available for snipMate:
- docbk.snippets — Snippets for the DocBook XML language. Read more…
- mallard.snippets — Snippets for the Mallard XML language. Read more…
- rng.snippets — Snippets for the RELAX NG schema language for XML. Read more…
Installation
Installing the snippets in Vim 8 and newer (recommended)
To install all available snippets by using the native package manager introduced with Vim 8, clone this repository in your ~/.vim/pack/*/start/ directory. If this directory does not exist, create it by typing the following at a shell prompt:
install -d ~/.vim/pack/my-plugins/start/
Installing the snippets using Vundle
To install all available snippets by using the Vundle plug-in manager, add the following line to your ~/.vimrc:
Plugin 'jhradilek/vim-snippets'
Then run the following command in Vim:
:PluginInstall
Installing the snippets using Pathogen
Pathogen looks for files in the ~/.vim/bundle/ directory. To make sure that this directory exists, type the following at a shell prompt:
install -d ~/.vim/bundle/
To install all available snippets, change to the ~/.vim/bundle/ directory and clone this repository in it.
See also
- vim-docbk — A syntax file, a filetype plug-in, and omni completion for DocBook 4.5 and 5.0.
- vim-mallard — A syntax file, a filetype plug-in, and omni completion for Mallard 1.0.
- vim-rng — A syntax file, a filetype plug-in, and omni completion for RELAX NG 1.0.
- atom-docbook-snippets — A collection of DocBook snippets for Atom.
- emacs-docbook-snippets — A collection of DocBook snippets for Emacs.
- geany-snippets — A collection of DocBook and Mallard snippets for Geany.
- gedit-snippets — A collection of DocBook and Mallard snippets for Gedit.
Copyright
Copyright © 2010–2019 Jaromir Hradilek
This program is free software; see the source for copying conditions. It is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.