7
|
1 " Vim filetype plugin file
|
|
2 " Language: Kimwitu++
|
3237
|
3 " Maintainer: Michael Piefel <entwurf@piefel.de>
|
3445
|
4 " Last Change: 10 March 2012
|
7
|
5
|
|
6 " Behaves almost like C++
|
|
7 runtime! ftplugin/cpp.vim ftplugin/cpp_*.vim ftplugin/cpp/*.vim
|
|
8
|
3237
|
9 let s:cpo_save = &cpo
|
|
10 set cpo&vim
|
7
|
11
|
|
12 " Limit the browser to related files
|
|
13 if has("gui_win32") && !exists("b:browsefilter")
|
|
14 let b:browsefilter = "Kimwitu/Kimwitu++ Files (*.k)\t*.k\n" .
|
|
15 \ "Lex/Flex Files (*.l)\t*.l\n" .
|
|
16 \ "Yacc/Bison Files (*.y)\t*.y\n" .
|
|
17 \ "All Files (*.*)\t*.*\n"
|
|
18 endif
|
|
19
|
|
20 " Set the errorformat for the Kimwitu++ compiler
|
|
21 set efm+=kc%.%#:\ error\ at\ %f:%l:\ %m
|
3237
|
22
|
3445
|
23 if exists("b:undo_ftplugin")
|
|
24 let b:undo_ftplugin = b:undo_ftplugin . " | setlocal efm<"
|
|
25 \ . "| unlet! b:browsefiler"
|
|
26 else
|
|
27 let b:undo_ftplugin = "setlocal efm<"
|
|
28 \ . "| unlet! b:browsefiler"
|
|
29 endif
|
|
30
|
3237
|
31 let &cpo = s:cpo_save
|
|
32 unlet s:cpo_save
|