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
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
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
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
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
* 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
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
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
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
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
10 matches
Mail list logo