Ⅰ. 插件描述
Edit Confluence Wikis with VimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'orlandov/vimfluence'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'orlandov/vimfluence'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'orlandov/vimfluence'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/orlandov/vimfluence
Ⅳ. 文档说明
Vimfluence - Edit Confluence with Vim (or some other editor)
Free yourself from the shackles of WYSIWYG and TextArea wiki editors. Reach
unheralded levels of productivity by editing your Confluence wiki with the
most powerful text editor known to mankind: Vim!
(You can use less powerful editors as well.)
INSTALLATION
- (Optional) For confluence wiki syntax highlighting in Vim, download and
install the confluencewiki syntax plugin from
http://www.vim.org/scripts/script.php?script_id=1994
Vimfluence uses the values in WIKI_EDITOR, VISUAL, or EDITOR to select the
- If none of these are set, Vimfluence defaults to the most powerful
- known to makind.
Edit your "~/.profile" to set the wiki path:
export WIKI_URL="http://hub.example.com/wiki" # edit for your wiki path- Drop
vimfluencesomewhere in your path. - Create a "~/.netrc" file with your wiki url and login/password. Change the
permission to 0600.
machine http://hub.example.com/wiki
login myuser@example.com
password mypassword
- Run vimfluence:
vimfluence MySpace "My Wiki Page" - If you consistently editing pages in a particular Confluence space you might
like an alias like this:
alias devwiki="WIKI_URL=http://hub.example.com/wiki vimfluence dev"
- Alternatively you can also call
vimfluencelike this:vimfluence http://hub.example.com/wiki/display/space/Page+Name
which can be handy for a quick cut 'n paste from the browser.
Oh and...
You're Welcome!