tipu
tipu

Reputation: 9604

Syntax highlighting changes after save in Vim

I have installed Markdown syntax plugin.

When I'm on a new buffer not associated with any file, and paste the source portion of the site http://rosylilly.github.com/markdown.html into it, the colors appear nicely as it should for the markdown syntax.

However, after saving the file, the colors change. Any idea how I can fix this?

Upvotes: 0

Views: 501

Answers (1)

sehe
sehe

Reputation: 392954

Can you, before and after saving do

:verbose set filetype
:verbose set

Tip: use :redir > file.txt to capture the output so you won't have to copy/paste which can be difficult with gvim - for command output

You could also look at the autocommands when saving:

:verbose au BufWrite
:verbose au BufWritePre
:verbose au BufWritePost

This would serve to discover what plugin/script is causing the highlighting to go haywire.

Upvotes: 1

Related Questions