Monday, October 10, 2022

Re: Prolog filetype problem

On Mon, 1 Oct 2012 at 07:32, Ben Fritz <fritzophrenic@gmail.com> wrote:

<snip>

> Otherwise, Vim detects Perl. So for existing files, just get into the habit of starting the file with a header comment and you'll be fine.
>
> I guess new files will always detect as Perl, but there's really not any way I can think of for Vim to detect in a general way what filetype a brand-new empty file should be. You could set up some BufNewFile autocmds based on project directory or something if you like for this.

Setting g:filetype_pl might be helpful here. You could even just
manually set it if you were having a Prolog-only day for example. See
:help filetype-overrule

Regards,
Doug

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CAJ1uvoBZuAKAZ_a8HWhTQvCp02Ka0m9qAJ%2BVmP6B67f9_GjPew%40mail.gmail.com.

No comments:

Post a Comment