robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

Barrett Ruthfix(ftplugin): source inherited Lua ftplugins0bb2f5cc08

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