[Vimoutliner] The easy way to add new VO file extensions
Steve Litt
slitt at troubleshooters.com
Tue Dec 5 17:29:45 EST 2006
Hi everyone,
Look what I have in my ~/.vim/ftdetect directory -- a file called
my_vo_extensions.vim. Here are the contents:
augroup filetypedetect
au! BufRead,BufNewFile *.emdl setfiletype vo_base
au! BufRead,BufNewFile *.ebdl setfiletype vo_base
au! BufRead,BufNewFile *.pho setfiletype vo_base
au! BufRead,BufNewFile *.rl setfiletype vo_base
augroup END
So on my computer, Easy Menu Definition Language (.emdl) files, EBDL flies
(.ebdl), Phone number lists (.pho) and Rapid Learning files (.rl) all come up
as outlines in Vim. Note that there's nothing special about the filename
my_vo_extensions.vim -- as long as the file's in the ~/.vim/ftdetect
directory, ends with .vim, and contains the above contents, it will work.
In order to have your file extensions survives VO upgrades, you can make it
symbolic link to a file in a backed up data directory.
SteveT
More information about the VimOutliner
mailing list