Saturday, May 26, 2012

Re: Folding on markdown headers

On May 25, 2012, at 7:03 PM, sc wrote:

> when you start with an empty window, you have done nothing to
> tell vim what type of file you are going to create -- when you
> add text it still doesn't know -- if you write the file with a
> markdown extent, it COULD know if you would ask it to check
> (writing doesn't trigger filetype detection) -- so to ask it you
> might try something like
>
> :syntax enable
>
> perhaps that will help?

Thanks, sc. Definitely does. I assumed the behavior was anomalous. Someone, I think Chris, suggested earlier that a simple ":e" would do the trick, and it seems to do so. [Is that a shortened version of the command you suggest?]

------------------------------------------------------------------------------------------
Eric Weir
Decatur, GA USA
eeweir@bellsouth.net

"The most important thing is the tee-shirt."

Samara Alnafdage



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