Mercurial > hg > RemoteEditor > vim7
comparison runtime/indent/python.vim @ 48:67300faee616 v7-3-618
v7-3-618
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 01 Aug 2012 18:08:28 +0900 |
parents | 76efa0be13f1 |
children |
comparison
equal
deleted
inserted
replaced
47:6c0584ec21b1 | 48:67300faee616 |
---|---|
1 " Vim indent file | 1 " Vim indent file |
2 " Language: Python | 2 " Language: Python |
3 " Maintainer: Bram Moolenaar <Bram@vim.org> | 3 " Maintainer: Bram Moolenaar <Bram@vim.org> |
4 " Original Author: David Bustos <bustos@caltech.edu> | 4 " Original Author: David Bustos <bustos@caltech.edu> |
5 " Last Change: 2006 Jun 18 | 5 " Last Change: 2012 May 01 |
6 | 6 |
7 " Only load this indent file when no other was loaded. | 7 " Only load this indent file when no other was loaded. |
8 if exists("b:did_indent") | 8 if exists("b:did_indent") |
9 finish | 9 finish |
10 endif | 10 endif |
19 | 19 |
20 " Only define the function once. | 20 " Only define the function once. |
21 if exists("*GetPythonIndent") | 21 if exists("*GetPythonIndent") |
22 finish | 22 finish |
23 endif | 23 endif |
24 let s:keepcpo= &cpo | |
25 set cpo&vim | |
24 | 26 |
25 " Come here when loading the script the first time. | 27 " Come here when loading the script the first time. |
26 | 28 |
27 let s:maxoff = 50 " maximum number of lines to look backwards for () | 29 let s:maxoff = 50 " maximum number of lines to look backwards for () |
28 | 30 |
188 | 190 |
189 return -1 | 191 return -1 |
190 | 192 |
191 endfunction | 193 endfunction |
192 | 194 |
195 let &cpo = s:keepcpo | |
196 unlet s:keepcpo | |
197 | |
193 " vim:sw=2 | 198 " vim:sw=2 |