Mercurial > vim
annotate runtime/ftplugin/pyrex.vim @ 15209:3a99b2e6d136 v8.1.0614
patch 8.1.0614: placing signs can be complicated
commit https://github.com/vim/vim/commit/162b71479bd4dcdb3a2ef9198a1444f6f99e6843
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Dec 21 15:17:36 2018 +0100
patch 8.1.0614: placing signs can be complicated
Problem: Placing signs can be complicated.
Solution: Add functions for defining and placing signs. Introduce a group
name to avoid different plugins using the same signs. (Yegappan
Lakshmanan, closes #3652)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 21 Dec 2018 15:30:07 +0100 |
parents | dd6c2497c997 |
children | 8ae680be2a51 |
rev | line source |
---|---|
7 | 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 | |
3526
dd6c2497c997
Fix more 'cpo' issues in runtime files.
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
5 " Last Change: 2012 May 18 |
7 | 6 |
7 " Only do this when not done yet for this buffer | |
8 if exists("b:did_ftplugin") | |
9 finish | |
10 endif | |
3526
dd6c2497c997
Fix more 'cpo' issues in runtime files.
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
11 let s:keepcpo= &cpo |
dd6c2497c997
Fix more 'cpo' issues in runtime files.
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
12 set cpo&vim |
7 | 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 | |
3526
dd6c2497c997
Fix more 'cpo' issues in runtime files.
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
25 |
dd6c2497c997
Fix more 'cpo' issues in runtime files.
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
26 let &cpo = s:keepcpo |
dd6c2497c997
Fix more 'cpo' issues in runtime files.
Bram Moolenaar <bram@vim.org>
parents:
7
diff
changeset
|
27 unlet s:keepcpo |