On Mon, Jun 08, 2020 at 01:23:24PM -0400, Chris Jones wrote:
>I ended up looking at an ~8-year-old mediawiki.vim (!) file in
>my ~/.vim/ftdetect.
>
>The lines that cause the problem:
>
>setlocal foldexpr=getline(v:lnum)=~'^\\(=\\+\\)[^=]\\+\\1\\(\\s*<!--.*-->\\)\\=\\s*$'?\">\".(len(matchstr(getline(v:lnum),'^=\\+'))-1):\"=\"
>setlocal fdm=expr
…
>A bit odd that this should take effect on markdown *.md files or *.txt
>files that have nothing to do with *.mw, *.wiki, or *.mediawiki...
You have this in ftdetect, which runs regardless of which filetype you open. ftdetect is for specification of filetype. Settings per filetype should go into after/ftplugin, and will only be executed when that filetype is detected.
--
--
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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20200610085237.GA16835%40rainslide.net.
Wednesday, June 10, 2020
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment