mirror of
https://github.com/siemens-mobile-hacks/llvm-c166.git
synced 2026-11-28 11:52:25 +00:00
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.
13 lines
277 B
VimL
13 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
|