2014-07-10 21:05:51 -07:00
|
|
|
" Vim filetype plugin file
|
|
|
|
" Language: Kimwitu++
|
|
|
|
" Maintainer: Michael Piefel <entwurf@piefel.de>
|
|
|
|
" Last Change: 10 March 2012
|
2024-01-15 03:12:32 -07:00
|
|
|
" 2024 Jan 14 by Vim Project (browsefilter)
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
" Behaves almost like C++
|
|
|
|
runtime! ftplugin/cpp.vim ftplugin/cpp_*.vim ftplugin/cpp/*.vim
|
|
|
|
|
|
|
|
let s:cpo_save = &cpo
|
|
|
|
set cpo&vim
|
|
|
|
|
|
|
|
" Limit the browser to related files
|
2024-01-15 03:12:32 -07:00
|
|
|
if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
|
2014-07-10 21:05:51 -07:00
|
|
|
let b:browsefilter = "Kimwitu/Kimwitu++ Files (*.k)\t*.k\n" .
|
|
|
|
\ "Lex/Flex Files (*.l)\t*.l\n" .
|
2024-01-15 03:12:32 -07:00
|
|
|
\ "Yacc/Bison Files (*.y)\t*.y\n"
|
|
|
|
if has("win32")
|
|
|
|
let b:browsefilter ..= "All Files (*.*)\t*\n"
|
|
|
|
else
|
|
|
|
let b:browsefilter ..= "All Files (*)\t*\n"
|
|
|
|
endif
|
2014-07-10 21:05:51 -07:00
|
|
|
endif
|
|
|
|
|
|
|
|
" Set the errorformat for the Kimwitu++ compiler
|
|
|
|
set efm+=kc%.%#:\ error\ at\ %f:%l:\ %m
|
|
|
|
|
|
|
|
if exists("b:undo_ftplugin")
|
|
|
|
let b:undo_ftplugin = b:undo_ftplugin . " | setlocal efm<"
|
2024-01-15 03:12:32 -07:00
|
|
|
\ . "| unlet! b:browsefilter"
|
2014-07-10 21:05:51 -07:00
|
|
|
else
|
|
|
|
let b:undo_ftplugin = "setlocal efm<"
|
2024-01-15 03:12:32 -07:00
|
|
|
\ . "| unlet! b:browsefilter"
|
2014-07-10 21:05:51 -07:00
|
|
|
endif
|
|
|
|
|
|
|
|
let &cpo = s:cpo_save
|
|
|
|
unlet s:cpo_save
|