home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / runtime / dos / ftplugin / pyrex.vim < prev    next >
Encoding:
Text File  |  2012-05-31  |  793 b   |  28 lines

  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.  
  7. " Only do this when not done yet for this buffer
  8. if exists("b:did_ftplugin")
  9.   finish
  10. endif
  11. let s:keepcpo= &cpo
  12. set cpo&vim
  13.  
  14. " Behaves just like Python
  15. runtime! ftplugin/python.vim ftplugin/python_*.vim ftplugin/python/*.vim
  16.  
  17. if has("gui_win32") && exists("b:browsefilter")
  18.     let  b:browsefilter = "Pyrex files (*.pyx,*.pxd)\t*.pyx;*.pxd\n" .
  19.             \ "Python Files (*.py)\t*.py\n" .
  20.             \ "C Source Files (*.c)\t*.c\n" .
  21.             \ "C Header Files (*.h)\t*.h\n" .
  22.             \ "C++ Source Files (*.cpp *.c++)\t*.cpp;*.c++\n" .
  23.             \ "All Files (*.*)\t*.*\n"
  24. endif
  25.  
  26. let &cpo = s:keepcpo
  27. unlet s:keepcpo
  28.