Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vim should not highlight strings between quotes in Markdown files #18

Closed
srawlins opened this issue Mar 12, 2012 · 3 comments
Closed

Vim should not highlight strings between quotes in Markdown files #18

srawlins opened this issue Mar 12, 2012 · 3 comments

Comments

@srawlins
Copy link

In vim/syntax/mkd.vim, I suspect, strings between quotes, in any context, are being highlighted as if they mean something. This doesn't look so bad in:

He said to her, "Frankly, my dear, I don't give a damn."

But it definitely looks bad in:

Let's get started with a simple example. In this step, we'll look at RSpec.

Single or double quotes in a paragraph do not translate to any HTML tags, in a markdown file.

Also, I can't find what line(s) in mkd.vim that are causing this highlighting... but I suspected one of the HTMLHiLink lines...

@croaky
Copy link
Contributor

croaky commented Mar 12, 2012

Hmm, that's always bothered me, too. I sort of grew to live with it. Thanks for the nudge to look into it.

@srawlins
Copy link
Author

My bad! I realized that in a file like foo.md, Vim wasn't using your markdown highlighting at all! I looked at my filetype.vim:

sam@mint6510:~/code$ grep "*.md" /usr/share/vim/vim73/filetype.vim 
au BufNewFile,BufRead *.markdown,*.mdown,*.mkd,*.mkdn,README.md  setf markdown
au BufNewFile,BufRead *.m2,*.DEF,*.MOD,*.md,*.mi setf modula2

It was highlighting it like modula2! So I copied filetype.vim into my dotfiles, and changed *.md to markdown instead of modula2.

@croaky
Copy link
Contributor

croaky commented May 7, 2012

Thanks, fixed!

5a11d6f

@croaky croaky closed this as completed May 7, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants