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.
14 lines
277 B
VimL
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
|