annotate runtime/ftplugin/kwt.vim @ 48:67300faee616 v7-3-618

v7-3-618
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 01 Aug 2012 18:08:28 +0900
parents 76efa0be13f1
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
1 " Vim filetype plugin file
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
2 " Language: Kimwitu++
48
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
3 " Maintainer: Michael Piefel <entwurf@piefel.de>
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
4 " Last Change: 10 March 2012
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
5
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
6 " Behaves almost like C++
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
7 runtime! ftplugin/cpp.vim ftplugin/cpp_*.vim ftplugin/cpp/*.vim
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
8
48
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
9 let s:cpo_save = &cpo
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
10 set cpo&vim
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
11
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
12 " Limit the browser to related files
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
13 if has("gui_win32") && !exists("b:browsefilter")
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
14 let b:browsefilter = "Kimwitu/Kimwitu++ Files (*.k)\t*.k\n" .
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
15 \ "Lex/Flex Files (*.l)\t*.l\n" .
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
16 \ "Yacc/Bison Files (*.y)\t*.y\n" .
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
17 \ "All Files (*.*)\t*.*\n"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
18 endif
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
19
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
20 " Set the errorformat for the Kimwitu++ compiler
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
21 set efm+=kc%.%#:\ error\ at\ %f:%l:\ %m
48
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
22
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
23 if exists("b:undo_ftplugin")
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
24 let b:undo_ftplugin = b:undo_ftplugin . " | setlocal efm<"
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
25 \ . "| unlet! b:browsefiler"
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
26 else
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
27 let b:undo_ftplugin = "setlocal efm<"
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
28 \ . "| unlet! b:browsefiler"
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
29 endif
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
30
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
31 let &cpo = s:cpo_save
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
32 unlet s:cpo_save