annotate runtime/indent/python.vim @ 4605:38276cfe40b2 v7.3.1050

updated for version 7.3.1050 Problem: Python: Typo in pyiter_to_tv. Solution: Python patch 11. (ZyX)
author Bram Moolenaar <bram@vim.org>
date Wed, 29 May 2013 22:46:26 +0200
parents 8201108e9cf0
children ceb5f21cda79
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim indent file
164
8b0ee9d57d7f updated for version 7.0050
vimboss
parents: 20
diff changeset
2 " Language: Python
8b0ee9d57d7f updated for version 7.0050
vimboss
parents: 20
diff changeset
3 " Maintainer: Bram Moolenaar <Bram@vim.org>
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Original Author: David Bustos <bustos@caltech.edu>
3507
8201108e9cf0 More runtime file fixes for 'compatible' mode.
Bram Moolenaar <bram@vim.org>
parents: 3496
diff changeset
5 " Last Change: 2012 May 01
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " Only load this indent file when no other was loaded.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 if exists("b:did_indent")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 let b:did_indent = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 " Some preliminary settings
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 setlocal nolisp " Make sure lisp indenting doesn't supersede us
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 setlocal autoindent " indentexpr isn't much help otherwise
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 setlocal indentexpr=GetPythonIndent(v:lnum)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 setlocal indentkeys+=<:>,=elif,=except
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " Only define the function once.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 if exists("*GetPythonIndent")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 endif
3507
8201108e9cf0 More runtime file fixes for 'compatible' mode.
Bram Moolenaar <bram@vim.org>
parents: 3496
diff changeset
24 let s:keepcpo= &cpo
8201108e9cf0 More runtime file fixes for 'compatible' mode.
Bram Moolenaar <bram@vim.org>
parents: 3496
diff changeset
25 set cpo&vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
170
8c60f65311fa updated for version 7.0052
vimboss
parents: 164
diff changeset
27 " Come here when loading the script the first time.
8c60f65311fa updated for version 7.0052
vimboss
parents: 164
diff changeset
28
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 let s:maxoff = 50 " maximum number of lines to look backwards for ()
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 function GetPythonIndent(lnum)
856
8cd729851562 updated for version 7.0g
vimboss
parents: 840
diff changeset
32
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 " If this line is explicitly joined: If the previous line was also joined,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 " line it up with that one, otherwise add two 'shiftwidth'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 if getline(a:lnum - 1) =~ '\\$'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 if a:lnum > 1 && getline(a:lnum - 2) =~ '\\$'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 return indent(a:lnum - 1)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 endif
170
8c60f65311fa updated for version 7.0052
vimboss
parents: 164
diff changeset
39 return indent(a:lnum - 1) + (exists("g:pyindent_continue") ? eval(g:pyindent_continue) : (&sw * 2))
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 " If the start of the line is in a string don't change the indent.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 if has('syntax_items')
8
7edf9b6e4c36 Various changes
vimboss
parents: 7
diff changeset
44 \ && synIDattr(synID(a:lnum, 1, 1), "name") =~ "String$"
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 return -1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 " Search backwards for the previous non-empty line.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 let plnum = prevnonblank(v:lnum - 1)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 if plnum == 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 " This is the first non-empty line, use zero indent.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 return 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 " If the previous line is inside parenthesis, use the indent of the starting
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 " line.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 " Trick: use the non-existing "dummy" variable to break out of the loop when
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 " going too far back.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 call cursor(plnum, 1)
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 809
diff changeset
61 let parlnum = searchpair('(\|{\|\[', '', ')\|}\|\]', 'nbW',
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 \ "line('.') < " . (plnum - s:maxoff) . " ? dummy :"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 \ . " synIDattr(synID(line('.'), col('.'), 1), 'name')"
8
7edf9b6e4c36 Various changes
vimboss
parents: 7
diff changeset
64 \ . " =~ '\\(Comment\\|String\\)$'")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 if parlnum > 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 let plindent = indent(parlnum)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 let plnumstart = parlnum
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 let plindent = indent(plnum)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 let plnumstart = plnum
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 " When inside parenthesis: If at the first line below the parenthesis add
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 " two 'shiftwidth', otherwise same as previous line.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 " i = (a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 " + b
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 " + c)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 call cursor(a:lnum, 1)
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 809
diff changeset
80 let p = searchpair('(\|{\|\[', '', ')\|}\|\]', 'bW',
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 \ "line('.') < " . (a:lnum - s:maxoff) . " ? dummy :"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 \ . " synIDattr(synID(line('.'), col('.'), 1), 'name')"
8
7edf9b6e4c36 Various changes
vimboss
parents: 7
diff changeset
83 \ . " =~ '\\(Comment\\|String\\)$'")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 if p > 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 if p == plnum
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 " When the start is inside parenthesis, only indent one 'shiftwidth'.
819
23f82b5d2814 updated for version 7.0c10
vimboss
parents: 809
diff changeset
87 let pp = searchpair('(\|{\|\[', '', ')\|}\|\]', 'bW',
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 \ "line('.') < " . (a:lnum - s:maxoff) . " ? dummy :"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 \ . " synIDattr(synID(line('.'), col('.'), 1), 'name')"
8
7edf9b6e4c36 Various changes
vimboss
parents: 7
diff changeset
90 \ . " =~ '\\(Comment\\|String\\)$'")
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 if pp > 0
170
8c60f65311fa updated for version 7.0052
vimboss
parents: 164
diff changeset
92 return indent(plnum) + (exists("g:pyindent_nested_paren") ? eval(g:pyindent_nested_paren) : &sw)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 endif
170
8c60f65311fa updated for version 7.0052
vimboss
parents: 164
diff changeset
94 return indent(plnum) + (exists("g:pyindent_open_paren") ? eval(g:pyindent_open_paren) : (&sw * 2))
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 if plnumstart == p
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 return indent(plnum)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 return plindent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 " Get the line and remove a trailing comment.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 " Use syntax highlighting attributes when possible.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 let pline = getline(plnum)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 let pline_len = strlen(pline)
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 8
diff changeset
107 if has('syntax_items')
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 8
diff changeset
108 " If the last character in the line is a comment, do a binary search for
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 8
diff changeset
109 " the start of the comment. synID() is slow, a linear search would take
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 8
diff changeset
110 " too long on a long line.
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 8
diff changeset
111 if synIDattr(synID(plnum, pline_len, 1), "name") =~ "Comment$"
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 8
diff changeset
112 let min = 1
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 8
diff changeset
113 let max = pline_len
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 8
diff changeset
114 while min < max
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 8
diff changeset
115 let col = (min + max) / 2
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 8
diff changeset
116 if synIDattr(synID(plnum, col, 1), "name") =~ "Comment$"
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 8
diff changeset
117 let max = col
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 8
diff changeset
118 else
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 8
diff changeset
119 let min = col + 1
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 8
diff changeset
120 endif
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 8
diff changeset
121 endwhile
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 8
diff changeset
122 let pline = strpart(pline, 0, min - 1)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 endif
20
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 8
diff changeset
124 else
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 8
diff changeset
125 let col = 0
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 8
diff changeset
126 while col < pline_len
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 8
diff changeset
127 if pline[col] == '#'
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 8
diff changeset
128 let pline = strpart(pline, 0, col)
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 8
diff changeset
129 break
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 8
diff changeset
130 endif
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 8
diff changeset
131 let col = col + 1
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 8
diff changeset
132 endwhile
4ac1dce8dd5e updated for version 7.0012
vimboss
parents: 8
diff changeset
133 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 " If the previous line ended with a colon, indent this line
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 if pline =~ ':\s*$'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 return plindent + &sw
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 " If the previous line was a stop-execution statement...
1121
e63691e7c504 updated for version 7.1a
vimboss
parents: 856
diff changeset
141 if getline(plnum) =~ '^\s*\(break\|continue\|raise\|return\|pass\)\>'
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 " See if the user has already dedented
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143 if indent(a:lnum) > indent(plnum) - &sw
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 " If not, recommend one dedent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 return indent(plnum) - &sw
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 " Otherwise, trust the user
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 return -1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 " If the current line begins with a keyword that lines up with "try"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 if getline(a:lnum) =~ '^\s*\(except\|finally\)\>'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 let lnum = a:lnum - 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 while lnum >= 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 if getline(lnum) =~ '^\s*\(try\|except\)\>'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 let ind = indent(lnum)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 if ind >= indent(a:lnum)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 return -1 " indent is already less than this
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 return ind " line up with previous try or except
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 let lnum = lnum - 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 endwhile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 return -1 " no matching "try"!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 " If the current line begins with a header keyword, dedent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 if getline(a:lnum) =~ '^\s*\(elif\|else\)\>'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 " Unless the previous line was a one-liner
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 if getline(plnumstart) =~ '^\s*\(for\|if\|try\)\>'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 return plindent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 " Or the user has already dedented
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 if indent(a:lnum) <= plindent - &sw
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 return -1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 return plindent - &sw
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 " When after a () construct we probably want to go back to the start line.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 " a = (b
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 " + c)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 " here
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 if parlnum > 0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 return plindent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 return -1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 endfunction
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194
3496
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
195 let &cpo = s:keepcpo
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
196 unlet s:keepcpo
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 1121
diff changeset
197
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 " vim:sw=2