xref: /vim-8.2.3635/runtime/ftplugin/kwt.vim (revision 61d35bd0)
1" Vim filetype plugin file
2" Language:	Kimwitu++
3" Maintainer:	Michael Piefel <[email protected]>
4" Last Change:	10 March 2012
5
6" Behaves almost like C++
7runtime! ftplugin/cpp.vim ftplugin/cpp_*.vim ftplugin/cpp/*.vim
8
9let s:cpo_save = &cpo
10set cpo&vim
11
12" Limit the browser to related files
13if 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"
18endif
19
20" Set the errorformat for the Kimwitu++ compiler
21set efm+=kc%.%#:\ error\ at\ %f:%l:\ %m
22
23if exists("b:undo_ftplugin")
24    let b:undo_ftplugin = b:undo_ftplugin . " | setlocal efm<"
25	\ . "| unlet! b:browsefiler"
26else
27    let b:undo_ftplugin = "setlocal efm<"
28	\ . "| unlet! b:browsefiler"
29endif
30
31let &cpo = s:cpo_save
32unlet s:cpo_save
33