2014-07-10 21:05:51 -07:00
|
|
|
" Vim filetype plugin file
|
|
|
|
" Language: C++
|
2023-08-13 05:25:10 -07:00
|
|
|
" Maintainer: The Vim Project <https://github.com/vim/vim>
|
|
|
|
" Last Change: 2023 Aug 10
|
|
|
|
" Former Maintainer: Bram Moolenaar <Bram@vim.org>
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
" Only do this when not done yet for this buffer
|
|
|
|
if exists("b:did_ftplugin")
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
2021-04-29 05:54:38 -07:00
|
|
|
" Behaves mostly just like C
|
2014-07-10 21:05:51 -07:00
|
|
|
runtime! ftplugin/c.vim ftplugin/c_*.vim ftplugin/c/*.vim
|
2022-03-24 07:05:13 -07:00
|
|
|
runtime! ftplugin/c.lua ftplugin/c_*.lua ftplugin/c/*.lua
|
2021-04-29 05:54:38 -07:00
|
|
|
|
|
|
|
" C++ uses templates with <things>
|
|
|
|
" Disabled, because it gives an error for typing an unmatched ">".
|
|
|
|
" set matchpairs+=<:>
|
|
|
|
" let b:undo_ftplugin ..= ' | setl matchpairs<'
|