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