Re: File type not remembered when switching buffers

2011-03-20 Thread Ben Schmidt
On 18/03/11 11:12 PM, Marco wrote: When often edit files where the filetype detection fails. The files are detected as »conf« instead of »gnuplot« for instance. I can set ft=gnuplot, but when I switch to another buffer and switch back, it falls back to »conf«, including the wrong syntax

Re: File type not remembered when switching buffers

2011-03-20 Thread Marco
On 2011-03-20 Ben Schmidt mail_ben_schm...@yahoo.com.au wrote: On 18/03/11 11:12 PM, Marco wrote: When often edit files where the filetype detection fails. The files are detected as »conf« instead of »gnuplot« for instance. I can set ft=gnuplot, but when I switch to another buffer and

Re: File type not remembered when switching buffers

2011-03-19 Thread John Little
Marco said: How can I make vim remember my manually input file type? If you haven't already, read :help new-filetype Regards, John -- 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

File type not remembered when switching buffers

2011-03-18 Thread Marco
When often edit files where the filetype detection fails. The files are detected as »conf« instead of »gnuplot« for instance. I can set ft=gnuplot, but when I switch to another buffer and switch back, it falls back to »conf«, including the wrong syntax highlighting. How can I make vim remember my

Re: File type not remembered when switching buffers

2011-03-18 Thread Simon Ruderich
On Fri, Mar 18, 2011 at 01:12:44PM +0100, Marco wrote: When often edit files where the filetype detection fails. The files are detected as »conf« instead of »gnuplot« for instance. I can set ft=gnuplot, but when I switch to another buffer and switch back, it falls back to »conf«, including the

Re: File type not remembered when switching buffers

2011-03-18 Thread Jean-Rene David
* Marco [2011.03.18 08:20]: How can I make vim remember my manually input file type? One possibility is to put a modeline near the beginning or the end of your file. For gnuplot it might look something like (untested): # vim: set ft=gnuplot :h modeline :h 'modelines' -- JR -- You received

Re: File type not remembered when switching buffers

2011-03-18 Thread Marco
On 2011-03-18 Jean-Rene David jrda...@magma.ca wrote: * Marco [2011.03.18 08:20]: How can I make vim remember my manually input file type? One possibility is to put a modeline near the beginning or the end of your file. I know that I can use modeline, but I don't like the idea to pollute

Re: File type not remembered when switching buffers

2011-03-18 Thread Rostyslaw Lewyckyj
Simon Ruderich wrote: On Fri, Mar 18, 2011 at 01:12:44PM +0100, Marco wrote: When often edit files where the filetype detection fails. The files are detected as »conf« instead of »gnuplot« for instance. I can set ft=gnuplot, but when I switch to another buffer and switch back, it falls back

Re: File type not remembered when switching buffers

2011-03-18 Thread Marco
On 2011-03-18 Rostyslaw Lewyckyj urj...@bellsouth.net 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

Re: File type not remembered when switching buffers

2011-03-18 Thread Rostyslaw Lewyckyj
Marco wrote: On 2011-03-18 Rostyslaw Lewyckyjurj...@bellsouth.net 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