Skip to main content
Bumped by Community user
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

If the file is named *.markdown then the highlighting works correctly. If it is named *.md then it doesn't work.

Even if I type :set syntax=markdown, the highlighting doesn't turn on.

With other filetypes e.g. awk, I can turn on the highlighting by running :set syntax=awk. But this doesn't work for markdown.

Ultimately I want to make Vim recognize .md files as markdownmake Vim recognize .md files as markdown, but when the autocommand didn't work I tried just setting the syntax directly and found that didn't work either.

What could be causing this?

I am using MobaXterm.

If the file is named *.markdown then the highlighting works correctly. If it is named *.md then it doesn't work.

Even if I type :set syntax=markdown, the highlighting doesn't turn on.

With other filetypes e.g. awk, I can turn on the highlighting by running :set syntax=awk. But this doesn't work for markdown.

Ultimately I want to make Vim recognize .md files as markdown, but when the autocommand didn't work I tried just setting the syntax directly and found that didn't work either.

What could be causing this?

I am using MobaXterm.

If the file is named *.markdown then the highlighting works correctly. If it is named *.md then it doesn't work.

Even if I type :set syntax=markdown, the highlighting doesn't turn on.

With other filetypes e.g. awk, I can turn on the highlighting by running :set syntax=awk. But this doesn't work for markdown.

Ultimately I want to make Vim recognize .md files as markdown, but when the autocommand didn't work I tried just setting the syntax directly and found that didn't work either.

What could be causing this?

I am using MobaXterm.

added 58 characters in body; edited title
Source Link
Martin Tournoij
  • 63.3k
  • 26
  • 199
  • 274

MobaXterm syntax Syntax highlighting for markdown can't be set manually

If the file is named ".markdown" then the highlighting works correctly. If it is named "*.markdown then the highlighting works correctly.md" If it is named *.md then it doesn't work.

Even if I type :set syntax=markdown, the highlighting doesn't turn on.

With other filetypes e.g. awk, I can turn on the highlighting by running :set syntax=awk. But this doesn't work for markdown.

Ultimately I want to make Vim recognize .md files as markdown, but when the autocommand didn't work I tried just setting the syntax directly and found that didn't work either.

What could be causing this?

I am using MobaXterm.

MobaXterm syntax highlighting for markdown can't be set manually

If the file is named ".markdown" then the highlighting works correctly. If it is named ".md" then it doesn't work.

Even if I type :set syntax=markdown, the highlighting doesn't turn on.

With other filetypes e.g. awk, I can turn on the highlighting by running :set syntax=awk. But this doesn't work for markdown.

Ultimately I want to make Vim recognize .md files as markdown, but when the autocommand didn't work I tried just setting the syntax directly and found that didn't work either.

What could be causing this?

Syntax highlighting for markdown can't be set manually

If the file is named *.markdown then the highlighting works correctly. If it is named *.md then it doesn't work.

Even if I type :set syntax=markdown, the highlighting doesn't turn on.

With other filetypes e.g. awk, I can turn on the highlighting by running :set syntax=awk. But this doesn't work for markdown.

Ultimately I want to make Vim recognize .md files as markdown, but when the autocommand didn't work I tried just setting the syntax directly and found that didn't work either.

What could be causing this?

I am using MobaXterm.

Source Link
Wildcard
  • 4.4k
  • 28
  • 51

MobaXterm syntax highlighting for markdown can't be set manually

If the file is named ".markdown" then the highlighting works correctly. If it is named ".md" then it doesn't work.

Even if I type :set syntax=markdown, the highlighting doesn't turn on.

With other filetypes e.g. awk, I can turn on the highlighting by running :set syntax=awk. But this doesn't work for markdown.

Ultimately I want to make Vim recognize .md files as markdown, but when the autocommand didn't work I tried just setting the syntax directly and found that didn't work either.

What could be causing this?