Vim: Difference between revisions
imported>Sorrel →gvim and gview: document wrapGui |
imported>Sorrel →Apply custom vimrc configuration: note that ~/.vimrc won't work, document vimrcConfig.beforePlugins |
||
| Line 106: | Line 106: | ||
==== Apply custom vimrc configuration ==== | ==== Apply custom vimrc configuration ==== | ||
NB: you ''must'' use <code>vimrcConfig.customRC</code> rather than installing a <code>~/.vimrc</code> by hand, since the customized Vim will silently ignore any vimrc in your home directory. | |||
<syntaxHighlight lang="nix"> | <syntaxHighlight lang="nix"> | ||
| Line 117: | Line 119: | ||
} | } | ||
</syntaxHighlight> | </syntaxHighlight> | ||
If you need to run code before plugins are added, you can use <code>vimrcConfig.beforePlugins</code> (be sure to include <code>set nocompatible</code> if you override [https://github.com/NixOS/nixpkgs/blob/c3df8057dad986bf7f3928de1b5233fadb52bb15/pkgs/misc/vim-plugins/vim-utils.nix#L264-L267 the default value]). | |||
=== Using vim's builtin packaging capability === | === Using vim's builtin packaging capability === | ||