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.

138 lines
3.9 KiB

  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta http-equiv="X-UA-Compatible" content="chrome=1">
  6. <title>Vim-makecols by leothelocust</title>
  7. <link rel="stylesheet" href="stylesheets/styles.css">
  8. <link rel="stylesheet" href="stylesheets/github-light.css">
  9. <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
  10. <!--[if lt IE 9]>
  11. <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  12. <![endif]-->
  13. </head>
  14. <body>
  15. <div class="wrapper">
  16. <header>
  17. <h1>Vim-makecols</h1>
  18. <p>makecols.vim: converting lists to columns made simple</p>
  19. <p class="view"><a href="https://github.com/leothelocust/vim-makecols">View the Project on GitHub <small>leothelocust/vim-makecols</small></a></p>
  20. <ul>
  21. <li><a href="https://github.com/leothelocust/vim-makecols/zipball/master">Download <strong>ZIP File</strong></a></li>
  22. <li><a href="https://github.com/leothelocust/vim-makecols/tarball/master">Download <strong>TAR Ball</strong></a></li>
  23. <li><a href="https://github.com/leothelocust/vim-makecols">View On <strong>GitHub</strong></a></li>
  24. </ul>
  25. </header>
  26. <section>
  27. <h1>
  28. <a id="makecols" class="anchor" href="#makecols" aria-hidden="true"><span class="octicon octicon-link"></span></a>makecols</h1>
  29. <p>Makecols.vim is intended to easily convert lists into column based
  30. layouts.</p>
  31. <p>The easiest way to explain is with examples.</p>
  32. <p>Say you have a list of things (in this case numbers)</p>
  33. <pre><code>1
  34. 2
  35. 3
  36. 4
  37. 5
  38. 6
  39. 7
  40. 8
  41. 9
  42. 10
  43. </code></pre>
  44. <p>and you’d like it to look neater</p>
  45. <pre><code>1 2
  46. 3 4
  47. 5 6
  48. 7 8
  49. 9 10
  50. </code></pre>
  51. <p><a href="https://www.youtube.com/watch?v=Hm3JodBR-vs&amp;feature=youtu.be&amp;t=25s">That’s pretty neat</a></p>
  52. <h2>
  53. <a id="usage" class="anchor" href="#usage" aria-hidden="true"><span class="octicon octicon-link"></span></a>Usage</h2>
  54. <p>Here’s how you do it.</p>
  55. <p>Start with a list like above.</p>
  56. <pre><code>1
  57. 2
  58. 3
  59. 4
  60. 5
  61. 6
  62. 7
  63. 8
  64. 9
  65. 10
  66. </code></pre>
  67. <p>Then visual select the rows you’d like to make neat.</p>
  68. <p>Then type <code>mc</code> and viola! The data has automagically been reconstructed
  69. into a satisfactory arrangement.</p>
  70. <pre><code>1 2
  71. 3 4
  72. 5 6
  73. 7 8
  74. 9 10
  75. </code></pre>
  76. <p>You are now free of the worry caused by inadequate single column list layouts. Carry on.</p>
  77. <p>Additionally, you can do things like <code>3mcv</code> which would make 3 columns, and arrange to a vertical sorting like so:</p>
  78. <pre><code>1 5 9
  79. 2 6 10
  80. 3 7
  81. 4 8
  82. </code></pre>
  83. <h2>
  84. <a id="installation" class="anchor" href="#installation" aria-hidden="true"><span class="octicon octicon-link"></span></a>Installation</h2>
  85. <p>If you don't have a preferred installation method, I recommend
  86. installing <a href="https://github.com/tpope/vim-pathogen">pathogen.vim</a>, and
  87. then simply copy and paste:</p>
  88. <pre><code>cd ~/.vim/bundle
  89. git clone git://github.com/leothelocust/vim-makecols.git
  90. </code></pre>
  91. <p>Once help tags have been generated, you can view the manual with
  92. <code>:help makecols</code>.</p>
  93. <h2>
  94. <a id="contributing" class="anchor" href="#contributing" aria-hidden="true"><span class="octicon octicon-link"></span></a>Contributing</h2>
  95. <p>Just pull, make some changes, and create a merge request.</p>
  96. <h2>
  97. <a id="license" class="anchor" href="#license" aria-hidden="true"><span class="octicon octicon-link"></span></a>License</h2>
  98. <p>Copyright (c) Levi Olson. Distribution under the same terms as Vim itself.
  99. See <code>:help license</code>.</p>
  100. </section>
  101. <footer>
  102. <p>This project is maintained by <a href="https://github.com/leothelocust">leothelocust</a></p>
  103. <p><small>Hosted on GitHub Pages &mdash; Theme by <a href="https://github.com/orderedlist">orderedlist</a></small></p>
  104. </footer>
  105. </div>
  106. <script src="javascripts/scale.fix.js"></script>
  107. </body>
  108. </html>