Saturday, December 3, 2011

Re: How to fold by expression using a function?

On Dec 3, 12:39 am, wolfv <wolfvo...@gmail.com> wrote:
> Ben,
>
> Problem solved.  Folding worked after I added this source statement to
> the end of my _vimrc file:    so C:\Program Files (x86)\Vim\vimfiles
> \ftplugin\markdown.vim
> Thank you for your help.
>

Sadly, that will only work until you edit a file which is not a
markdown file. And, you should not need to do this.

Something is causing Vim's filetype detection not to detect your
markdown file. What is the filename you are editing? The following is
How my version of Vim detects markdown:

au BufNewFile,BufRead *.markdown,*.mdown,*.mkd,*.mkdn,README.md setf
markdown

This should be fairly self-explanatory I think. Are you editing a
markdown file with a different extension? Or maybe you're trying to
edit an empty buffer without an associated file?

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