On May 25, 2012, at 9:41 PM, Chris Jones wrote: > There are things I find a little unclear regarding autocommands but > assuming the file extension is something like ‘*.mkdwn’ shouldn't it be > possible to achieve this automatically when creating the file by placing > something like this in a file named ~/.vim/ftdetect/markdown.vim: > > | autocmd BufNewFile,BufRead *.mkdwn set filetype=markdown > > Wouldn't this cause ‘:w myfile.mkdwn’ to automatically enable the > markdown foldexpr and create the folds in one pass?
Thanks, Chris. I have a version of that command in my .vimrc to get "mmd" recognized as a markdown filetype. [I actually use MultiMarkdown.] And that's the extent I've been using in the incidents I've been reporting on here. So the answer to your question would seem to be that it doesn't. Regards, ------------------------------------------------------------------------------------------ Eric Weir "With an ounce of willingness, everything can change." - Kim -- 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