git.iko.soy/typeable/nixpkgs
on master help sign in
clarifying `name` arg determines vim command name

The `name` arg of `vim_configurable.customize` does not only determine the package name, but also the name of the command/ executable to be called. In my opinion this is not documented properly and finding that out took me several hours.

commitc90051c53db56a3717cd4bab0ad4e1010ebfd3da authorTrolli Schmittlauch <t.schmittlauch@orlives.de> dateWed 24 Oct 2018, 17:02 (8 years ago) parent7d96d15
1 file changed+4
doc/languages-frameworks/vim.section.md+4
doc/languages-frameworks/vim.section.md+4
@@ -23,6 +23,7 @@ Adding custom .vimrc lines can be done using the following code:
2323
2424```
2525vim_configurable.customize {
26+ # `name` specifies the name of the executable and package
2627 name = "vim-with-plugins";
2728
2829 vimrcConfig.customRC = ''
@@ -31,6 +32,8 @@ vim_configurable.customize {
3132}
3233```
3334
35+This configuration is used when vim is invoked with the command specified as name, in this case `vim-with-plugins`.
36+
3437For Neovim the `configure` argument can be overridden to achieve the same:
3538
3639```
@@ -83,6 +86,7 @@ The resulting package can be added to `packageOverrides` in `~/.nixpkgs/config.n
8386{
8487 packageOverrides = pkgs: with pkgs; {
8588 myVim = vim_configurable.customize {
89+ # `name` specifies the name of the executable and package
8690 name = "vim-with-plugins";
8791 # add here code from the example section
8892 };