Skip to content

Commit 91cc037

Browse files
committed
[vim] Fix command already exists on opening multiple mir buffers
When using the vim syntax for mir, an error occurs in nvim when opening multiple .mir buffers. delcommand HiLink in the mir syntax file to avoid the issue.
1 parent 777ac46 commit 91cc037

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/utils/vim/syntax/mir.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ if version >= 508 || !exists("did_c_syn_inits")
4343
endif
4444

4545
HiLink mirSpecialComment SpecialComment
46+
47+
delcommand HiLink
4648
endif
4749

4850
let b:current_syntax = "mir"

0 commit comments

Comments
 (0)