diff options
author | 7c6f434c <7c6f434c@mail.ru> | 2022-03-29 09:50:44 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-29 09:50:44 +0000 |
commit | cd8d9556208b9f31c3e8695acd13755d206fa849 (patch) | |
tree | 078f33e5784650044639f26572f9177082ee3af1 /doc | |
parent | e705e589507d0d8fb225613e0d45d1a5bba223fe (diff) | |
parent | 21e45db6f1b196678e967b516a0761922bdf5dd7 (diff) |
Merge pull request #164994 from ncfavier/vim-wrapper
vim wrapper improvements
Diffstat (limited to 'doc')
-rw-r--r-- | doc/languages-frameworks/vim.section.md | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/languages-frameworks/vim.section.md b/doc/languages-frameworks/vim.section.md index a3b47461a6bd8..563fdf45a8611 100644 --- a/doc/languages-frameworks/vim.section.md +++ b/doc/languages-frameworks/vim.section.md @@ -18,7 +18,7 @@ Adding custom .vimrc lines can be done using the following code: ```nix vim_configurable.customize { - # `name` specifies the name of the executable and package + # `name` optionally specifies the name of the executable and package name = "vim-with-plugins"; vimrcConfig.customRC = '' @@ -28,6 +28,9 @@ vim_configurable.customize { ``` This configuration is used when Vim is invoked with the command specified as name, in this case `vim-with-plugins`. +You can also omit `name` to customize Vim itself. See the +[definition of `vimUtils.makeCustomizable`](https://github.com/NixOS/nixpkgs/blob/master/pkgs/applications/editors/vim/plugins/vim-utils.nix#L408) +for all supported options. For Neovim the `configure` argument can be overridden to achieve the same: |