【问题标题】:VIM - Use values of the editorconfigVIM - 使用 editorconfig 的值
【发布时间】:2020-03-12 07:58:55
【问题描述】:

我想在我的.vimrc 文件中包含一个自动运行测试的映射。由于编程语言的多样性和成千上万的测试框架,我希望 vim 从我的 .editorconfig 文件中获取特定值。

我目前的做法是这样的:

nnoremap <leader>t :w<CR>:!npm run test<CR>

命令!npm run test&lt;CR&gt; 应与.editorconfig 文件中的值交换

但这只能使一种语言成为可能。

【问题讨论】:

  • 您可能需要一个 editorconfig 插件来执行此操作
  • 你知道允许我使用这些变量的插件吗?
  • 从字面上看,editorconfig 插件。

标签: vim editorconfig


【解决方案1】:

editorconfig/editorconfig-vim 表现良好。

非常感谢!

【讨论】:

    猜你喜欢
    • 2015-09-26
    • 2015-07-18
    • 2020-10-21
    • 2021-10-11
    • 2021-03-03
    • 2016-11-13
    • 2018-07-05
    • 1970-01-01
    相关资源
    最近更新 更多