Saturday, May 26, 2012

Re: Folding on markdown headers

On 2012-05-26, Gary Johnson wrote:
> On 2012-05-25, 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?
>
> No. ...

Never mind. It should.

Regards,
Gary

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