当我想写
时{
var myJson = {
property:"value"
}
}
在vim中,当我输入:
时,第二行跳到行的开头。
我怎么能避免这种情况?
我在编辑* .js文件时遇到此问题,而不是在*,vb文件中(在其中有意义)。
答案 0 :(得分:2)
看起来你错了indentexpr
。对于我来说,cindent
和smartindent
都设置为, cinkeys
/ indentkeys
包含:
的js文件,但我没有&#39 ; t得到描述的行为。
检查
:verbose set ft? cinkeys? indentkeys? cindent? smartindent? indentexpr?
找出哪个(文件类型)插件导致这些设置