vim-markdown icon indicating copy to clipboard operation
vim-markdown copied to clipboard

Fenced code block is not drawn correctly if filetype is set after a file is read

Open hiecaq opened this issue 5 years ago • 1 comments

Setup to produce (with a vim / neovim that only has vim-markdown installed) and NORC:

  1. save the following code as a file named test:
test

```c
int main() {
    int x;
    return x;
}
```

test
  1. open the file with vim test.

  2. :set ft=markdown. You'll see that the fenced block is not hightlighted with C's syntax immediately. Wait for a while / do something else randomly might fix it, but sometimes it never got redrawn with C's highlight.

hiecaq avatar Mar 29 '19 07:03 hiecaq

This problem still persists for me. Are there any updates on this or does someone know of a workaround?

joemrt avatar Jan 02 '22 13:01 joemrt