vim: add global vimrc with common-sense settings

This commit is contained in:
Christian Neukirchen 2014-07-08 16:49:17 +02:00
parent 74f427339b
commit ab2ca60f6b
2 changed files with 12 additions and 1 deletions

10
srcpkgs/vim/files/vimrc Normal file
View file

@ -0,0 +1,10 @@
" System-wide vim configuration
set nocompatible
set backspace=indent,eol,start
set history=50
set ruler
if filereadable("/etc/vimrc.local")
source /etc/vimrc.local
endif

View file

@ -3,7 +3,7 @@ pkgname=vim
_distver=7.4
_patchver=307
version=${_distver}.${_patchver}
revision=1
revision=2
hostmakedepends="mercurial pkg-config"
makedepends="ncurses-devel acl-devel libXt-devel gtk+-devel
desktop-file-utils hicolor-icon-theme ruby-devel python-devel lua-devel perl"
@ -99,6 +99,7 @@ vim-common_package() {
replaces="vim<=7.2_2"
pkg_install() {
vmove usr/share/vim
vinstall ${FILESDIR}/vimrc 644 usr/share/vim
}
}