[all-commits] [llvm/llvm-project] caca8d: [vim] Fix command already exists on opening multip...

Joe Nash via All-commits all-commits at lists.llvm.org
Wed Feb 28 13:37:51 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: caca8d33a9d5e6fe75980c4ae1cb13de2e460590
      https://github.com/llvm/llvm-project/commit/caca8d33a9d5e6fe75980c4ae1cb13de2e460590
  Author: Joe Nash <Sisyph at users.noreply.github.com>
  Date:   2024-02-28 (Wed, 28 Feb 2024)

  Changed paths:
    M llvm/utils/vim/syntax/mir.vim

  Log Message:
  -----------
  [vim] Fix command already exists on opening multiple mir buffers (#82410)

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.

To reproduce:
Open an .mir file, for example
llvm/test/Codegen/X86/expand-post-ra-pseudo.mir
Open another mir file from within nvim, for example peephole.mir
```
Error detected while processing function 335[30]..<SNR>43_callback[25]..function 335[30]..<SNR>43_callback:                                                                                                                      
line   23:                                                                                                                                                                                                                       
Vim(command):E174: Command already exists: add ! to replace it: HiLink hi def link <args>   
```



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list