1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
The vim settings have been contributed by Peter Poeml <poeml@suse.de>.
To use them you need to do one of the following:
Possibility 1
=============
For newer versions of vim it might be enough to:
1) Copy the tjp.vim file into the vim syntax directory (e.g.
/usr/share/vim/vim70/syntax)
2) Add the following lines to your local vimrc file (e.g. ~/.vimrc or
~/.vimrc.local or something similar)
.vimrc
augroup taskjuggler
" taskjuggler files
au! BufNewFile,BufRead *.tj{p,i} set ft=tjp
augroup END
Possibility 2
=============
For a more generic approach try to add the following lines to the
respective files:
.vimrc:
let myfiletypefile = "~/.vim/filetypes.vim"
let myscriptsfile = "~/.vim/scripts.vim"
let mysyntaxfile = "~/.vim/syntax.vim"
syntax on
syn sync maxlines=500
syn sync minlines=300
~/.vim/filetypes.vim:
augroup filetype
"
" [...]
"
" taskjuggler files
au! BufNewFile,BufRead *.tj{p,i} set ft=tjp
augroup END
~/.vim/syntax.vim:
au! Syntax tjp so ~/.vim/tjp.vim
|