Searched +refs:indent +refs:line +refs:function (Results 1 - 25 of 118) sorted by relevance

12345

/macosx-10.10.1/vim-55/runtime/indent/
H A Dsass.vim1 " Vim indent file
15 " Only define the function once.
22 function! GetSassIndent()
24 let line = substitute(getline(lnum),'\s\+$','','')
26 let lastcol = strlen(line)
27 let line = substitute(line,'^\s\+','','')
28 let indent = indent(lnum)
29 let cindent = indent(
[all...]
H A Dhaml.vim1 " Vim indent file
9 runtime! indent/ruby.vim
17 " Only define the function once.
29 function! GetHamlIndent()
34 let line = substitute(getline(lnum),'\s\+$','','')
36 let lastcol = strlen(line)
37 let line = substitute(line,'^\s\+','','')
38 let indent = indent(lnu
[all...]
H A Dtcsh.vim1 " Vim indent file
6 " Only load this indent file when no other was loaded.
16 " Only define the function once.
23 function TcshGetIndent()
24 " Find a non-blank line above the current line.
27 " Hit the start of the file, use zero indent.
32 " Add indent if previous line begins with while or foreach
33 " OR line end
[all...]
H A Dyacc.vim1 " Vim indent file
6 " Only load this indent file when no other was loaded.
17 " Only define the function once.
22 function GetYaccIndent()
27 let ind = indent(v:lnum - 1)
28 let line = getline(v:lnum - 1)
30 if line == ''
32 elseif line =~ '^\w\+\s*:'
33 let ind = ind + matchend(line, '^\w\+\s*')
34 elseif line
[all...]
H A Dcucumber.vim1 " Vim indent file
15 " Only define the function once.
20 function! s:syn(lnum)
21 return synIDattr(synID(a:lnum,1+indent(a:lnum),1),'name')
24 function! GetCucumberIndent()
25 let line = getline(prevnonblank(v:lnum-1))
35 elseif syn ==# 'cucumberFeature' || line =~# '^\s*Feature:'
37 elseif syn ==# 'cucumberExamples' || line =~# '^\s*\%(Examples\|Scenarios\):'
39 elseif syn =~# '^cucumber\%(Background\|Scenario\|ScenarioOutline\)$' || line =~# '^\s*\%(Background\|Scenario\|Scenario Outline\):'
41 elseif cline =~# '^\s*@' && (s:syn(nextnonblank(v:lnum+1)) == 'cucumberFeature' || getline(nextnonblank(v:lnum+1)) =~# '^\s*Feature:' || indent(prevnonblan
[all...]
H A Dconfig.vim1 " Vim indent file
5 " TODO: how about nested [()]'s in one line
8 " Only load this indent file when no other was loaded.
13 runtime! indent/sh.vim " will set b:did_indent
19 " Only define the function once.
24 " get the offset (indent) of the end of the match of 'regexp' in 'line'
25 function s:GetOffsetOf(line, regexp)
26 let end = matchend(a:line,
[all...]
H A Drst.vim1 " Vim indent file
19 function GetRSTIndent()
25 let ind = indent(lnum)
26 let line = getline(lnum)
28 if line =~ '^\s*[-*+]\s'
30 elseif line =~ '^\s*\d\+.\s'
31 let ind = ind + matchend(substitute(line, '^\s*', '', ''), '\d\+.\s\+')
34 let line = getline(v:lnum - 1)
36 if line =~ '^\s*$'
39 let line
[all...]
H A Dbst.vim1 " Vim indent file
19 " Only define the function once.
24 function! s:prevgood(lnum)
25 " Find a non-blank line above the current line.
37 function! s:strip(lnum)
38 let line = getline(a:lnum)
39 let line = substitute(line,'"[^"]*"','""','g')
40 let line
[all...]
H A Dtcl.vim1 " Vim indent file
19 function s:prevnonblanknoncomment(lnum)
22 let line = getline(lnum)
23 if line !~ '^\s*\(#\|$\)'
31 function s:count_braces(lnum, count_open)
34 let line = getline(a:lnum)
36 let i = match(line, pattern)
39 if line[i] == '{'
41 elseif line[i] == '}'
49 let i = match(line, patter
[all...]
H A Dsh.vim1 " Vim indent file
24 function s:buffer_shiftwidth()
29 \ 'default': function('s:buffer_shiftwidth'),
30 \ 'continuation-line': function('s:buffer_shiftwidth'),
31 \ 'case-labels': function('s:buffer_shiftwidth'),
32 \ 'case-statements': function('s:buffer_shiftwidth'),
35 function! s:indent_value(option)
40 if type(Value) == type(function('type'))
46 function! GetShInden
[all...]
H A Dawk.vim3 " Awk indent script. It can handle multi-line statements and expressions.
24 " 29-04-2002 Fixed problems in function headers and max line width
25 " Added support for two-line if's without curly braces
27 " Only load this indent file when no other was loaded.
35 " Mmm, copied from the tcl indent program. Is this okay?
38 " Only define the function once.
43 " This function contains a lot of exit points. It checks for simple cases
44 " first to get out of the function a
[all...]
H A Dtf.vim1 " Vim indent file
4 " URL: http://christianrobinson.name/vim/indent/tf.vim
7 " Only load this indent file when no other was loaded.
17 " Only define the function once:
22 function GetTFIndent()
23 " Find a non-blank line above the current line:
26 " No indent for the start of the file:
31 let ind = indent(lnum)
32 let line
[all...]
H A Dxinetd.vim1 " Vim indent file
19 function s:count_braces(lnum, count_open)
22 let line = getline(a:lnum)
24 let i = match(line, pattern)
27 if line[i] == '{'
29 elseif line[i] == '}'
37 let i = match(line, pattern, i + 1)
42 function GetXinetdIndent()
48 return indent(pnum) + s:count_braces(pnum, 1) * &sw
H A Doccam.vim1 " Vim indent file
6 " Only load this indent file when no other was loaded.
13 " Set the occam indent function
15 " Indent after new line and after initial colon
19 " Only define the function once
25 " Define carriage return indent
31 " Define colon indent
42 "{{{ function GetOccamIndent()
43 " Auxiliary function t
[all...]
H A Dgitconfig.vim1 " Vim indent file
15 " Only define the function once.
20 function! GetGitconfigIndent()
21 let line = getline(prevnonblank(v:lnum-1))
23 if line =~ '\\\@<!\%(\\\\\)*\\$'
24 " odd number of slashes, in a line continuation
30 elseif cline == '' && line =~ '^\['
H A Dada.vim2 " Description: Vim Ada indent file
13 " $HeadURL: https://gnuada.svn.sourceforge.net/svnroot/gnuada/trunk/tools/vim/indent/ada.vim $
19 " Help Page: ft-vim-indent
22 " Verify handling of multi-line exprs. and recovery upon the final ';'.
24 " Combine the two large block-indent functions into one?
27 " Only load this indent file when no other was loaded.
44 let s:AdaBlockStart = '^\s*\(if\>\|while\>\|else\>\|elsif\>\|loop\>\|for\>.*\<\(loop\|use\)\>\|declare\>\|begin\>\|type\>.*\<is\>[^;]*$\|\(type\>.*\)\=\<record\>\|procedure\>\|function\>\|accept\>\|do\>\|task\>\|package\>\|project\>\|then\>\|when\>\|is\>\)'
46 let s:AdaBlockStart = '^\s*\(if\>\|while\>\|else\>\|elsif\>\|loop\>\|for\>.*\<\(loop\|use\)\>\|declare\>\|begin\>\|type\>.*\<is\>[^;]*$\|\(type\>.*\)\=\<record\>\|procedure\>\|function\>\|accept\>\|do\>\|task\>\|package\>\|then\>\|when\>\|is\>\)'
51 " Try to find indent of the block we're in
52 " prev_indent = the previous line'
[all...]
H A Ddylan.vim1 " Vim indent file
7 " Only load this indent file when no other was loaded.
15 " Define the appropriate indent function but only once
21 function DylanGetIndent()
22 " Get the line to be indented
30 "Find the previous non-blank line
32 "Use zero indent at the top of the file
38 let ind = indent(lnum)
41 " If previous line wa
[all...]
H A Dlogtalk.vim5 " This Logtalk indent file is a modified version of the Prolog
6 " indent file written by Gergely Kontra
8 " Only load this indent file when no other was loaded.
19 " Only define the function once.
24 function! GetLogtalkIndent()
25 " Find a non-blank line above the current line.
27 " Hit the start of the file, use zero indent.
31 let line = getline(v:lnum)
34 let ind = indent(pnu
[all...]
H A Docaml.vim1 " Vim indent file
6 " URL: http://www.ocaml.info/vim/indent/ocaml.vim
8 " 2005 May 09 - Added an option to not indent OCaml-indents specially (MM)
11 " Only load this indent file when no other was loaded.
32 " Only define the function once.
47 function s:GetLineWithoutFullComment(lnum)
58 function s:GetInd(lnum, pat, lim)
60 let old = indent(a:lnum)
62 let old = indent(llet)
73 function
[all...]
H A Dsqlanywhere.vim1 " Vim indent file
20 " it, this can leave the indent hanging to the right one too many.
22 " Only load this indent file when no other was loaded.
37 " you would type at the BEGINNING of a line
39 " These keywords are something that would trigger an indent LEFT, not
40 " an indent right, since the SQLBlockStart is used for those keywords
53 " These are typically words that start a line.
64 " The indent level is also based on unmatched paranethesis
65 " If a line has an extra "(" increase the indent
[all...]
H A Dmatlab.vim1 " Matlab indent file
6 " Only load this indent file when no other was loaded.
18 " Only define the function once.
23 function GetMatlabIndent(lnum)
24 " Give up if this line is explicitly joined.
29 " Search backwards for the first non-empty line.
36 " This is the first non-empty line, use zero indent.
40 let curind = indent(plnum)
42 " If the current line i
[all...]
H A Dmake.vim1 " Vim indent file
30 function s:remove_continuation(line)
31 return substitute(a:line, s:continuation_rx, "", "")
34 function GetMakeIndent()
49 return indent(prev_lnum)
61 " TODO: OK, this might be a continued shell command, so perhaps indent
63 " should be using indent/sh.vim somehow.
66 " return indent(prev_lnum) + 2
69 return indent(prev_lnu
[all...]
H A Dmma.vim1 " Vim indent file
6 " http://members.wolfram.com/layland/vim/indent/mma.vim
15 " o steve hacked this out of a random indent file in the Vim 6.1
18 " Only load this indent file when no other was loaded.
26 setlocal nosi "turn off smart indent so we don't over analyze } blocks
32 function GetMmaIndent()
34 " Hit the start of the file, use zero indent.
39 " Find a non-blank line above the current line.
43 let ind = indent(
[all...]
H A Dvhdl.vim1 " VHDL indent ('93 syntax)
8 " only load this indent file when no other was loaded
14 " setup indent options for local VHDL buffer
19 setlocal indentkeys+==~case,=~loop,=~for,=~generate,=~record,=~units,=~process,=~block,=~function,=~component,=~procedure
40 " only define indent function once
45 function GetVHDLindent()
46 " store current line & string
50 " find previous line that is not a comment
59 " default indent start
[all...]
H A Dcss.vim1 " Vim indent file
19 function s:prevnonblanknoncomment(lnum)
23 let line = getline(lnum)
24 if line =~ '\*/'
25 while lnum > 1 && line !~ '/\*'
28 if line =~ '^\s*/\*'
40 function s:count_braces(lnum, count_open)
43 let line = getline(a:lnum)
45 let i = match(line, pattern)
48 if line[
[all...]

Completed in 153 milliseconds

12345