vim

Fork of vim, an acceptable text editor
git clone git://git.laack.co/vim.git
Log | Files | Refs | README | LICENSE

cpp.vim (675B)


      1 " Vim filetype plugin file
      2 " Language:	C++
      3 " Maintainer:	The Vim Project <https://github.com/vim/vim>
      4 " Last Change:	2024 Jun 06
      5 " Former Maintainer:	Bram Moolenaar <Bram@vim.org>
      6 
      7 " Only do this when not done yet for this buffer
      8 if exists("b:did_ftplugin")
      9   finish
     10 endif
     11 
     12 " Behaves mostly just like C
     13 runtime! ftplugin/c.vim ftplugin/c_*.vim ftplugin/c/*.vim
     14 
     15 " Change 'commentstring' to "C++ style"/"mono-line" comments
     16 setlocal commentstring=//\ %s
     17 let b:undo_ftplugin ..= ' | setl commentstring<'
     18 
     19 " C++ uses templates with <things>
     20 " Disabled, because it gives an error for typing an unmatched ">".
     21 " set matchpairs+=<:>
     22 " let b:undo_ftplugin ..= ' | setl matchpairs<'