>
> On Jun 21, 2011, at 8:53 PM, Tim Gray wrote:
>
>> On Jun 21, 2011 at 08:44 PM -0400, Eric Weir wrote:
>>> But that gives rise to another question: Could I associate other
>>> extents with the markdown filetype, e.g., mmd?
>>
>> I mentioned how to do this on the spell checking thread we were
>> corresponding on.
>>
>> au BufRead,BufNewFile *.ext :set ft=markdown
>>
>> Replace 'ext' with the extension that you want to add.
>
> I tried putting this in ~/.vim/after/ftplugin/markdown.vim and it didn't
> work. I moved it to my .vimrc and it worked. I don't know if that's the
> best place for it, though.
You don't want that in a filetype plugin. Because after all, vim
doesn't know yet, that it should handle the *.ext extension as markdown.
So why do you expect it to read a markdown specific script?
The correct solution is described in the help at:
:h new-filetype
regards,
Christian
--
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
No comments:
Post a Comment