vim JavaScript Indent 插件 - 命令是什么?
vim JavaScript Indent plugin - what are the commands?
我有兴趣使用JavaScript Indent plugin, but the vim script page只介绍如何安装插件
插件有帮助文件吗?如何使用?
我曾尝试 google 寻求一些有关使用它的帮助,但到目前为止我发现的最好的是 Fix_indentation 的一般性建议。 JavaScript Indent 插件是否比 Fix_indentation 页面中描述的更多?
缩进插件设置 'indentexpr'
选项;如果安装正确(即在 ~/.vim/indent/javascript.vim
下,并在编辑 JavaScript 文件后列在 :scriptnames
下),它应该开箱即用。
您可以通过
验证
:verbose setlocal indentexpr?
SetJsIndent(v:lnum)
我有兴趣使用JavaScript Indent plugin, but the vim script page只介绍如何安装插件
插件有帮助文件吗?如何使用?
我曾尝试 google 寻求一些有关使用它的帮助,但到目前为止我发现的最好的是 Fix_indentation 的一般性建议。 JavaScript Indent 插件是否比 Fix_indentation 页面中描述的更多?
缩进插件设置 'indentexpr'
选项;如果安装正确(即在 ~/.vim/indent/javascript.vim
下,并在编辑 JavaScript 文件后列在 :scriptnames
下),它应该开箱即用。
您可以通过
验证:verbose setlocal indentexpr?
SetJsIndent(v:lnum)