makecols.vim: converting lists to columns made simple
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

1.6 KiB

makecols

Makecols.vim is intended to easily convert lists into column based layouts.

The easiest way to explain is with examples.

Say you have a list of things (in this case numbers)

1
2
3
4
5
6
7
8
9
10

and you’d like it to look neater

1       2
3       4
5       6
7       8
9       10

That’s pretty neat

Usage

Here’s how you do it.

Start with a list like above.

1
2
3
4
5
6
7
8
9
10

Then visual select the rows you’d like to make neat.

Then type mc and viola! The data has automagically been reconstructed into a satisfactory arrangement.

1       2
3       4
5       6
7       8
9       10

You are now free of the worry caused by inadequate single column list layouts. Carry on.

Additionally, you can do things like 3mcv which would make 3 columns, and arrange to a vertical sorting like so:

1       5      9
2       6      10
3       7
4       8

Installation

If you don't have a preferred installation method, I recommend installing pathogen.vim, and then simply copy and paste:

cd ~/.vim/bundle
git clone git://github.com/leothelocust/vim-makecols.git

Once help tags have been generated, you can view the manual with :help makecols.

Contributing

Just pull, make some changes, and create a merge request.

License

Copyright (c) Levi Olson. Distribution under the same terms as Vim itself. See :help license.