Thanks for the pointer to vim-vimoutliner since I found a better place for the syntax file than /usr/share/vim/vim71 > On Wed August 13 2008, rvinyard@xxxxxxxxxxx wrote: >> I'm packaging Google's protocol buffers library and noticed that they >> included a proto.vim to enable vim syntax highlighting, so I'm adding a >> protocol-buffer-vim subpackage. >> >> But, to do this I need to: >> 1. Drop proto.vim into /usr/share/vim/vim71/syntax/ >> 2. Add 'autocmd BufRead,BufNewFile *.proto setfiletype proto/' to >> /etc/vimrc > >> I couldn't find anything on how I should go about modifying vimrc other >> than this approach. Can anyone suggest a better approach? > > You can drop a file with the line from step two in a file in this > directory: > /usr/share/vim/vimfiles/ftdetect/ > > From vim-vimoutliner: > augroup filetypedetect > au! BufRead,BufNewFile *.otl setfiletype vo_base > au! BufRead,BufNewFile *.oln setfiletype xoutliner > augroup END > > Regards, > Till > -- > fedora-devel-list mailing list > fedora-devel-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/fedora-devel-list -- fedora-devel-list mailing list fedora-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-devel-list