vim - VIM - 使用 editorconfig 的值
问题描述
我想在我的.vimrc
文件中包含一个自动运行测试的映射。.editorconfig
由于有数千种测试框架的各种编程语言,我希望 vim 从我的文件中获取特定值。
我目前的做法是这样的:
nnoremap <leader>t :w<CR>:!npm run test<CR>
该命令!npm run test<CR>
应与.editorconfig
文件中的值交换
但这使得只有一种语言成为可能。
解决方案
editorconfig/editorconfig-vim运行良好。
非常感谢!