Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7a408ff05554
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 9c8bf9e471bb
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Oct 24, 2018

  1. 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.
    schmittlauch committed Oct 24, 2018
    Copy the full SHA
    c90051c View commit details

Commits on Oct 25, 2018

  1. Merge pull request #49026 from schmittlauch/doc-vim

    clarifying `name` arg determines vim command name
    Mic92 authored Oct 25, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    9c8bf9e View commit details
Showing with 4 additions and 0 deletions.
  1. +4 −0 doc/languages-frameworks/vim.section.md
4 changes: 4 additions & 0 deletions doc/languages-frameworks/vim.section.md
Original file line number Diff line number Diff line change
@@ -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
};