Files
llvm-project/llvm/utils/vim/ftplugin/tablegen.vim
Henry Baba-Weiss db9d0245d1 [vim] Set commentstring for TableGen files (#182654)
Neovim supports [commenting and uncommenting
lines](https://neovim.io/doc/user/various.html#commenting) based on what
the 'commentstring' option is set to, but this isn't set for TableGen
files. The filetype plugin for C++ built into both vim and neovim sets
'commentstring' to `// %s`, so use that in the TableGen filetype plugin
as well.
2026-02-24 12:33:30 +00:00

14 lines
277 B
VimL

" Vim filetype plugin file
" Language: LLVM TableGen
" Maintainer: The LLVM team, http://llvm.org/
if exists("b:did_ftplugin")
finish
endif
let b:did_ftplugin = 1
setlocal matchpairs+=<:>
setlocal softtabstop=2 shiftwidth=2
setlocal expandtab
setlocal commentstring=//\ %s