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.

93 lines
1.6 KiB

9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
  1. makecols
  2. ========
  3. Makecols.vim is intended to easily convert lists into column based
  4. layouts.
  5. The easiest way to explain is with examples.
  6. Say you have a list of things (in this case numbers)
  7. 1
  8. 2
  9. 3
  10. 4
  11. 5
  12. 6
  13. 7
  14. 8
  15. 9
  16. 10
  17. and you’d like it to look neater
  18. 1 2
  19. 3 4
  20. 5 6
  21. 7 8
  22. 9 10
  23. [That’s pretty neat](https://www.youtube.com/watch?v=Hm3JodBR-vs&feature=youtu.be&t=25s)
  24. Usage
  25. -----
  26. Here’s how you do it.
  27. Start with a list like above.
  28. 1
  29. 2
  30. 3
  31. 4
  32. 5
  33. 6
  34. 7
  35. 8
  36. 9
  37. 10
  38. Then visual select the rows you’d like to make neat.
  39. Then type ```mc``` and viola! The data has automagically been reconstructed
  40. into a satisfactory arrangement.
  41. 1 2
  42. 3 4
  43. 5 6
  44. 7 8
  45. 9 10
  46. You are now free of the worry caused by inadequate single column list layouts. Carry on.
  47. Additionally, you can do things like ```3mcv``` which would make 3 columns, and arrange to a vertical sorting like so:
  48. 1 5 9
  49. 2 6 10
  50. 3 7
  51. 4 8
  52. Installation
  53. ------------
  54. If you don't have a preferred installation method, I recommend
  55. installing [pathogen.vim](https://github.com/tpope/vim-pathogen), and
  56. then simply copy and paste:
  57. cd ~/.vim/bundle
  58. git clone git://github.com/leothelocust/vim-makecols.git
  59. Once help tags have been generated, you can view the manual with
  60. `:help makecols`.
  61. Contributing
  62. ------------
  63. Just pull, make some changes, and create a merge request.
  64. License
  65. -------
  66. Copyright (c) Levi Olson. Distribution under the same terms as Vim itself.
  67. See `:help license`.