kwt.vim 1018 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. " Behaves almost like C++
  7. runtime! ftplugin/cpp.vim ftplugin/cpp_*.vim ftplugin/cpp/*.vim
  8. let s:cpo_save = &cpo
  9. set cpo&vim
  10. " Limit the browser to related files
  11. if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
  12. let b:browsefilter = "Kimwitu/Kimwitu++ Files (*.k)\t*.k\n" .
  13. \ "Lex/Flex Files (*.l)\t*.l\n" .
  14. \ "Yacc/Bison Files (*.y)\t*.y\n"
  15. if has("win32")
  16. let b:browsefilter ..= "All Files (*.*)\t*\n"
  17. else
  18. let b:browsefilter ..= "All Files (*)\t*\n"
  19. endif
  20. endif
  21. " Set the errorformat for the Kimwitu++ compiler
  22. set efm+=kc%.%#:\ error\ at\ %f:%l:\ %m
  23. if exists("b:undo_ftplugin")
  24. let b:undo_ftplugin = b:undo_ftplugin . " | setlocal efm<"
  25. \ . "| unlet! b:browsefilter"
  26. else
  27. let b:undo_ftplugin = "setlocal efm<"
  28. \ . "| unlet! b:browsefilter"
  29. endif
  30. let &cpo = s:cpo_save
  31. unlet s:cpo_save