Inserting indentation for columns in Vim

前端 未结 5 913
闹比i
闹比i 2020-12-05 08:24

Using Vim I\'m really a fan of the visual mode that allows you to insert text before a column.

Insert some spacing after the arrows,

> one
> tw         


        
5条回答
  •  温柔的废话
    2020-12-05 08:52

    You have to use a specific plugin, you can use either Tabular or Align plugin in this case.

    They both allow you to align text on specific characters, like -- in your example. Their syntax is a bit different though. Pick the one that suit you the most.

提交回复
热议问题