说我在Vim 8做set statusline+=col:%3v;。
现在,如果我在第1列,我的状态线看起来像col: 1;。
我怎么才能拿到号码另一边的垫子呢?例如,如何使我的第1列状态线看起来像col:1 ;
发布于 2018-03-18 22:43:53
使用%-3v。如:help 'statusline中所记载的
field meaning
- Left justify the item. The default is right justified
when minwid is larger than the length of the item.这也是printf使用的约定,vim显然是在模仿它。
https://stackoverflow.com/questions/49353531
复制相似问题