Browse Source

* fixed umlspeed to install vim highlight - close #373

git-svn-id: svn://svn.opensde.net/opensde/package/trunk@21778 10447126-35f2-4685-b0cf-6dd780d3921f
early
Alejandro Mery 18 years ago
parent
commit
55219c4163
  1. 19
      develop/umlspeed/umlspeed.conf

19
develop/umlspeed/umlspeed.conf

@ -20,3 +20,22 @@ umlspeed_doc() {
echo "Installing documentation..."
cp -vfa doc/* $root$docdir/
}
if pkginstalled vim; then
pkgprefix -t vim
hook_add postmake 5 'umlspeed_vim'
umlspeed_vim() {
local vimver=$( pkgprefix ver vim | tr -d '.' )
local vimdir=$root$( pkgprefix datadir vim )/vim/vim$vimver
ftdir=$root$( pkgprefix datadir vim )/vim/vim$vimver/ftdetect
mkdir -p "$vimdir/ftdetect/"
cat <<-EOT > "$vimdir/ftdetect/umlspeed.vim"
au BufNewFile,BufRead *.ums setf umlspeed
EOT
cp -avf syntax/umlspeed.vim $vimdir/syntax/
}
fi

Loading…
Cancel
Save