Vimrc: how to reuse code and definitions for differnt file types?
- by sixtyfootersdude
I have defined my own file types using vim. For example I have:
.classNotes
.reportJotNotes
.homework
These file types are defined in .vim files:
~/.vim/syntax/homework.vim
~/.vim/syntax/reportJotNotes.vim
~/.vim/syntax/homework.vim
Many of these things have several of the same code in them. Ie they all have this for titles:
syn region…