sponsor Vim development Vim logo Vim Book Ad

lazyList : A quick way to create lists in Vim

 script karma  Rating 1/1, Downloaded by 1173  Comments, bugs, improvements  Vim wiki

created by
Kabbaj Amine
 
script type
utility
 
description
LazyList is a vim plugin who gives you possibility to create ordered and non ordered lists very quickly, and this by adding indices to the beginning of each line in the current selection.

Check this gif:
https://github.com/KabbAmine/lazyList.vim/raw/master/.img/main.gif

With non numerical indices, the plugin can even act smartly:
https://github.com/KabbAmine/lazyList.vim/raw/master/.img/todo.gif

As a bonus, the selection algorithm of the plugin can be used as a motion command:
https://github.com/KabbAmine/lazyList.vim/raw/master/.img/motion.gif

If this plugin is useful (Or useless) for you, please rate it.

USAGE
=====
The plugin provides one unique command: LazyList, which can be used to add/remove indices to/from a selection in NORMAL or VISUAL mode (This command can take 0 or 1 argument(s): The index).

The index can be:

    - A character or a string (e.g +, '* ','- ', 'Chapter X. '...)
    - A special pattern understandable by the plugin:
        %number%: Produces indices starting from number (e.g %1%, %33%...)
    - Both of them (e.g 'Chapter 1, part %1% - '...)

You will find all informations in the official repository:
https://github.com/KabbAmine/lazyList.vim
 
install details
Manual installation
~~~~~~~~~~~~~~~
Install the distributed files into Vim runtime directory which is usually `~/.vim/`, or `$HOME/vimfiles` on Windows.

Using Pathogen
~~~~~~~~~~~~~
Simply extract the file into `bundle` directory.

Using a plugin manager
~~~~~~~~~~~~~~~~~~~
Just add the the following line in your vimrc:
    Plug 'KabbAmine/lazyList.vim'
Then install the plugin using the adequate command.
(The keyword 'Plug' & the installation command depends of your vim plugin manager)
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
lazyList.tar.gz v0.6 2015-09-22 7.0 Kabbaj Amine * Refactor to make future implementations & integration into other plugin(s) easier
* Add test cases using Vader
### Features
* Add possibility to use selection algorithm as a motion command
### Fixes
* Allow usage of numerical indices greater than 9
lazyList.tar.gz v0.3 2015-08-21 7.0 Kabbaj Amine Fixes:
- Select one line in VISUAL mode works as expected.
- Don't remove characters from line(s) without indices anymore.
lazyList.tar.gz v0.1 2015-08-20 7.0 Kabbaj Amine Initial upload
ip used for rating: 54.196.27.171

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github