我知道这已经被问过了,但是我无法让JavaScript缩进在Vim中正常工作。Vim中的JavaScript语法和缩进
我尝试安装这个插件:
http://www.vim.org/scripts/script.php?script_id=3081
我得到这个行为:
if (x == 1) {
alert("nice");
}
这是我的vimrc:
syntax on
set background=light
colorscheme solarized
set tabstop=4
filetype plugin indent on
let g:solarized_termcolors=16
我也有这个试了一下插件:
http://www.vim.org/scripts/script.php?script_id=1840
但是,这给了我这样的:
if (x == 1) {
alert("nice");
}
即两个选项卡,在这里我只是一个标签中,要缩进。
任何人有什么想法在这里做什么?
我在Vim的工作了一整天的JavaScript和唐Javascript缩进似乎没有任何实际问题。看看我在Github上的Vim dotfiles - > [https://github.com/shanestillwell/dotvim](https://github.com/shanestillwell/dotvim) –