vim: use example vimrc from vim runtime files

Rather than keeping our own local vimrc file we can use vimrc_example.vim from
the runtime files distributed with vim. This keeps us up-to-date with changes to
the config when we move to a new vim version.

Also tidy comments around do_install_append so that it is clearer what is
happening.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Paul Barker
2013-04-20 12:17:05 +00:00
committed by Martin Jansa
parent 4e896feefb
commit 29f73dc16d
2 changed files with 4 additions and 99 deletions
+4 -3
View File
@@ -15,7 +15,6 @@ SRC_URI = " \
ftp://ftp.${PN}.org/pub/${PN}/unix/${PN}-${PV_MAJOR}.tar.bz2;name=${VIMDIR} \
ftp://ftp.${PN}.org/pub/${PN}/extra/${PN}-${PV_MAJOR}-extra.tar.gz;name=${VIMDIR}-extra \
ftp://ftp.${PN}.org/pub/${PN}/extra/${PN}-${PV_MAJOR}-lang.tar.gz;name=${VIMDIR}-lang \
file://vimrc \
"
S = "${WORKDIR}/${VIMDIR}/src"
@@ -57,10 +56,12 @@ EXTRA_OECONF = " \
STRIP=/bin/true \
"
# Work around rpm picking up csh as a dep
do_install_append() {
# Work around rpm picking up csh as a dep
chmod -x ${D}${datadir}/${PN}/${VIMDIR}/tools/vim132
install -m 0644 ${WORKDIR}/vimrc ${D}/${datadir}/${PN}
# Install example vimrc from runtime files
install -m 0644 ../runtime/vimrc_example.vim ${D}/${datadir}/${PN}/vimrc
}
PACKAGES =+ "${PN}-common ${PN}-syntax ${PN}-help ${PN}-tutor ${PN}-vimrc ${PN}-data"