题
最近我读了关系到Vim的缩进源文件这篇文章。不过,我想能够自定义缩进其中的一些。是否有指定的二进制运行时,我按下=的方法吗?
解决方案
从帮助:
={motion} Filter {motion} lines through the external program given with the 'equalprg' option. When the 'equalprg' option is empty (this is the default), use the internal formatting function |C-indenting|. But when 'indentexpr' is not empty, it will be used instead |indent-expression|.
它看起来像设置equalprg
选项是你想要的。
其他提示
您可以设置equalprg
选项。 (见:他=对于以上)。
不隶属于 StackOverflow