diff options
Diffstat (limited to 'install')
-rw-r--r-- | install | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/install b/install new file mode 100644 index 000000000000..5cc08f99c7a9 --- /dev/null +++ b/install @@ -0,0 +1,27 @@ +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() { + vimdocinstall + echo -e " Sample key-mapping in your vimrc:\n" + echo -e "\tnmap <leader>a <Esc>:Ack!>" + echo + +} + +post_upgrade() { + post_install +} + +post_remove() { + vimdocinstall +} + +op=$1 +shift + +$op $* |