我最近阅读了这篇关于在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
选项就是你想要的.