neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

kwt.vim (1018B)


      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++
      8 runtime! ftplugin/cpp.vim ftplugin/cpp_*.vim ftplugin/cpp/*.vim
      9 
     10 let s:cpo_save = &cpo
     11 set cpo&vim
     12 
     13 " Limit the browser to related files
     14 if (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
     23 endif
     24 
     25 " Set the errorformat for the Kimwitu++ compiler
     26 set efm+=kc%.%#:\ error\ at\ %f:%l:\ %m
     27 
     28 if exists("b:undo_ftplugin")
     29    let b:undo_ftplugin = b:undo_ftplugin . " | setlocal efm<"
     30 \ . "| unlet! b:browsefilter"
     31 else
     32    let b:undo_ftplugin = "setlocal efm<"
     33 \ . "| unlet! b:browsefilter"
     34 endif
     35 
     36 let &cpo = s:cpo_save
     37 unlet s:cpo_save