blob: 251da39df43cd446c5807b4dac51e6ec913e8a8f [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim filetype plugin file
2" Language: Pyrex
3" Maintainer: Marco Barisione <marco.bari@people.it>
4" URL: http://marcobari.altervista.org/pyrex_vim.html
Bram Moolenaar8e52a592012-05-18 21:49:28 +02005" Last Change: 2012 May 18
Bram Moolenaar071d4272004-06-13 20:20:40 +00006
7" Only do this when not done yet for this buffer
8if exists("b:did_ftplugin")
9 finish
10endif
Bram Moolenaar8e52a592012-05-18 21:49:28 +020011let s:keepcpo= &cpo
12set cpo&vim
Bram Moolenaar071d4272004-06-13 20:20:40 +000013
14" Behaves just like Python
15runtime! ftplugin/python.vim ftplugin/python_*.vim ftplugin/python/*.vim
16
17if 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"
24endif
Bram Moolenaar8e52a592012-05-18 21:49:28 +020025
26let &cpo = s:keepcpo
27unlet s:keepcpo