Vim: 将插入点与列的左侧对齐

Vim: Aligning insertion point with left side of column

假设我有这个(我的插入点指定为“|”):

col1           col2

thing          oeueaoue|
another
something
test

我将使用什么击键,以便插入点跳转到此处:

col1           col2

thing          oeueaoue
another        |
something
test

?

return+A+tab...是唯一的方法吗?

在插入模式下:

<Down><Tab>

普通模式下:

<Down>A<Tab>

或:

j<Tab>

当有很多行要编辑时,临时映射 return 键会很有用,就像你的情况:

inoremap <buffer> <cr> <esc>jA<tab>

完成后,只需取消地图即可:

iunmap <buffer> <cr>