Skip to content

Commit

Permalink
using ftdetect instead of filetype.vim seems a nicer idea :) @indorilftw
Browse files Browse the repository at this point in the history
  • Loading branch information
mastergreg committed Oct 22, 2012
1 parent 3f048bd commit d061354
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 30 deletions.
3 changes: 1 addition & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ The files needed for Pazcal syntax highlighting in vim
### Install instructions

1. Download and extract archive file from [here](https://github.com/mastergreg/pzc-vim/tarball/master)
2. Move the file "filetype.vim" into your $HOME/.vim/ folder (~/.vim/)
3. Move the contents of each of the folders (ftplugin, indent, syntax) into their respective folders (create them if they do not exist) in $HOME/.vim/
2. Move the contents of each of the folders (ftdetect, ftplugin, indent, syntax) into their respective folders (create them if they do not exist) in $HOME/.vim/


#### Install via the shell
Expand Down
7 changes: 0 additions & 7 deletions filetype.vim

This file was deleted.

26 changes: 5 additions & 21 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,29 +1,13 @@
#!/bin/bash

# build the paths if they do not exist
mkdir -p ~/.vim/ftdetect
mkdir -p ~/.vim/ftplugin
mkdir -p ~/.vim/indent
mkdir -p ~/.vim/syntax

if [ -f ~/.vim/filetype.vim ]
then
# TODO: mabe this should be vimdiff
diff filetype.vim ~/.vim/filetype.vim > /dev/null
if [ "$?" != "0" ];
then
grep pzc ~/.vim/filetype.vim > /dev/null
if [ "$?" == "0" ];
then
vimdiff filetype.vim ~/.vim/filetype.vim
else
cat filetype.vim >> ~/.vim/filetype.vim
fi
fi
else
cp filetype.vim ~/.vim
fi

cp ftplugin/pzc.vim ~/.vim/ftplugin
cp indent/pzc.vim ~/.vim/indent
cp syntax/pzc.vim ~/.vim/syntax
cp -f ftdetect/pzc.vim ~/.vim/ftdetect
cp -f ftplugin/pzc.vim ~/.vim/ftplugin
cp -f indent/pzc.vim ~/.vim/indent
cp -f syntax/pzc.vim ~/.vim/syntax
echo "Install complete :)"

0 comments on commit d061354

Please sign in to comment.