robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
0bb2f5cc08
master
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 9if exists ( "b:did_ftplugin" ) 10finish 11endif 12let s: keepcpo = & cpo 13set cpo & vim 14 15" Behaves just like Python 16runtime ! ftplugin/python[.]{vim,lua} ftplugin/python_*.{vim,lua} ftplugin/python/*.{vim,lua} 17 18if ( has ( "gui_win32" ) || has ( "gui_gtk" )) && ! exists ( "b:browsefilter" ) 19let 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" 24if has ( "win32" ) 25let b: browsefilter .= "All Files (*.*)\t*\n" 26else 27let b: browsefilter .= "All Files (*)\t*\n" 28endif 29endif 30 31let & cpo = s: keepcpo 32unlet s: keepcpo