我想在vim编辑器中将我的文本与一个共同的角色对齐

时间:2014-12-09 08:51:44

标签: vim

假设我必须对齐此文本,以便每行中的最后一位数字都在一列中

begin: Tx_Arbiter_Reg4 
type: CONFIG
width: 32
field: RESERVED                                        31:22 {Reserved}
field: cfg_txarb_max_credits_xgnet                      21:0  {Maximum value credits that XGEthernet can accumulate. Credits will saturate at this level. As a general rule, this value should be programmed to 2* cfg_txarb_initial_credits_xgenet}
default: 32'h0020_0000
end

begin: Tx_Arbiter_Reg5 
type: CONFIG
width: 32
field: RESERVED                                        31:16 {Reserved}
field: cfg_txarb_rdma_pause_priority                    15:8 {Pause priority for RDMA traffic}
field: cfg_txarb_xgenet_pause_priority                7:0 {Pause priority for Xgenet traffic}
default: 32'h0000_8001
end

begin: Tx_Arbiter_Reg6 
type: CONFIG
width: 32
field: RESERVED                                        31:2 {Reserved}
field: cfg_rdma_pause_wq_en                              1 {Not supported}
field: cfg_xgenet_pause_wq_en                            0 {1=XGEthernet Work queues corresponding the Rx PPP packet are paused. 0=XGEthernet datapath (all priorities) are paused.}
default: 32'h0000_0001
end

1 个答案:

答案 0 :(得分:2)

对于对齐,有三个众所周知的插件:

所有文档都附带了大量文档,因此您希望能够根据您的要求找出对齐方式!