vim-docbk


Ⅰ. 插件描述

DocBook 4.5 and 5.0 support for Vim

Ⅱ. 基本信息

创建日期:  2013-02-11
使用用户:  4
Github星:  4
插件作者:  Jaromír Hradílek

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'jhradilek/vim-docbk-if-this-was-a-movie'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'jhradilek/vim-docbk-if-this-was-a-movie'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'jhradilek/vim-docbk-if-this-was-a-movie'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/jhradilek/vim-docbk

Ⅳ. 文档说明

# vim-docbk

Description

The vim-docbk plug-in adds support for the DocBook XML language to Vim. It provides a syntax file, a filetype plug-in, and omni completion for DocBook 4.5 and 5.0.

For a complete set of snippets for this language, see my vim-snippets repository.

Installation

Installing the Plug-in Using Vundle

To install this plug-in by using the Vundle plug-in manager, add the following line to your ~/.vimrc:

Bundle 'jhradilek/vim-docbk'

Then run the following command in Vim:

:BundleInstall

Installing the Plug-in Using Pathogen

Pathogen looks for Vim 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 this plug-in, change to the ~/.vim/bundle/ directory and clone this repository there.

Installing Syntax Files Manually

Vim looks for its configuration files in the ~/.vim/ directory. To make sure that this directory exists, type the following at a shell prompt:

mkdir ~/.vim/

To install this plug-in, change to the directory with your local copy of this repository and run the following command:

cp -R * ~/.vim/

This copies all files and directories to the ~/.vim/ directory.

Configuration

Enabling Syntax Highlighting

To enable syntax highlighting in the current session, run the following Vim command:

:syntax on

To enable syntax highlighting permanently, add the following line to your ~/.vimrc file:

syntax on

You can also explicitly enable file type detection by adding the following line to this file:

filetype on

For more information on how to enable and configure syntax highlighting in Vim, refer to the Vim Documentation.

Copyright

Copyright © 2013, 2015 Jaromir Hradilek
Copyright © 2005, 2013 Devin Weaver

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.

添加新评论