comparison runtime/ftplugin/c.vim @ 502:52e76e2b5b65 v7.0140

updated for version 7.0140
author vimboss
date Thu, 01 Sep 2005 20:46:49 +0000
parents 7e819e81117e
children 82b5078be2dd
comparison
equal deleted inserted replaced
501:ce2181d14aa0 502:52e76e2b5b65
1 " Vim filetype plugin file 1 " Vim filetype plugin file
2 " Language: C 2 " Language: C
3 " Maintainer: Bram Moolenaar <Bram@vim.org> 3 " Maintainer: Bram Moolenaar <Bram@vim.org>
4 " Last Change: 2005 Jun 22 4 " Last Change: 2005 Sep 01
5 5
6 " Only do this when not done yet for this buffer 6 " Only do this when not done yet for this buffer
7 if exists("b:did_ftplugin") 7 if exists("b:did_ftplugin")
8 finish 8 finish
9 endif 9 endif
13 13
14 " Using line continuation here. 14 " Using line continuation here.
15 let s:cpo_save = &cpo 15 let s:cpo_save = &cpo
16 set cpo-=C 16 set cpo-=C
17 17
18 let b:undo_ftplugin = "setl fo< com< | if has('vms') | setl isk< | endif" 18 let b:undo_ftplugin = "setl fo< com< ofu< | if has('vms') | setl isk< | endif"
19 19
20 " Set 'formatoptions' to break comment lines but not other lines, 20 " Set 'formatoptions' to break comment lines but not other lines,
21 " and insert the comment leader when hitting <CR> or using "o". 21 " and insert the comment leader when hitting <CR> or using "o".
22 setlocal fo-=t fo+=croql 22 setlocal fo-=t fo+=croql
23
24 " Set completion with CTRL-X CTRL-O to autoloaded function.
25 if exists('&ofu')
26 setlocal ofu=ccomplete#Complete
27 endif
23 28
24 " Set 'comments' to format dashed lists in comments. 29 " Set 'comments' to format dashed lists in comments.
25 setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:// 30 setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
26 31
27 " In VMS C keywords contain '$' characters. 32 " In VMS C keywords contain '$' characters.