Mercurial > vim
comparison runtime/ftplugin/python.vim @ 3496:d1e4abe8342c
Fixed compatible mode in most runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Mon, 30 Apr 2012 15:56:52 +0200 |
parents | fd1b3406fd1c |
children | 173c9c860e42 |
comparison
equal
deleted
inserted
replaced
3495:0973ed3043c6 | 3496:d1e4abe8342c |
---|---|
3 " Maintainer: Johannes Zellner <johannes@zellner.org> | 3 " Maintainer: Johannes Zellner <johannes@zellner.org> |
4 " Last Change: Wed, 21 Apr 2004 13:13:08 CEST | 4 " Last Change: Wed, 21 Apr 2004 13:13:08 CEST |
5 | 5 |
6 if exists("b:did_ftplugin") | finish | endif | 6 if exists("b:did_ftplugin") | finish | endif |
7 let b:did_ftplugin = 1 | 7 let b:did_ftplugin = 1 |
8 let s:keepcpo= &cpo | |
9 set cpo&vim | |
8 | 10 |
9 setlocal cinkeys-=0# | 11 setlocal cinkeys-=0# |
10 setlocal indentkeys-=0# | 12 setlocal indentkeys-=0# |
11 setlocal include=\s*\\(from\\\|import\\) | 13 setlocal include=\s*\\(from\\\|import\\) |
12 setlocal includeexpr=substitute(v:fname,'\\.','/','g') | 14 setlocal includeexpr=substitute(v:fname,'\\.','/','g') |
39 | 41 |
40 if has("gui_win32") && !exists("b:browsefilter") | 42 if has("gui_win32") && !exists("b:browsefilter") |
41 let b:browsefilter = "Python Files (*.py)\t*.py\n" . | 43 let b:browsefilter = "Python Files (*.py)\t*.py\n" . |
42 \ "All Files (*.*)\t*.*\n" | 44 \ "All Files (*.*)\t*.*\n" |
43 endif | 45 endif |
46 | |
47 let &cpo = s:keepcpo | |
48 unlet s:keepcpo |