我正在尝试使用 tabular 工具来对 vim 中的以下文本进行对齐:
typedef struct {
int a;
int *pa;
float b;
float *pb;
double c;
double *pc;
} foo_t;
转换为:
typedef struct {
int a;
int *pa;
float b;
float *pb;
double c; /* notice there's only one space between 'double' and 'c' */
double *pc;
} foo_t;
我使用了
:'<,'>Tab/.*\s
但它在 double
和 c
之间留下了两个空格。我该怎么办?
l0
标志即可。我之前不知道这些标志,应该先看文档,谢谢。 - none