summarylogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
Diffstat (limited to 'install')
-rw-r--r--install29
1 files changed, 23 insertions, 6 deletions
diff --git a/install b/install
index 485e4d8870f1..b2669cf84384 100644
--- a/install
+++ b/install
@@ -1,12 +1,29 @@
+vimdocinstall() {
+ echo -n " Updating Vim help tags... "
+ /usr/bin/vim --noplugin -u NONE -U NONE \
+ --cmd ":helptags /usr/share/vim/vimfiles/doc" --cmd ":q" > /dev/null 2>&1
+ echo "done."
+}
+
post_install() {
-echo -e " Add these key-mapping in your vimrc:\n"
-echo -e "\tnmap <F9> :SCCompile<cr>"
-echo -e "\tnmap <F10> :SCCompileRun<cr>"
-echo
-echo " F9 and F10 can be replaced with other keys."
+ vimdocinstall
+ echo -e " Add these key-mapping in your vimrc:\n"
+ echo -e "\tnmap <F9> :SCCompile<cr>"
+ echo -e "\tnmap <F10> :SCCompileRun<cr>"
+ echo
+ echo " F9 and F10 can be replaced with other keys."
+
}
post_upgrade() {
- post_install
+ post_install
}
+post_remove() {
+ vimdocinstall
+}
+
+op=$1
+shift
+
+$op $*