本文介绍了vim表格插件问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
之前
@stallone = Factory :user, :name => 'Sylvester', :age => 64
@schwarzenegger = Factory :user, :name => 'Arnold', :age => 63
一些魔法...
之后
@stallone = Factory :user, :name => 'Sylvester', :age => 64
@schwarzenegger = Factory :user, :name => 'Arnold', :age => 63
如何与 VIM 的表格插件进行这种对齐?
How to make such alignment with tabular plugin for VIM?
推荐答案
我不知道 Tabular(看起来很整洁),但似乎 cutalion 有解决方案.
I don't know Tabular (looks pretty neat), but it seems cutalion has the solution.
只需将其映射到某物:
map <Leader>a :Tab / = /l0<CR>:Tab / :/l0<CR>
如果你需要做一些选择g,根据需要添加gv
(重新选择最后一个选择).
If you needed to do some selectiong, add gv
(reselect last selection) as appropriate.
这篇关于vim表格插件问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!