diff options
author | zimbatm <zimbatm@zimbatm.com> | 2016-02-26 15:03:53 +0000 |
---|---|---|
committer | zimbatm <zimbatm@zimbatm.com> | 2016-02-26 21:58:21 +0000 |
commit | 89f0e251899850109f25391836472ba6892b7d15 (patch) | |
tree | 2f03f1aa4e66c717cc7f37cd31c3ce8c062d8c35 /pkgs/applications/editors | |
parent | a469681a5107fc72fbb724c2f01989358249fc10 (diff) |
vim: provide a default vimrc
Minimal sane defaults imported from ArchLinux. This is basically `set :nocompatible` with some other small changes.
Diffstat (limited to 'pkgs/applications/editors')
-rw-r--r-- | pkgs/applications/editors/vim/default.nix | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/pkgs/applications/editors/vim/default.nix b/pkgs/applications/editors/vim/default.nix index a09eb846e500f..1249b0b956416 100644 --- a/pkgs/applications/editors/vim/default.nix +++ b/pkgs/applications/editors/vim/default.nix @@ -1,5 +1,10 @@ -{ stdenv, fetchFromGitHub, ncurses, gettext, pkgconfig - +{ stdenv, fetchFromGitHub, fetchurl, ncurses, gettext, pkgconfig +# default vimrc +, vimrc ? fetchurl { + name = "default-vimrc"; + url = https://projects.archlinux.org/svntogit/packages.git/plain/trunk/archlinux.vim?h=packages/vim?id=68f6d131750aa778807119e03eed70286a17b1cb; + sha256 = "18ifhv5q9prd175q3vxbqf6qyvkk6bc7d2lhqdk0q78i68kv9y0c"; + } # apple frameworks , Carbon, Cocoa }: @@ -25,7 +30,11 @@ stdenv.mkDerivation rec { "--enable-nls" ]; - postInstall = "ln -s $out/bin/vim $out/bin/vi"; + postInstall = '' + ln -s $out/bin/vim $out/bin/vi + mkdir -p $out/share/vim + cp "${vimrc}" $out/share/vim/vimrc + ''; crossAttrs = { configureFlags = [ |