aur-packages/vim-youcompleteme-git/install

29 lines
1.2 KiB
Plaintext
Raw Normal View History

2018-01-01 02:20:54 -08:00
update_vim_help() {
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() {
update_vim_help
echo "==> ------------------------------------------------------------------------------------------------------------------------------"
echo
echo "==> add: \"let g:ycm_global_ycm_extra_conf = '/usr/share/vim/vimfiles/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'\" to your vimrc"
echo
echo "==> ------------------------------------------------------------------------------------------------------------------------------"
}
post_upgrade() {
update_vim_help "$1"
}
post_remove() {
update_vim_help
echo "==> ---------------------------------------------------------------------------------------------------------------------------------"
echo
echo "==> remove: \"let g:ycm_global_ycm_extra_conf = '/usr/share/vim/vimfiles/third_party/ycmd/cpp/ycm/.ycm_extra_conf.py'\" in your vimrc"
echo
echo "==> ---------------------------------------------------------------------------------------------------------------------------------"
}