1
0
Fork 0
mirror of https://github.com/vim/vim synced 2025-03-16 06:47:52 +01:00
vim/runtime/ftplugin/kwt.vim

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
1,018 B
VimL
Raw Permalink Normal View History

2004-06-13 20:20:40 +00:00
" Vim filetype plugin file
" Language: Kimwitu++
2011-12-30 13:11:27 +01:00
" Maintainer: Michael Piefel <entwurf@piefel.de>
2012-03-28 20:51:51 +02:00
" Last Change: 10 March 2012
" 2024 Jan 14 by Vim Project (browsefilter)
2004-06-13 20:20:40 +00:00
" Behaves almost like C++
runtime! ftplugin/cpp.vim ftplugin/cpp_*.vim ftplugin/cpp/*.vim
2011-12-30 13:11:27 +01:00
let s:cpo_save = &cpo
set cpo&vim
2004-06-13 20:20:40 +00:00
" Limit the browser to related files
if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
2004-06-13 20:20:40 +00:00
let b:browsefilter = "Kimwitu/Kimwitu++ Files (*.k)\t*.k\n" .
\ "Lex/Flex Files (*.l)\t*.l\n" .
\ "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
2004-06-13 20:20:40 +00:00
endif
" Set the errorformat for the Kimwitu++ compiler
set efm+=kc%.%#:\ error\ at\ %f:%l:\ %m
2011-12-30 13:11:27 +01:00
2012-03-28 20:51:51 +02:00
if exists("b:undo_ftplugin")
let b:undo_ftplugin = b:undo_ftplugin . " | setlocal efm<"
\ . "| unlet! b:browsefilter"
2012-03-28 20:51:51 +02:00
else
let b:undo_ftplugin = "setlocal efm<"
\ . "| unlet! b:browsefilter"
2012-03-28 20:51:51 +02:00
endif
2011-12-30 13:11:27 +01:00
let &cpo = s:cpo_save
unlet s:cpo_save