Ⅰ. 插件描述
Vim support for editing fortune files.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'ljcooke/vim-fortune'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'ljcooke/vim-fortune'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'ljcooke/vim-fortune'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/ljcooke/vim-fortune
Ⅳ. 文档说明
vim-fortune
Features
This plugin adds support to Vim for editing fortune files.
Features:
- Highlights the
%lines that separate fortunes. - Move between fortune separators using the
[[and]]commands. - Sets the text width to 72 and tab width to 8, to match the recommended
formatting style for fortune files.
Install
This project follows the standard runtime path structure.
Install using Pathogen:
$ git clone https://github.com/araile/vim-fortune.git ~/.vim/bundle/vim-fortune
Usage
While editing a fortune file, enter the command:
:set filetype=fortune
This is done automatically if the filename ends with the extension .fortune.
License
Licensed under the MIT License. See the LICENSE file for details.