Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图让 vim 像这样缩进我的代码
var foo, bar, baz;
但是vim会自动缩进(用=),就像
有谁知道如何改变这个?
添加
vnoremap <Tab> >gv vnoremap <S-Tab> <gv
到您的 .vimrc ,然后只需选择这些行并向后推“Tab”或“Shift+Tab”