diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2018-10-25 17:51:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-25 17:51:06 +0100 |
commit | 9c8bf9e471bb33fe8bf894014042b9357b6831a4 (patch) | |
tree | 216b3d8af7bbedd74057df4b602541b4aaddd702 /doc | |
parent | 7a408ff05554b285eb35edcb2fc9d94836482a75 (diff) | |
parent | c90051c53db56a3717cd4bab0ad4e1010ebfd3da (diff) | |
download | nixlib-9c8bf9e471bb33fe8bf894014042b9357b6831a4.tar nixlib-9c8bf9e471bb33fe8bf894014042b9357b6831a4.tar.gz nixlib-9c8bf9e471bb33fe8bf894014042b9357b6831a4.tar.bz2 nixlib-9c8bf9e471bb33fe8bf894014042b9357b6831a4.tar.lz nixlib-9c8bf9e471bb33fe8bf894014042b9357b6831a4.tar.xz nixlib-9c8bf9e471bb33fe8bf894014042b9357b6831a4.tar.zst nixlib-9c8bf9e471bb33fe8bf894014042b9357b6831a4.zip |
Merge pull request #49026 from schmittlauch/doc-vim
clarifying `name` arg determines vim command name
Diffstat (limited to 'doc')
-rw-r--r-- | doc/languages-frameworks/vim.section.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/languages-frameworks/vim.section.md b/doc/languages-frameworks/vim.section.md index 1b235dbb52f6..2cec1543a249 100644 --- a/doc/languages-frameworks/vim.section.md +++ b/doc/languages-frameworks/vim.section.md @@ -23,6 +23,7 @@ Adding custom .vimrc lines can be done using the following code: ``` vim_configurable.customize { + # `name` specifies the name of the executable and package name = "vim-with-plugins"; vimrcConfig.customRC = '' @@ -31,6 +32,8 @@ vim_configurable.customize { } ``` +This configuration is used when vim is invoked with the command specified as name, in this case `vim-with-plugins`. + For Neovim the `configure` argument can be overridden to achieve the same: ``` @@ -83,6 +86,7 @@ The resulting package can be added to `packageOverrides` in `~/.nixpkgs/config.n { packageOverrides = pkgs: with pkgs; { myVim = vim_configurable.customize { + # `name` specifies the name of the executable and package name = "vim-with-plugins"; # add here code from the example section }; |