Lines Matching refs:indent
1 " Vim indent file
16 runtime! indent/sh.vim
34 """" begin modified from indent/python.vim, upstream commit 7a9bd7c1e0ce1baf5a02daf36eeae3638aa315c7
49 return indent(a:lnum - 1)
51 …return indent(a:lnum - 1) + (exists("g:pyindent_continue") ? eval(g:pyindent_continue) : (shiftwid…
54 " If the start of the line is in a string don't change the indent.
64 " This is the first non-empty line, use zero indent.
75 let plindent = indent(plnum)
83 " If the previous line is inside parenthesis, use the indent of the starting
97 let plindent = indent(plnum)
100 let plindent = indent(parlnum)
104 let plindent = indent(plnum)
136 " When the start is inside parenthesis, only indent one 'shiftwidth'.
143 …return indent(plnum) + (exists("g:pyindent_nested_paren") ? eval(g:pyindent_nested_paren) : shiftw…
145 …return indent(plnum) + (exists("g:pyindent_open_paren") ? eval(g:pyindent_open_paren) : (shiftwidt…
148 return indent(plnum)
189 " If the previous line ended with a colon, indent this line
198 if indent(a:lnum) > indent(plnum) - shiftwidth()
200 return indent(plnum) - shiftwidth()
211 let ind = indent(lnum)
212 if ind >= indent(a:lnum)
213 return -1 " indent is already less than this
231 if indent(a:lnum) <= plindent - shiftwidth()
253 """ end of stuff from indent/python.vim
297 " Only indent if there was actually a continuation character on
320 " return of -1 (defer to autoindent) or -2 (force indent to 0)