lazyList : A quick way to create lists in Vim
| script karma
Downloaded by 1072
Comments, bugs, improvements
script versions (upload new version)
|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:
With non numerical indices, the plugin can even act smartly:
As a bonus, the selection algorithm of the plugin can be used as a motion command:
If this plugin is useful (Or useless) for you, please rate it.
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:
Install the distributed files into Vim runtime directory which is usually `~/.vim/`, or `$HOME/vimfiles` on Windows.
Simply extract the file into `bundle` directory.
Using a plugin manager
Just add the the following line in your vimrc:
Then install the plugin using the adequate command.
(The keyword 'Plug' & the installation command depends of your vim plugin manager)
Click on the package to download.
ip used for rating: 126.96.36.199
||* Refactor to make future implementations & integration into other plugin(s) easier
* Add test cases using Vader
* Add possibility to use selection algorithm as a motion command
* Allow usage of numerical indices greater than 9
- Select one line in VISUAL mode works as expected.
- Don't remove characters from line(s) without indices anymore.