pyrex.vim 766 B

12345678910111213141516171819202122232425262728
  1. " Vim filetype plugin file
  2. " Language: Pyrex
  3. " Maintainer: Marco Barisione <marco.bari@people.it>
  4. " URL: http://marcobari.altervista.org/pyrex_vim.html
  5. " Last Change: 2012 May 18
  6. " Only do this when not done yet for this buffer
  7. if exists("b:did_ftplugin")
  8. finish
  9. endif
  10. let s:keepcpo= &cpo
  11. set cpo&vim
  12. " Behaves just like Python
  13. runtime! ftplugin/python.vim ftplugin/python_*.vim ftplugin/python/*.vim
  14. if has("gui_win32") && exists("b:browsefilter")
  15. let b:browsefilter = "Pyrex files (*.pyx,*.pxd)\t*.pyx;*.pxd\n" .
  16. \ "Python Files (*.py)\t*.py\n" .
  17. \ "C Source Files (*.c)\t*.c\n" .
  18. \ "C Header Files (*.h)\t*.h\n" .
  19. \ "C++ Source Files (*.cpp *.c++)\t*.cpp;*.c++\n" .
  20. \ "All Files (*.*)\t*.*\n"
  21. endif
  22. let &cpo = s:keepcpo
  23. unlet s:keepcpo