Ⅰ. 插件描述
Vim plugin which transform a sentence to a list. Created by Damian Conway.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'shinokada/listtrans-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'shinokada/listtrans-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'shinokada/listtrans-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/shinokada/listtrans.vim
Ⅳ. 文档说明
# listtrans.vim
Created by Damian Conway
Watch his video at OSCON
This plugin toggles a sentence separated by , or ; to a list.
Toggle lists
;l :call ListTrans_toggle_format()<CR>
;l :call ListTrans_toggle_format('visual')<CR>
This doesn't work if you are swapping : and ;. Get rid of that.
If you have , in the list and toggle back to a sentence then it will be
separated by ;.
Toggling from a list to a sentence, it will add 'and' at the end of list item.
Conjunctions
The default conjuction is 'and'. If you use other conjuctions which listed below, it will be added in the list
before the last item.
Default conjunction: and
Conjunctions: and not, and, plus, with, or else, or otherwise, or, nor, but not, but, else, otherwise