Ⅰ. 插件描述
:TEOLⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/teol-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/teol-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/teol-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/teol.vim
Ⅳ. 文档说明
This is a vim remake of an old macro I had for Multi-Edit, handy it was though
not so necessary with VIM, given A and :s but this will not mess up your cursor
position, works on a range, etc. It has some use.
There are default/example mappings for both visual and normal modes:
For end of line toggling:
<leader>; toggles ";" at end of line.
<leader>, toggles "," at end of line.
<leader>: toggles ":" at end of line.
For start of line: (start of line for this is first non white space char, like
^ as opposed to 0 )
<leader>s, toggles ", " at start of line.
<leader>s: toggles ": " at start of line.
NOTE that you can toggle strings not just chars; I.e. ":TSOL --", ":TEOL --"
and so on.