kwt.vim 851 B

123456789101112131415161718192021222324252627282930313233
  1. " Vim filetype plugin file
  2. " Language: Kimwitu++
  3. " Maintainer: Michael Piefel <entwurf@piefel.de>
  4. " Last Change: 10 March 2012
  5. " Behaves almost like C++
  6. runtime! ftplugin/cpp.vim ftplugin/cpp_*.vim ftplugin/cpp/*.vim
  7. let s:cpo_save = &cpo
  8. set cpo&vim
  9. " Limit the browser to related files
  10. if has("gui_win32") && !exists("b:browsefilter")
  11. let b:browsefilter = "Kimwitu/Kimwitu++ Files (*.k)\t*.k\n" .
  12. \ "Lex/Flex Files (*.l)\t*.l\n" .
  13. \ "Yacc/Bison Files (*.y)\t*.y\n" .
  14. \ "All Files (*.*)\t*.*\n"
  15. endif
  16. " Set the errorformat for the Kimwitu++ compiler
  17. set efm+=kc%.%#:\ error\ at\ %f:%l:\ %m
  18. if exists("b:undo_ftplugin")
  19. let b:undo_ftplugin = b:undo_ftplugin . " | setlocal efm<"
  20. \ . "| unlet! b:browsefiler"
  21. else
  22. let b:undo_ftplugin = "setlocal efm<"
  23. \ . "| unlet! b:browsefiler"
  24. endif
  25. let &cpo = s:cpo_save
  26. unlet s:cpo_save