diff options
author | PitBall | 2016-01-25 13:43:05 +0100 |
---|---|---|
committer | PitBall | 2016-01-25 13:43:05 +0100 |
commit | 9e086f2c55b032dfd148e85fa1193967826de18b (patch) | |
tree | f6c1ef0fcfd3137b7e8a4b1d35fd154fe11a0a8e /install | |
download | aur-vim-ack.tar.gz |
Initial import
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 $* |