Vim/zh: Difference between revisions

Ardenet (talk | contribs)
Created page with "* [https://github.com/wagnerf42/nixos-config/blob/master/config/my_vim.nix wagnerf42 的配置(适用于 Rust 语言)]"
Tags: Mobile edit Mobile web edit
Ardenet (talk | contribs)
Created page with "{{note|要了解如何在 Nix 系统中设置 Vim 的总体概述,请参阅 [https://www.mpscholten.de/nixos/2016/04/11/setting-up-vim-on-nixos.html mpscholten的博客]}}"
Line 42: Line 42:
</syntaxhighlight>
</syntaxhighlight>


<div lang="en" dir="ltr" class="mw-content-ltr">
有关所有选项,请参阅 [https://github.com/rycee/home-manager/blob/master/modules/programs/vim.nix]
See [https://github.com/rycee/home-manager/blob/master/modules/programs/vim.nix] for the full set of options.
</div>


<span id="Vim_Spell_Files"></span>
<span id="Vim_Spell_Files"></span>
Line 84: Line 82:
==== NeoVim 配置带有 Python 支持的 Coc ====
==== NeoVim 配置带有 Python 支持的 Coc ====


<div lang="en" dir="ltr" class="mw-content-ltr">
对于 NeoVim,请使用以下 home-manager 配置:
For NeoVim use this home manager config:
https://github.com/NixOS/nixpkgs/issues/98166#issuecomment-725319238
https://github.com/NixOS/nixpkgs/issues/98166#issuecomment-725319238
</div>


<span id="System_wide_vim/nvim_configuration"></span>
<span id="System_wide_vim/nvim_configuration"></span>
Line 158: Line 154:
== 不使用 Home Manager 的自定义设置 ==
== 不使用 Home Manager 的自定义设置 ==


<div lang="en" dir="ltr" class="mw-content-ltr">
{{note|要了解如何在 Nix 系统中设置 Vim 的总体概述,请参阅 [https://www.mpscholten.de/nixos/2016/04/11/setting-up-vim-on-nixos.html mpscholten的博客]}}
{{note|To get a general overview about how to set up your vim in nix, refer to [https://www.mpscholten.de/nixos/2016/04/11/setting-up-vim-on-nixos.html mpscholten's blog] }}
</div>


Vim 插件可以通过 nix 安装。您可以不使用 vim 插件管理器,直接在 <code>.nixpkgs/config</code> 中完成所有操作。
Vim 插件可以通过 nix 安装。您可以不使用 vim 插件管理器,直接在 <code>.nixpkgs/config</code> 中完成所有操作。