Nice, so even among Modula-2 programmers this should be a pretty uncontroversial change. Looks like a simple matter of changing "README.md" to "*.md". Can we get that into the next vim release?
David On Fri, Oct 3, 2014 at 9:00 AM, LCD 47 <[email protected]> wrote: > On 3 October 2014, Bram Moolenaar <[email protected]> wrote: > > > > David Barnett wrote: > > > > > filetype.vim currently assigns filetype=modula2 to any *.md buffer > > > unless it's called README.md. There may be programmers out there > > > who use modula2, but I think it's pretty uncontroversial to say > > > the vast majority of *.md files edited in vim are markdown, not > > > modula2. Could we change the default? > > > > > > If it's possible to create a content-based detection rule for > > > modula2, that would be fine, as long as it's precise and empty files > > > are configured as markdown. Of course, any modula2 programmers > > > annoyed by the change could create their own ftdetect rules to > > > override the settings, same as markdown users have had to do. > > > > I recommend using .mkd for markdown files. There appears to be a wide > > variety of file name extensions for Markdown. Using .mkd is the most > > specific of the shorter ones, therefore it's the best choice. > > Sure, but that isn't useful when opening files created by other > people. :) GitHub made popular the use of *.md for Markdown, and I don't > think that particular trend will reverse any time soon. > > > Modula2 isn't used much these days, I wonder if someone knows if it > > can be recognized by the first few lines. > > Modula-2 is somewhat similar to Pascal, thus the answer is probably > no. IIRC the most used extensions for Modula-2 were *.mod and *.m2 > anyway. > > /lcd > > -- > -- > 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 a topic in the > Google Groups "vim_use" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/vim_use/njgT_zwxBjU/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
