Adding a line to vimrc
opensource at till.name
Wed Aug 13 20:57:50 UTC 2008
On Wed August 13 2008, rvinyard at cs.nmsu.edu 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
> 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:
au! BufRead,BufNewFile *.otl setfiletype vo_base
au! BufRead,BufNewFile *.oln setfiletype xoutliner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://lists.fedoraproject.org/pipermail/devel/attachments/20080813/0c132df1/attachment.bin
More information about the devel