numlist.vim


Ⅰ. 插件描述

Add and remove id to a list items

Ⅱ. 基本信息

创建日期:  2011-08-28
使用用户:  1
Github星:  1
插件作者:  Tian Huixiong

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/numlist-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/numlist-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/numlist-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

              Only two commands:  NumberedList  and  NoNumberedList
              Just selected lines and call command.
              Commands will guarantee the items with same indent.
              If they are not so, they will be changed.
              All rest items align with the first one.
              
                        Numbered from 1
               line1       :NumberedList      1. line1
               line2                                       2. line2
               line3                                       3. line3
               line4                                       4. line4
               line5                                       5. line5

                        Numbered from 8
               line1      :NumberedList 8     8.  line1
               line2                                        9.  line2
               line3                                      10. line3
               line4                                       11. line4
               line5                                      12. line5

                        Re numbered
               1. line1     :NumberedList     1. line1
               2. line2                                    2. line2
               5. line3                                    3. line3
               7. line4                                    4. line4
               8. line5                                    5. line5

                       Guarantee the same indent
             1. line1     :NumberedList       1. line1
               2. line2                                    2. line2
               5. line3                                    3. line3
               7. line4                                    4. line4
               8. line5                                    5. line5

                         Remove number
               1. line1     :NoNumberedList   line1
               2. line2                                       line2
               3. line3                                       line3
               4. line4                                       line4
               5. line5                                       line5

                         Remove number
               1  line1     :NoNumberedList   line1
               2  line2                                       line2
               3  line3                                       line3
               4  line4                                       line4
               5  line5                                       line5

                       Guarantee the same indent
             1. line1     :NoNumberedList     line1
               2. line2                                       line2
               3. line3                                       line3
               4. line4                                       line4
               5. line5                                       line5

                       Just the same, no error
               line1     :NoNumberedList      line1
               line2                                          line2
               line3                                          line3
               line4                                          line4
               line5                                          line5

                     Guarantee the same indent
             line1     :NoNumberedList        line1
               line2                                          line2
               line3                                          line3
               line4                                          line4
               line5                                          line5

添加新评论