Marco wrote:
On 2011-03-18 Rostyslaw Lewyckyj<[email protected]> wrote:Simon Ruderich wrote: As you say! Perhaps the logic that classifies a file as 'gnuplot' in 'filetype.vim' maintained by Bram Moolenaar, last change Jul 30 2010 needs to be updated so that it more correctly classifies gnuplot files. The line(s) in filetype.vim which check and set ft=gnuplot are: 751 " Gnuplot scripts 752 au BufNewFile,BufRead *.gpi setf gnuplot I'm sure that Bram will be glad to receive suggestions.It was just an example with gnuplot to describe my problem. But the logic for gnuplot files can be improved, I agree. I never wrote file type detection files. But my suggestion to easily distinguish between »conf« and »gnuplot« would be: 1) Presence of a plot command 2) Often a term(inal) declaration in the first lines Marco
O.k. That's one set of suggestions on how the logic in filetype.vim might be improved. Perhaps if Bram received more suggestions, and not just for the logic to identify gnuplot files/scripts, we might see a new , improved, version of filetype.vim. -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
