Created
November 28, 2019 20:38
-
-
Save xenos1984/c79836e6677bac9fdb7ab9ef4b72d7b5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FUNCTION <SNR>73_RequestSignatureHelp() | |
Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim:938 | |
Called 25 times | |
Total time: 0.019903 | |
Self time: 0.005862 | |
count total (s) self (s) | |
25 0.005100 0.000509 if !s:ShouldUseSignatureHelp() | |
return | |
25 0.000062 endif | |
25 0.004394 exec s:python_command "ycm_state.SendSignatureHelpRequest()" | |
25 0.010149 0.000699 call s:PollSignatureHelp() | |
FUNCTION airline#extensions#vista#currenttag() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/vista.vim:7 | |
Called 90 times | |
Total time: 0.000902 | |
Self time: 0.000902 | |
count total (s) self (s) | |
90 0.000398 if get(w:, 'airline_active', 0) | |
90 0.000416 return get(b:, 'vista_nearest_method_or_function', '') | |
endif | |
FUNCTION 9() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/builder.vim:8 | |
Called 9 times | |
Total time: 0.000036 | |
Self time: 0.000036 | |
count total (s) self (s) | |
9 0.000034 call add(self._sections, ['|', a:0 ? a:1 : '%=']) | |
FUNCTION airline#util#exec_funcrefs() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/util.vim:81 | |
Called 12 times | |
Total time: 0.016153 | |
Self time: 0.000664 | |
count total (s) self (s) | |
72 0.000066 for Fn in a:list | |
68 0.015889 0.000400 let code = call(Fn, a:000) | |
68 0.000048 if code != 0 | |
8 0.000005 return code | |
60 0.000022 endif | |
64 0.000037 endfor | |
4 0.000002 return 0 | |
FUNCTION airline#extensions#netrw#apply() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/netrw.vim:11 | |
Called 8 times | |
Total time: 0.000141 | |
Self time: 0.000141 | |
count total (s) self (s) | |
8 0.000028 if &ft == 'netrw' | |
let spc = g:airline_symbols.space | |
call a:1.add_section('airline_a', spc.'netrw'.spc) | |
if exists('*airline#extensions#branch#get_head') | |
call a:1.add_section('airline_b', spc.'%{airline#extensions#branch#get_head()}'.spc) | |
endif | |
call a:1.add_section('airline_c', spc.'%f'.spc) | |
call a:1.split() | |
call a:1.add_section('airline_y', spc.'%{airline#extensions#netrw#sortstring()}'.spc) | |
return 1 | |
8 0.000003 endif | |
FUNCTION gitgutter#process_buffer() | |
Defined: ~/.vim/bundle/vim-gitgutter/autoload/gitgutter.vim:23 | |
Called 5 times | |
Total time: 0.000936 | |
Self time: 0.000806 | |
count total (s) self (s) | |
" NOTE a:bufnr is not necessarily the current buffer. | |
5 0.000272 0.000142 if gitgutter#utility#is_active(a:bufnr) | |
if has('patch-7.4.1559') | |
let l:Callback = function('gitgutter#process_buffer', [a:bufnr, a:force]) | |
else | |
let l:Callback = {'function': 'gitgutter#process_buffer', 'arguments': [a:bufnr, a:force]} | |
endif | |
let how = s:setup_path(a:bufnr, l:Callback) | |
if [how] == ['async'] " avoid string-to-number conversion if how is a number | |
return | |
endif | |
if a:force || s:has_fresh_changes(a:bufnr) | |
let diff = '' | |
try | |
let diff = gitgutter#diff#run_diff(a:bufnr, g:gitgutter_diff_relative_to, 0) | |
catch /gitgutter not tracked/ | |
call gitgutter#debug#log('Not tracked: '.gitgutter#utility#file(a:bufnr)) | |
catch /gitgutter diff failed/ | |
call gitgutter#debug#log('Diff failed: '.gitgutter#utility#file(a:bufnr)) | |
call gitgutter#hunk#reset(a:bufnr) | |
endtry | |
if diff != 'async' | |
call gitgutter#diff#handler(a:bufnr, diff) | |
endif | |
endif | |
5 0.000009 endif | |
FUNCTION <SNR>73_PollSignatureHelp() | |
Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim:948 | |
Called 3810 times | |
Total time: 1.865003 | |
Self time: 0.420332 | |
count total (s) self (s) | |
3810 1.277507 0.126461 if !s:ShouldUseSignatureHelp() | |
return | |
3810 0.012285 endif | |
3810 0.386893 0.093268 if !s:Pyeval( 'ycm_state.SignatureHelpRequestReady()' ) | |
3810 0.132315 let s:pollers.signature_help.id = timer_start( s:pollers.signature_help.wait_milliseconds, function( 's:PollSignatureHelp' ) ) | |
3810 0.010575 return | |
endif | |
let s:signature_help = s:Pyeval( 'ycm_state.GetSignatureHelpResponse()' ) | |
call s:UpdateSignatureHelp() | |
FUNCTION <SNR>73_OnFileReadyToParse() | |
Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim:657 | |
Called 1 time | |
Total time: 0.002558 | |
Self time: 0.001727 | |
count total (s) self (s) | |
" Accepts an optional parameter that is either 0 or 1. If 1, send a | |
" FileReadyToParse event notification, whether the buffer has changed or not; | |
" effectively forcing a parse of the buffer. Default is 0. | |
1 0.000010 let force_parsing = a:0 > 0 && a:1 | |
" We only want to send a new FileReadyToParse event notification if the buffer | |
" has changed since the last time we sent one, or if forced. | |
1 0.000269 0.000021 if force_parsing || s:Pyeval( "ycm_state.NeedsReparse()" ) | |
" We switched buffers or somethuing, so claer. | |
" FIXME: sig hekp should be buffer local? | |
1 0.000612 0.000029 call s:ClearSignatureHelp() | |
1 0.001594 exec s:python_command "ycm_state.OnFileReadyToParse()" | |
1 0.000020 call timer_stop( s:pollers.file_parse_response.id ) | |
1 0.000032 let s:pollers.file_parse_response.id = timer_start( s:pollers.file_parse_response.wait_milliseconds, function( 's:PollFileParseResponse' ) ) | |
1 0.000003 endif | |
FUNCTION <SNR>76_get_separator_change() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/builder.vim:68 | |
Called 2 times | |
Total time: 0.000416 | |
Self time: 0.000028 | |
count total (s) self (s) | |
2 0.000415 0.000027 return s:get_separator_change_with_end(a:new_group, a:old_group, a:end_group, a:end_group, a:sep_size, a:alt_sep_size) | |
FUNCTION airline#check_mode() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline.vim:199 | |
Called 90 times | |
Total time: 0.220989 | |
Self time: 0.021030 | |
count total (s) self (s) | |
90 0.000622 if !has_key(s:contexts, a:winnr) | |
return '' | |
90 0.000163 endif | |
90 0.000632 let context = s:contexts[a:winnr] | |
90 0.000578 if get(w:, 'airline_active', 1) | |
90 0.000586 let l:m = mode(1) | |
90 0.000327 if l:m ==# "i" | |
43 0.000248 let l:mode = ['insert'] | |
47 0.000211 elseif l:m[0] ==# "i" | |
37 0.000147 let l:mode = ['insert'] | |
10 0.000022 elseif l:m ==# "Rv" | |
let l:mode =['replace'] | |
10 0.000028 elseif l:m[0] ==# "R" | |
let l:mode = ['replace'] | |
10 0.000148 elseif l:m[0] =~# '\v(v|V||s|S|)' | |
let l:mode = ['visual'] | |
10 0.000019 elseif l:m ==# "t" | |
let l:mode = ['terminal'] | |
10 0.000025 elseif l:m[0] ==# "c" | |
let l:mode = ['commandline'] | |
10 0.000023 elseif l:m ==# "no" " does not work, most likely, Vim does not refresh the statusline in OP mode | |
let l:mode = ['normal'] | |
10 0.000044 elseif l:m[0:1] ==# 'ni' | |
let l:mode = ['normal'] | |
let l:m = 'ni' | |
10 0.000015 else | |
10 0.000048 let l:mode = ['normal'] | |
90 0.000133 endif | |
90 0.000736 if exists("*VMInfos") && !empty(VMInfos()) | |
" Vim plugin Multiple Cursors https://github.com/mg979/vim-visual-multi | |
let l:m = 'multi' | |
90 0.000114 endif | |
90 0.000899 if index(['Rv', 'no', 'ni', 'ix', 'ic', 'multi'], l:m) == -1 | |
53 0.000286 let l:m = l:m[0] | |
90 0.000112 endif | |
90 0.000850 let w:airline_current_mode = get(g:airline_mode_map, l:m, l:m) | |
else | |
let l:mode = ['inactive'] | |
let w:airline_current_mode = get(g:airline_mode_map, '__') | |
90 0.000127 endif | |
90 0.000488 if g:airline_detect_modified && &modified | |
86 0.000611 call add(l:mode, 'modified') | |
90 0.000127 endif | |
90 0.000303 if g:airline_detect_paste && &paste | |
call add(l:mode, 'paste') | |
90 0.000116 endif | |
90 0.000759 if g:airline_detect_crypt && exists("+key") && !empty(&key) | |
call add(l:mode, 'crypt') | |
90 0.000098 endif | |
90 0.000333 if g:airline_detect_spell && &spell | |
call add(l:mode, 'spell') | |
90 0.000101 endif | |
90 0.000277 if &readonly || ! &modifiable | |
call add(l:mode, 'readonly') | |
90 0.000109 endif | |
90 0.000740 let mode_string = join(l:mode) | |
90 0.000643 if get(w:, 'airline_lastmode', '') != mode_string | |
7 0.005985 0.000127 call airline#highlighter#highlight_modified_inactive(context.bufnr) | |
7 0.193960 0.000170 call airline#highlighter#highlight(l:mode, context.bufnr) | |
7 0.000395 0.000084 call airline#util#doautocmd('AirlineModeChanged') | |
7 0.000015 let w:airline_lastmode = mode_string | |
90 0.000107 endif | |
90 0.000212 return '' | |
FUNCTION airline#util#append() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/util.vim:48 | |
Called 630 times | |
Total time: 0.012308 | |
Self time: 0.012308 | |
count total (s) self (s) | |
630 0.002911 if a:minwidth > 0 && airline#util#winwidth() < a:minwidth | |
return '' | |
630 0.000830 endif | |
630 0.003458 let prefix = s:spc == "\ua0" ? s:spc : s:spc.s:spc | |
630 0.003383 return empty(a:text) ? '' : prefix.g:airline_left_alt_sep.s:spc.a:text | |
FUNCTION <SNR>76_get_separator_change_with_end() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/builder.vim:76 | |
Called 2 times | |
Total time: 0.000388 | |
Self time: 0.000057 | |
count total (s) self (s) | |
2 0.000004 let sep_change = 0 | |
2 0.000005 if !empty(a:new_end_group) " Separator between title and the end | |
1 0.000343 0.000012 let sep_change += airline#builder#should_change_group(a:new_group, a:new_end_group) ? a:sep_size : a:alt_sep_size | |
2 0.000002 endif | |
2 0.000005 if !empty(a:old_group) " Separator between the title and the one adjacent | |
let sep_change += airline#builder#should_change_group(a:new_group, a:old_group) ? a:sep_size : a:alt_sep_size | |
if !empty(a:old_end_group) " Remove mis-predicted separator | |
let sep_change -= airline#builder#should_change_group(a:old_group, a:old_end_group) ? a:sep_size : a:alt_sep_size | |
endif | |
2 0.000001 endif | |
2 0.000003 return sep_change | |
FUNCTION airline#themes#get_highlight() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/themes.vim:31 | |
Called 670 times | |
Total time: 0.076582 | |
Self time: 0.005714 | |
count total (s) self (s) | |
670 0.076414 0.005546 return call('airline#highlighter#get_highlight', [a:group] + a:000) | |
FUNCTION airline#extensions#tabline#buffers#get() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/buffers.vim:51 | |
Called 33 times | |
Total time: 0.024595 | |
Self time: 0.002636 | |
count total (s) self (s) | |
33 0.000082 try | |
33 0.011403 0.000449 call <sid>map_keys() | |
catch | |
" no-op | |
33 0.000070 endtry | |
33 0.000209 let cur = bufnr('%') | |
33 0.000312 if cur == s:current_bufnr && &columns == s:column_width | |
33 0.000349 if !g:airline_detect_modified || getbufvar(cur, '&modified') == s:current_modified | |
32 0.000131 return s:current_tabline | |
1 0.000003 endif | |
1 0.000002 endif | |
1 0.000385 0.000067 let b = airline#extensions#tabline#new_builder() | |
1 0.000014 let tab_bufs = tabpagebuflist(tabpagenr()) | |
1 0.000008 let show_buf_label_first = 0 | |
1 0.000010 if get(g:, 'airline#extensions#tabline#buf_label_first', 0) | |
let show_buf_label_first = 1 | |
1 0.000003 endif | |
1 0.000005 if show_buf_label_first | |
call airline#extensions#tabline#add_label(b, 'buffers', 0) | |
1 0.000002 endif | |
1 0.000013 let b.tab_bufs = tabpagebuflist(tabpagenr()) | |
1 0.000007 let b.overflow_group = 'airline_tabhid' | |
1 0.000057 0.000033 let b.buffers = airline#extensions#tabline#buflist#list() | |
1 0.000009 if get(g:, 'airline#extensions#tabline#current_first', 0) | |
if index(b.buffers, cur) > -1 | |
call remove(b.buffers, index(b.buffers, cur)) | |
endif | |
let b.buffers = [cur] + b.buffers | |
1 0.000003 endif | |
1 0.000010 function! b.get_group(i) dict | |
let bufnum = get(self.buffers, a:i, -1) | |
if bufnum == -1 | |
return '' | |
endif | |
let group = airline#extensions#tabline#group_of_bufnr(self.tab_bufs, bufnum) | |
if bufnum == bufnr('%') | |
let s:current_modified = (group == 'airline_tabmod') ? 1 : 0 | |
endif | |
return group | |
endfunction | |
1 0.000025 if has("tablineat") | |
function! b.get_pretitle(i) dict | |
let bufnum = get(self.buffers, a:i, -1) | |
return '%'.bufnum.'@airline#extensions#tabline#buffers#clickbuf@' | |
endfunction | |
function! b.get_posttitle(i) dict | |
return '%X' | |
endfunction | |
1 0.000003 endif | |
1 0.000006 function! b.get_title(i) dict | |
let bufnum = get(self.buffers, a:i, -1) | |
let group = self.get_group(a:i) | |
let pgroup = self.get_group(a:i - 1) | |
" always add a space when powerline_fonts are used | |
" or for the very first item | |
if get(g:, 'airline_powerline_fonts', 0) || a:i == 0 | |
let space = s:spc | |
else | |
let space= (pgroup == group ? s:spc : '') | |
endif | |
if get(g:, 'airline#extensions#tabline#buffer_idx_mode', 0) | |
if len(s:number_map) > 0 | |
return space. s:get_number(a:i) . '%(%{airline#extensions#tabline#get_buffer_name('.bufnum.')}%)' . s:spc | |
else | |
return '['.(a:i+1).s:spc.'%(%{airline#extensions#tabline#get_buffer_name('.bufnum.')}%)'.']' | |
endif | |
else | |
return space.'%(%{airline#extensions#tabline#get_buffer_name('.bufnum.')}%)'.s:spc | |
endif | |
endfunction | |
1 0.000025 let current_buffer = max([index(b.buffers, cur), 0]) | |
1 0.000015 let last_buffer = len(b.buffers) - 1 | |
1 0.000112 0.000030 call b.insert_titles(current_buffer, 0, last_buffer) | |
1 0.000039 0.000020 call b.add_section('airline_tabfill', '') | |
1 0.000031 0.000016 call b.split() | |
1 0.000029 0.000014 call b.add_section('airline_tabfill', '') | |
1 0.000007 if !show_buf_label_first | |
1 0.000146 0.000032 call airline#extensions#tabline#add_label(b, 'buffers', 1) | |
1 0.000003 endif | |
1 0.000075 0.000033 call airline#extensions#tabline#add_tab_label(b) | |
1 0.000009 let s:current_bufnr = cur | |
1 0.000009 let s:column_width = &columns | |
1 0.010396 0.000020 let s:current_tabline = b.build() | |
1 0.000006 let s:current_visible_buffers = copy(b.buffers) | |
" Do not remove from s:current_visible_buffers, this breaks s:select_tab() | |
"if b._right_title <= last_buffer | |
" call remove(s:current_visible_buffers, b._right_title, last_buffer) | |
"endif | |
"if b._left_title > 0 | |
" call remove(s:current_visible_buffers, 0, b._left_title) | |
"endif | |
1 0.000003 return s:current_tabline | |
FUNCTION <SNR>80_GetNearbyTag() | |
Defined: ~/.vim/bundle/tagbar/autoload/tagbar.vim:2721 | |
Called 18 times | |
Total time: 0.000130 | |
Self time: 0.000130 | |
count total (s) self (s) | |
18 0.000060 if s:nearby_disabled | |
18 0.000050 return {} | |
endif | |
let fileinfo = tagbar#state#get_current_file(a:forcecurrent) | |
if empty(fileinfo) | |
return {} | |
endif | |
let typeinfo = fileinfo.typeinfo | |
if a:0 > 0 | |
let curline = a:1 | |
else | |
let curline = line('.') | |
endif | |
let tag = {} | |
" If a tag appears in a file more than once (for example namespaces in | |
" C++) only one of them has a 'tline' entry and can thus be highlighted. | |
" The only way to solve this would be to go over the whole tag list again, | |
" making everything slower. Since this should be a rare occurence and | |
" highlighting isn't /that/ important ignore it for now. | |
for line in range(curline, 1, -1) | |
if has_key(fileinfo.fline, line) | |
let curtag = fileinfo.fline[line] | |
if a:all || typeinfo.getKind(curtag.fields.kind).stl | |
let tag = curtag | |
break | |
endif | |
endif | |
endfor | |
return tag | |
FUNCTION airline#parts#filetype() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/parts.vim:102 | |
Called 90 times | |
Total time: 0.003415 | |
Self time: 0.001696 | |
count total (s) self (s) | |
90 0.003328 0.001609 return (airline#util#winwidth() < 90 && strlen(&filetype) > 3) ? matchstr(&filetype, '...'). (&encoding is? 'utf-8' ? '…' : '>') : &filetype | |
FUNCTION <SNR>76_tabline_evaluated_length() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/builder.vim:223 | |
Called 5 times | |
Total time: 0.000498 | |
Self time: 0.000076 | |
count total (s) self (s) | |
5 0.000498 0.000076 return airline#util#strchars(s:evaluate_tabline(a:tabline)) | |
FUNCTION airline#parts#iminsert() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/parts.vim:82 | |
Called 90 times | |
Total time: 0.001099 | |
Self time: 0.001099 | |
count total (s) self (s) | |
90 0.000430 if g:airline_detect_iminsert && &iminsert && exists('b:keymap_name') | |
return toupper(b:keymap_name) | |
90 0.000108 endif | |
90 0.000151 return '' | |
FUNCTION <SNR>71_add_section() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/default.vim:47 | |
Called 64 times | |
Total time: 0.003962 | |
Self time: 0.001253 | |
count total (s) self (s) | |
64 0.000171 let condition = (a:key is# "warning" || a:key is# "error") && (v:version == 704 && !has("patch1511")) | |
" i have no idea why the warning section needs special treatment, but it's | |
" needed to prevent separators from showing up | |
64 0.000770 0.000219 if ((a:key == 'error' || a:key == 'warning') && empty(s:get_section(a:context.winnr, a:key))) | |
return | |
64 0.000022 endif | |
64 0.000045 if condition | |
call a:builder.add_raw('%(') | |
64 0.000021 endif | |
64 0.002616 0.000458 call a:builder.add_section('airline_'.a:key, s:get_section(a:context.winnr, a:key)) | |
64 0.000043 if condition | |
call a:builder.add_raw('%)') | |
64 0.000018 endif | |
FUNCTION <SNR>54_CheckDefined() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/highlighter.vim:132 | |
Called 803 times | |
Total time: 0.017873 | |
Self time: 0.017873 | |
count total (s) self (s) | |
" Checks, whether the definition of the colors is valid and is not empty or NONE | |
" e.g. if the colors would expand to this: | |
" hi airline_c ctermfg=NONE ctermbg=NONE | |
" that means to clear that highlighting group, therefore, fallback to Normal | |
" highlighting group for the cterm values | |
" This only works, if the Normal highlighting group is actually defined, so | |
" return early, if it has been cleared | |
803 0.002625 if !exists("g:airline#highlighter#normal_fg_hi") | |
let g:airline#highlighter#normal_fg_hi = synIDattr(synIDtrans(hlID('Normal')), 'fg', 'cterm') | |
803 0.000497 endif | |
803 0.002734 if empty(g:airline#highlighter#normal_fg_hi) || g:airline#highlighter#normal_fg_hi < 0 | |
return a:colors | |
803 0.000420 endif | |
803 0.001908 for val in a:colors | |
803 0.001969 if !empty(val) && val !=# 'NONE' | |
803 0.001092 return a:colors | |
endif | |
endfor | |
" this adds the bold attribute to the term argument of the :hi command, | |
" but at least this makes sure, the group will be defined | |
let fg = g:airline#highlighter#normal_fg_hi | |
let bg = synIDattr(synIDtrans(hlID('Normal')), 'bg', 'cterm') | |
if bg < 0 | |
" in case there is no background color defined for Normal | |
let bg = a:colors[3] | |
endif | |
return a:colors[0:1] + [fg, bg] + [a:colors[4]] | |
FUNCTION airline#extensions#term#apply() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/term.vim:10 | |
Called 8 times | |
Total time: 0.000117 | |
Self time: 0.000117 | |
count total (s) self (s) | |
8 0.000027 if &buftype == 'terminal' || bufname('%')[0] == '!' | |
let spc = g:airline_symbols.space | |
call a:1.add_section('airline_a', spc.s:section_a.spc) | |
call a:1.add_section('airline_b', '') | |
call a:1.add_section('airline_term', spc.s:termname()) | |
call a:1.split() | |
call a:1.add_section('airline_y', '') | |
call a:1.add_section('airline_z', spc.airline#section#create_right(['linenr', 'maxlinenr'])) | |
return 1 | |
8 0.000004 endif | |
FUNCTION <SNR>73_OnInsertChar() | |
Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim:713 | |
Called 21 times | |
Total time: 0.006473 | |
Self time: 0.001652 | |
count total (s) self (s) | |
21 0.004910 0.000595 if !s:AllowedToCompleteInCurrentBuffer() | |
return | |
21 0.000035 endif | |
21 0.000230 call timer_stop( s:pollers.completion.id ) | |
21 0.000938 0.000432 call s:CloseCompletionMenu() | |
" TODO: Do we really need this here? | |
21 0.000184 call timer_stop( s:pollers.signature_help.id ) | |
FUNCTION airline#extensions#csv#apply() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/csv.vim:24 | |
Called 8 times | |
Total time: 0.000049 | |
Self time: 0.000049 | |
count total (s) self (s) | |
8 0.000024 if &ft ==# "csv" | |
call airline#extensions#prepend_to_section('gutter', g:airline_left_alt_sep.' %{airline#extensions#csv#get_column()}') | |
8 0.000004 endif | |
FUNCTION <SNR>54_GetHiCmd() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/highlighter.vim:164 | |
Called 142 times | |
Total time: 0.016834 | |
Self time: 0.016834 | |
count total (s) self (s) | |
" a:list needs to have 5 items! | |
142 0.000198 let res = '' | |
142 0.000194 let i = -1 | |
852 0.000930 while i < 4 | |
710 0.000917 let i += 1 | |
710 0.001824 let item = get(a:list, i, '') | |
710 0.000817 if item is '' | |
202 0.000191 continue | |
508 0.000349 endif | |
508 0.000523 if i == 0 | |
142 0.000413 let res .= ' guifg='.item | |
366 0.000368 elseif i == 1 | |
136 0.000291 let res .= ' guibg='.item | |
230 0.000241 elseif i == 2 | |
102 0.000333 let res .= ' ctermfg='.item | |
128 0.000115 elseif i == 3 | |
96 0.000228 let res .= ' ctermbg='.item | |
32 0.000032 elseif i == 4 | |
32 0.000172 let res .= printf(' gui=%s cterm=%s term=%s', item, item, item) | |
508 0.000353 endif | |
650 0.000654 endwhile | |
142 0.000220 return res | |
FUNCTION airline#extensions#tabline#buflist#list() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/buflist.vim:35 | |
Called 35 times | |
Total time: 0.000380 | |
Self time: 0.000380 | |
count total (s) self (s) | |
35 0.000220 if exists('s:current_buffer_list') | |
35 0.000113 return s:current_buffer_list | |
endif | |
let exclude_buffers = get(g:, 'airline#extensions#tabline#exclude_buffers', []) | |
let exclude_paths = get(g:, 'airline#extensions#tabline#excludes', []) | |
let exclude_preview = get(g:, 'airline#extensions#tabline#exclude_preview', 1) | |
let list = (exists('g:did_bufmru') && g:did_bufmru) ? BufMRUList() : range(1, bufnr("$")) | |
let buffers = [] | |
" If this is too slow, we can switch to a different algorithm. | |
" Basically branch 535 already does it, but since it relies on | |
" BufAdd autocommand, I'd like to avoid this if possible. | |
for nr in list | |
if buflisted(nr) | |
" Do not add to the bufferlist, if either | |
" 1) bufnr is exclude_buffers list | |
" 2) buffername matches one of exclude_paths patterns | |
" 3) buffer is a quickfix buffer | |
" 4) when excluding preview windows: | |
" 'bufhidden' == wipe | |
" 'buftype' == nofile | |
" 5) ignore buffers matching airline#extensions#tabline#ignore_bufadd_pat | |
" check buffer numbers first | |
if index(exclude_buffers, nr) >= 0 | |
continue | |
" check paths second | |
elseif !empty(exclude_paths) && s:ExcludePaths(nr, exclude_paths) | |
continue | |
" ignore buffers matching airline#extensions#tabline#ignore_bufadd_pat | |
elseif airline#util#ignore_buf(bufname(nr)) | |
continue | |
" check other types last | |
elseif s:ExcludeOther(nr, exclude_preview) | |
continue | |
endif | |
call add(buffers, nr) | |
endif | |
endfor | |
let s:current_buffer_list = buffers | |
return buffers | |
FUNCTION <SNR>56_get_hunks_gitgutter() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/hunks.vim:27 | |
Called 90 times | |
Total time: 0.000923 | |
Self time: 0.000923 | |
count total (s) self (s) | |
90 0.000644 if !get(g:, 'gitgutter_enabled', 0) || s:is_branch_empty() | |
90 0.000169 return '' | |
endif | |
return GitGutterGetHunkSummary() | |
FUNCTION 10() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/builder.vim:12 | |
Called 1 time | |
Total time: 0.000056 | |
Self time: 0.000042 | |
count total (s) self (s) | |
1 0.000017 let spc = empty(a:contents) ? '' : g:airline_symbols.space | |
1 0.000037 0.000023 call self.add_section(a:group, spc.a:contents.spc) | |
FUNCTION 13() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/builder.vim:25 | |
Called 1 time | |
Total time: 0.000007 | |
Self time: 0.000007 | |
count total (s) self (s) | |
1 0.000007 call insert(self._sections, [a:group, a:contents], a:position) | |
FUNCTION 15() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/builder.vim:33 | |
Called 1 time | |
Total time: 0.000013 | |
Self time: 0.000013 | |
count total (s) self (s) | |
1 0.000011 return len(self._sections) | |
FUNCTION 16() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/builder.vim:62 | |
Called 10 times | |
Total time: 0.048567 | |
Self time: 0.006683 | |
count total (s) self (s) | |
10 0.000016 let side = 1 | |
10 0.000015 let line = '' | |
10 0.000012 let i = 0 | |
10 0.000024 let length = len(self._sections) | |
10 0.000014 let split = 0 | |
10 0.000015 let is_empty = 0 | |
10 0.000015 let prev_group = '' | |
91 0.000119 while i < length | |
81 0.000164 let section = self._sections[i] | |
81 0.000135 let group = section[0] | |
81 0.000128 let contents = section[1] | |
81 0.000103 let pgroup = prev_group | |
81 0.001469 0.000648 let prev_group = airline#builder#get_prev_group(self._sections, i) | |
81 0.000168 if group ==# 'airline_c' && &buftype ==# 'terminal' && self._context.active | |
let group = 'airline_term' | |
81 0.000215 elseif group ==# 'airline_c' && !self._context.active && has_key(self._context, 'bufnr') | |
let group = 'airline_c'. self._context.bufnr | |
81 0.000176 elseif prev_group ==# 'airline_c' && !self._context.active && has_key(self._context, 'bufnr') | |
let prev_group = 'airline_c'. self._context.bufnr | |
81 0.000049 endif | |
81 0.000070 if is_empty | |
let prev_group = pgroup | |
81 0.000040 endif | |
81 0.001433 0.000550 let is_empty = s:section_is_empty(self, contents) | |
81 0.000065 if is_empty | |
" need to fix highlighting groups, since we | |
" have skipped a section, we actually need | |
" the previous previous group and so the | |
" seperator goes from the previous previous group | |
" to the current group | |
let pgroup = group | |
81 0.000032 endif | |
81 0.000075 if group == '' | |
let line .= contents | |
81 0.000080 elseif group == '|' | |
10 0.000009 let side = 0 | |
10 0.000020 let line .= contents | |
10 0.000009 let split = 1 | |
71 0.000043 else | |
71 0.000066 if prev_group == '' | |
10 0.000034 let line .= '%#'.group.'#' | |
61 0.000052 elseif split | |
10 0.000012 if !is_empty | |
10 0.005208 0.000103 let line .= s:get_transitioned_seperator(self, prev_group, group, side) | |
10 0.000006 endif | |
10 0.000010 let split = 0 | |
51 0.000019 else | |
51 0.000038 if !is_empty | |
51 0.032759 0.000339 let line .= s:get_seperator(self, prev_group, group, side) | |
51 0.000027 endif | |
71 0.000032 endif | |
71 0.003328 0.000673 let line .= is_empty ? '' : s:get_accented_line(self, group, contents) | |
81 0.000042 endif | |
81 0.000153 let i = i + 1 | |
91 0.000072 endwhile | |
10 0.000012 if !self._context.active | |
"let line = substitute(line, '%#airline_c#', '%#airline_c'.self._context.bufnr.'#', '') | |
let line = substitute(line, '%#.\{-}\ze#', '\0_inactive', 'g') | |
10 0.000003 endif | |
10 0.000016 return line | |
FUNCTION 17() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/builder.vim:18 | |
Called 1 time | |
Total time: 0.000082 | |
Self time: 0.000069 | |
count total (s) self (s) | |
1 0.000010 let self._first_title = a:first " lowest index | |
1 0.000007 let self._last_title = a:last " highest index | |
1 0.000007 let self._left_title = a:current " next index to add on the left | |
1 0.000009 let self._right_title = a:current + 1 " next index to add on the right | |
1 0.000036 0.000023 let self._left_position = self.get_position() " left end of titles | |
1 0.000007 let self._right_position = self._left_position " right end of the titles | |
FUNCTION 19() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/builder.vim:96 | |
Called 1 time | |
Total time: 0.010376 | |
Self time: 0.000326 | |
count total (s) self (s) | |
1 0.000016 if has_key(self, '_left_position') && self._first_title <= self._last_title | |
1 0.004230 0.000034 let self._remaining_space = &columns - s:tabline_evaluated_length(self._build()) | |
1 0.000005 let center_active = get(g:, 'airline#extensions#tabline#center_active', 0) | |
1 0.000073 0.000009 let sep_size = s:tabline_evaluated_length(self._context.left_sep) | |
1 0.000063 0.000010 let alt_sep_size = s:tabline_evaluated_length(self._context.left_alt_sep) | |
1 0.000026 0.000010 let outer_left_group = airline#builder#get_prev_group(self._sections, self._left_position) | |
1 0.000039 0.000011 let outer_right_group = airline#builder#get_next_group(self._sections, self._right_position) | |
1 0.000005 let overflow_marker = get(g:, 'airline#extensions#tabline#overflow_marker', g:airline_symbols.ellipsis) | |
1 0.000065 0.000010 let overflow_marker_size = s:tabline_evaluated_length(overflow_marker) | |
" Allow space for the markers before we begin filling in titles. | |
1 0.000002 if self._left_title > self._first_title | |
let self._remaining_space -= overflow_marker_size + s:get_separator_change(self.overflow_group, "", outer_left_group, sep_size, alt_sep_size) | |
1 0.000001 endif | |
1 0.000001 if self._left_title < self._last_title | |
let self._remaining_space -= overflow_marker_size + s:get_separator_change(self.overflow_group, "", outer_right_group, sep_size, alt_sep_size) | |
1 0.000001 endif | |
" Add the current title | |
1 0.000064 0.000007 let group = self.get_group(self._left_title) | |
1 0.000002 if self._left_title == self._first_title | |
1 0.000058 0.000018 let sep_change = s:get_separator_change(group, "", outer_left_group, sep_size, alt_sep_size) | |
else | |
let sep_change = s:get_separator_change(group, "", self.overflow_group, sep_size, alt_sep_size) | |
1 0.000001 endif | |
1 0.000002 if self._left_title == self._last_title | |
1 0.000386 0.000010 let sep_change += s:get_separator_change(group, "", outer_right_group, sep_size, alt_sep_size) | |
else | |
let sep_change += s:get_separator_change(group, "", self.overflow_group, sep_size, alt_sep_size) | |
1 0.000001 endif | |
1 0.000002 let left_group = group | |
1 0.000002 let right_group = group | |
1 0.000472 0.000011 let self._left_title -= self.try_insert_title(self._left_title, group, self._left_position, sep_change, 1) | |
1 0.000003 if get(g:, 'airline#extensions#tabline#current_first', 0) | |
" always have current title first | |
let self._left_position += 1 | |
1 0.000001 endif | |
1 0.000003 if !center_active && self._right_title <= self._last_title | |
" Add the title to the right | |
let group = self.get_group(self._right_title) | |
if self._right_title == self._last_title | |
let sep_change = s:get_separator_change_with_end(group, right_group, outer_right_group, self.overflow_group, sep_size, alt_sep_size) - overflow_marker_size | |
else | |
let sep_change = s:get_separator_change(group, right_group, self.overflow_group, sep_size, alt_sep_size) | |
endif | |
let right_group = group | |
let self._right_title += self.try_insert_title(self._right_title, group, self._right_position, sep_change, 1) | |
1 0.000001 endif | |
1 0.000002 while self._remaining_space > 0 | |
1 0.000001 let done = 0 | |
1 0.000002 if self._left_title >= self._first_title | |
" Insert next title to the left | |
let group = self.get_group(self._left_title) | |
if self._left_title == self._first_title | |
let sep_change = s:get_separator_change_with_end(group, left_group, outer_left_group, self.overflow_group, sep_size, alt_sep_size) - overflow_marker_size | |
else | |
let sep_change = s:get_separator_change(group, left_group, self.overflow_group, sep_size, alt_sep_size) | |
endif | |
let left_group = group | |
let done = self.try_insert_title(self._left_title, group, self._left_position, sep_change, 0) | |
let self._left_title -= done | |
1 0.000001 endif | |
" If center_active is set, this |if| operates as an independent |if|, | |
" otherwise as an |elif|. | |
1 0.000002 if self._right_title <= self._last_title && (center_active || !done) | |
" Insert next title to the right | |
let group = self.get_group(self._right_title) | |
if self._right_title == self._last_title | |
let sep_change = s:get_separator_change_with_end(group, right_group, outer_right_group, self.overflow_group, sep_size, alt_sep_size) - overflow_marker_size | |
else | |
let sep_change = s:get_separator_change(group, right_group, self.overflow_group, sep_size, alt_sep_size) | |
endif | |
let right_group = group | |
let done = self.try_insert_title(self._right_title, group, self._right_position, sep_change, 0) | |
let self._right_title += done | |
1 0.000001 endif | |
1 0.000001 if !done | |
1 0.000002 break | |
endif | |
1 0.000002 endwhile | |
1 0.000002 if self._left_title >= self._first_title | |
if get(g:, 'airline#extensions#tabline#current_first', 0) | |
let self._left_position -= 1 | |
endif | |
call self.insert_section(self.overflow_group, overflow_marker, self._left_position) | |
let self._right_position += 1 | |
1 0.000000 endif | |
1 0.000001 if self._right_title <= self._last_title | |
call self.insert_section(self.overflow_group, overflow_marker, self._right_position) | |
1 0.000000 endif | |
1 0.000000 endif | |
1 0.004711 0.000007 return self._build() | |
FUNCTION airline#highlighter#add_separator() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/highlighter.vim:220 | |
Called 61 times | |
Total time: 0.025094 | |
Self time: 0.000694 | |
count total (s) self (s) | |
61 0.000242 let s:separators[a:from.a:to] = [a:from, a:to, a:inverse] | |
61 0.024834 0.000434 call <sid>exec_separator({}, a:from, a:to, a:inverse, '') | |
FUNCTION <SNR>73_ShouldUseSignatureHelp() | |
Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim:933 | |
Called 3962 times | |
Total time: 1.193260 | |
Self time: 0.100923 | |
count total (s) self (s) | |
3962 1.186439 0.094102 return s:Pyeval( 'vimsupport.VimSupportsPopupWindows()' ) | |
FUNCTION <SNR>73_PollCompletion() | |
Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim:920 | |
Called 50 times | |
Total time: 0.042900 | |
Self time: 0.004192 | |
count total (s) self (s) | |
50 0.014618 0.001096 if !s:Pyeval( 'ycm_state.CompletionRequestReady()' ) | |
25 0.001008 let s:pollers.completion.id = timer_start( s:pollers.completion.wait_milliseconds, function( 's:PollCompletion' ) ) | |
25 0.000100 return | |
25 0.000055 endif | |
25 0.012824 0.000682 let s:completion = s:Pyeval( 'ycm_state.GetCompletionResponse()' ) | |
25 0.013664 0.000620 call s:Complete() | |
FUNCTION <SNR>70_get_accented_line() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/builder.vim:166 | |
Called 71 times | |
Total time: 0.002655 | |
Self time: 0.002655 | |
count total (s) self (s) | |
71 0.000089 if a:self._context.active | |
" active window | |
71 0.000087 let contents = [] | |
71 0.000373 let content_parts = split(a:contents, '__accent') | |
162 0.000190 for cpart in content_parts | |
91 0.000448 let accent = matchstr(cpart, '_\zs[^#]*\ze') | |
91 0.000179 call add(contents, cpart) | |
162 0.000107 endfor | |
71 0.000171 let line = join(contents, a:group) | |
71 0.000346 let line = substitute(line, '__restore__', a:group, 'g') | |
else | |
" inactive window | |
let line = substitute(a:contents, '%#__accent[^#]*#', '', 'g') | |
let line = substitute(line, '%#__restore__#', '', 'g') | |
71 0.000042 endif | |
71 0.000057 return line | |
FUNCTION airline#util#winwidth() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/util.vim:18 | |
Called 550 times | |
Total time: 0.009630 | |
Self time: 0.009630 | |
count total (s) self (s) | |
550 0.002902 let nr = get(a:000, 0, 0) | |
550 0.002233 if get(g:, 'airline_statusline_ontop', 0) | |
return &columns | |
550 0.000757 else | |
550 0.002004 return winwidth(nr) | |
endif | |
FUNCTION youcompleteme#GetErrorCount() | |
Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim:213 | |
Called 90 times | |
Total time: 0.009278 | |
Self time: 0.001198 | |
count total (s) self (s) | |
90 0.009216 0.001136 return s:Pyeval( 'ycm_state.GetErrorCount()' ) | |
FUNCTION airline#util#doautocmd() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/util.vim:156 | |
Called 11 times | |
Total time: 0.000553 | |
Self time: 0.000283 | |
count total (s) self (s) | |
11 0.000549 0.000279 exe printf("silent doautocmd %s User %s", s:nomodeline, a:event) | |
FUNCTION 32() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/buffers.vim:86 | |
Called 3 times | |
Total time: 0.000169 | |
Self time: 0.000083 | |
count total (s) self (s) | |
3 0.000011 let bufnum = get(self.buffers, a:i, -1) | |
3 0.000005 if bufnum == -1 | |
return '' | |
3 0.000003 endif | |
3 0.000120 0.000034 let group = airline#extensions#tabline#group_of_bufnr(self.tab_bufs, bufnum) | |
3 0.000007 if bufnum == bufnr('%') | |
3 0.000011 let s:current_modified = (group == 'airline_tabmod') ? 1 : 0 | |
3 0.000002 endif | |
3 0.000004 return group | |
FUNCTION 33() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/buffers.vim:109 | |
Called 1 time | |
Total time: 0.000159 | |
Self time: 0.000047 | |
count total (s) self (s) | |
1 0.000004 let bufnum = get(self.buffers, a:i, -1) | |
1 0.000067 0.000006 let group = self.get_group(a:i) | |
1 0.000057 0.000006 let pgroup = self.get_group(a:i - 1) | |
" always add a space when powerline_fonts are used | |
" or for the very first item | |
1 0.000003 if get(g:, 'airline_powerline_fonts', 0) || a:i == 0 | |
1 0.000002 let space = s:spc | |
else | |
let space= (pgroup == group ? s:spc : '') | |
1 0.000001 endif | |
1 0.000003 if get(g:, 'airline#extensions#tabline#buffer_idx_mode', 0) | |
if len(s:number_map) > 0 | |
return space. s:get_number(a:i) . '%(%{airline#extensions#tabline#get_buffer_name('.bufnum.')}%)' . s:spc | |
else | |
return '['.(a:i+1).s:spc.'%(%{airline#extensions#tabline#get_buffer_name('.bufnum.')}%)'.']' | |
endif | |
1 0.000001 else | |
1 0.000005 return space.'%(%{airline#extensions#tabline#get_buffer_name('.bufnum.')}%)'.s:spc | |
endif | |
FUNCTION <SNR>76_evaluate_tabline() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/builder.vim:209 | |
Called 5 times | |
Total time: 0.000398 | |
Self time: 0.000258 | |
count total (s) self (s) | |
5 0.000011 let tabline = a:tabline | |
5 0.000200 0.000060 let tabline = substitute(tabline, '%{\([^}]\+\)}', '\=eval(submatch(1))', 'g') | |
5 0.000043 let tabline = substitute(tabline, '%#[^#]\+#', '', 'g') | |
5 0.000030 let tabline = substitute(tabline, '%(\([^)]\+\)%)', '\1', 'g') | |
5 0.000023 let tabline = substitute(tabline, '%\d\+[TX]', '', 'g') | |
5 0.000018 let tabline = substitute(tabline, '%=', '', 'g') | |
5 0.000019 let tabline = substitute(tabline, '%\d*\*', '', 'g') | |
5 0.000025 if has('tablineat') | |
let tabline = substitute(tabline, '%@[^@]\+@', '', 'g') | |
5 0.000005 endif | |
5 0.000006 return tabline | |
FUNCTION <SNR>73_OnDeleteChar() | |
Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim:726 | |
Called 3 times | |
Total time: 0.001052 | |
Self time: 0.000316 | |
count total (s) self (s) | |
3 0.000880 0.000144 if !s:AllowedToCompleteInCurrentBuffer() | |
return a:key | |
3 0.000006 endif | |
3 0.000042 call timer_stop( s:pollers.completion.id ) | |
" | |
" TODO: Do we really need this here? | |
3 0.000029 call timer_stop( s:pollers.signature_help.id ) | |
3 0.000019 if pumvisible() | |
2 0.000029 return "\<C-y>" . a:key | |
1 0.000002 endif | |
1 0.000005 return a:key | |
FUNCTION airline#extensions#tabline#get_buffer_name() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/tabline.vim:194 | |
Called 34 times | |
Total time: 0.007488 | |
Self time: 0.001825 | |
count total (s) self (s) | |
34 0.001021 0.000665 let buffers = a:0 ? a:1 : airline#extensions#tabline#buflist#list() | |
34 0.000225 let formatter = get(g:, 'airline#extensions#tabline#formatter', 'default') | |
34 0.006189 0.000882 return airline#extensions#tabline#formatters#{formatter}#format(a:nr, buffers) | |
FUNCTION <SNR>50_invoke_funcrefs() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline.vim:177 | |
Called 8 times | |
Total time: 0.047151 | |
Self time: 0.000267 | |
count total (s) self (s) | |
8 0.000157 0.000038 let builder = airline#builder#new(a:context) | |
8 0.007086 0.000079 let err = airline#util#exec_funcrefs(a:funcrefs + s:core_funcrefs, builder, a:context) | |
8 0.000005 if err == 1 | |
8 0.039802 0.000044 let a:context.line = builder.build() | |
8 0.000024 let s:contexts[a:context.winnr] = a:context | |
8 0.000020 let option = get(g:, 'airline_statusline_ontop', 0) ? '&tabline' : '&statusline' | |
8 0.000048 call setwinvar(a:context.winnr, option, '%!airline#statusline('.a:context.winnr.')') | |
8 0.000003 endif | |
FUNCTION airline#mode_changed() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline.vim:279 | |
Called 7 times | |
Total time: 0.000120 | |
Self time: 0.000084 | |
count total (s) self (s) | |
" airline#visual_active | |
" Boolean: for when to get visual wordcount | |
" needed for the wordcount extension | |
7 0.000044 let g:airline#visual_active = (mode() =~? '[vs]') | |
7 0.000068 0.000032 call airline#update_tabline() | |
FUNCTION 11() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/builder.vim:17 | |
Called 67 times | |
Total time: 0.000220 | |
Self time: 0.000220 | |
count total (s) self (s) | |
67 0.000201 call add(self._sections, [a:group, a:contents]) | |
FUNCTION <SNR>38_Highlight_Matching_Pair() | |
Defined: /usr/share/vim/vim81/plugin/matchparen.vim:39 | |
Called 51 times | |
Total time: 0.029845 | |
Self time: 0.029845 | |
count total (s) self (s) | |
" Remove any previous match. | |
51 0.000699 if exists('w:paren_hl_on') && w:paren_hl_on | |
6 0.000067 silent! call matchdelete(3) | |
6 0.000037 let w:paren_hl_on = 0 | |
51 0.000111 endif | |
" Avoid that we remove the popup menu. | |
" Return when there are no colors (looks like the cursor jumps). | |
51 0.001178 if pumvisible() || (&t_Co < 8 && !has("gui_running")) | |
return | |
51 0.000092 endif | |
" Get the character under the cursor and check if it's in 'matchpairs'. | |
51 0.000463 let c_lnum = line('.') | |
51 0.000317 let c_col = col('.') | |
51 0.000184 let before = 0 | |
51 0.000405 let text = getline(c_lnum) | |
51 0.002243 let matches = matchlist(text, '\(.\)\=\%'.c_col.'c\(.\=\)') | |
51 0.000340 if empty(matches) | |
let [c_before, c] = ['', ''] | |
51 0.000132 else | |
51 0.000669 let [c_before, c] = matches[1:2] | |
51 0.000129 endif | |
51 0.001836 let plist = split(&matchpairs, '.\zs[:,]') | |
51 0.000486 let i = index(plist, c) | |
51 0.000193 if i < 0 | |
" not found, in Insert mode try character before the cursor | |
50 0.000497 if c_col > 1 && (mode() == 'i' || mode() == 'R') | |
50 0.000393 let before = strlen(c_before) | |
50 0.000204 let c = c_before | |
50 0.000315 let i = index(plist, c) | |
50 0.000096 endif | |
50 0.000165 if i < 0 | |
" not found, nothing to do | |
36 0.000107 return | |
14 0.000027 endif | |
15 0.000027 endif | |
" Figure out the arguments for searchpairpos(). | |
15 0.000053 if i % 2 == 0 | |
8 0.000030 let s_flags = 'nW' | |
8 0.000056 let c2 = plist[i + 1] | |
7 0.000017 else | |
7 0.000037 let s_flags = 'nbW' | |
7 0.000035 let c2 = c | |
7 0.000069 let c = plist[i - 1] | |
15 0.000029 endif | |
15 0.000051 if c == '[' | |
let c = '\[' | |
let c2 = '\]' | |
15 0.000027 endif | |
" Find the match. When it was just before the cursor move it there for a | |
" moment. | |
15 0.000051 if before > 0 | |
14 0.000150 let has_getcurpos = exists("*getcurpos") | |
14 0.000049 if has_getcurpos | |
" getcurpos() is more efficient but doesn't exist before 7.4.313. | |
14 0.000133 let save_cursor = getcurpos() | |
else | |
let save_cursor = winsaveview() | |
14 0.000024 endif | |
14 0.000159 call cursor(c_lnum, c_col - before) | |
15 0.000030 endif | |
15 0.000224 if !has("syntax") || !exists("g:syntax_on") | |
let s_skip = "0" | |
15 0.000033 else | |
" Build an expression that detects whether the current cursor position is | |
" in certain syntax types (string, comment, etc.), for use as | |
" searchpairpos()'s skip argument. | |
" We match "escape" for special items, such as lispEscapeSpecial. | |
15 0.000191 let s_skip = '!empty(filter(map(synstack(line("."), col(".")), ''synIDattr(v:val, "name")''), ' . '''v:val =~? "string\\|character\\|singlequote\\|escape\\|comment"''))' | |
" If executing the expression determines that the cursor is currently in | |
" one of the syntax types, then we want searchpairpos() to find the pair | |
" within those syntax types (i.e., not skip). Otherwise, the cursor is | |
" outside of the syntax types and s_skip should keep its value so we skip | |
" any matching pair inside the syntax types. | |
" Catch if this throws E363: pattern uses more memory than 'maxmempattern'. | |
15 0.000052 try | |
15 0.005970 execute 'if ' . s_skip . ' | let s_skip = "0" | endif' | |
catch /^Vim\%((\a\+)\)\=:E363/ | |
" We won't find anything, so skip searching, should keep Vim responsive. | |
return | |
15 0.000042 endtry | |
15 0.000028 endif | |
" Limit the search to lines visible in the window. | |
15 0.000141 let stoplinebottom = line('w$') | |
15 0.000094 let stoplinetop = line('w0') | |
15 0.000062 if i % 2 == 0 | |
8 0.000040 let stopline = stoplinebottom | |
7 0.000015 else | |
7 0.000038 let stopline = stoplinetop | |
15 0.000025 endif | |
" Limit the search time to 300 msec to avoid a hang on very long lines. | |
" This fails when a timeout is not supported. | |
15 0.000109 if mode() == 'i' || mode() == 'R' | |
14 0.000202 let timeout = exists("b:matchparen_insert_timeout") ? b:matchparen_insert_timeout : g:matchparen_insert_timeout | |
1 0.000002 else | |
1 0.000013 let timeout = exists("b:matchparen_timeout") ? b:matchparen_timeout : g:matchparen_timeout | |
15 0.000028 endif | |
15 0.000039 try | |
15 0.003785 let [m_lnum, m_col] = searchpairpos(c, '', c2, s_flags, s_skip, stopline, timeout) | |
catch /E118/ | |
" Can't use the timeout, restrict the stopline a bit more to avoid taking | |
" a long time on closed folds and long lines. | |
" The "viewable" variables give a range in which we can scroll while | |
" keeping the cursor at the same position. | |
" adjustedScrolloff accounts for very large numbers of scrolloff. | |
let adjustedScrolloff = min([&scrolloff, (line('w$') - line('w0')) / 2]) | |
let bottom_viewable = min([line('$'), c_lnum + &lines - adjustedScrolloff - 2]) | |
let top_viewable = max([1, c_lnum-&lines+adjustedScrolloff + 2]) | |
" one of these stoplines will be adjusted below, but the current values are | |
" minimal boundaries within the current window | |
if i % 2 == 0 | |
if has("byte_offset") && has("syntax_items") && &smc > 0 | |
let stopbyte = min([line2byte("$"), line2byte(".") + col(".") + &smc * 2]) | |
let stopline = min([bottom_viewable, byte2line(stopbyte)]) | |
else | |
let stopline = min([bottom_viewable, c_lnum + 100]) | |
endif | |
let stoplinebottom = stopline | |
else | |
if has("byte_offset") && has("syntax_items") && &smc > 0 | |
let stopbyte = max([1, line2byte(".") + col(".") - &smc * 2]) | |
let stopline = max([top_viewable, byte2line(stopbyte)]) | |
else | |
let stopline = max([top_viewable, c_lnum - 100]) | |
endif | |
let stoplinetop = stopline | |
endif | |
let [m_lnum, m_col] = searchpairpos(c, '', c2, s_flags, s_skip, stopline) | |
15 0.000044 endtry | |
15 0.000056 if before > 0 | |
14 0.000048 if has_getcurpos | |
14 0.000147 call setpos('.', save_cursor) | |
else | |
call winrestview(save_cursor) | |
14 0.000025 endif | |
15 0.000026 endif | |
" If a match is found setup match highlighting. | |
15 0.000108 if m_lnum > 0 && m_lnum >= stoplinetop && m_lnum <= stoplinebottom | |
7 0.000058 if exists('*matchaddpos') | |
7 0.000314 call matchaddpos('MatchParen', [[c_lnum, c_col - before], [m_lnum, m_col]], 10, 3) | |
else | |
exe '3match MatchParen /\(\%' . c_lnum . 'l\%' . (c_col - before) . 'c\)\|\(\%' . m_lnum . 'l\%' . m_col . 'c\)/' | |
7 0.000015 endif | |
7 0.000051 let w:paren_hl_on = 1 | |
15 0.000027 endif | |
FUNCTION airline#extensions#tabline#new_builder() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/tabline.vim:200 | |
Called 1 time | |
Total time: 0.000318 | |
Self time: 0.000156 | |
count total (s) self (s) | |
1 0.000045 let builder_context = { 'active' : 1, 'tabline' : 1, 'right_sep' : get(g:, 'airline#extensions#tabline#right_sep' , g:airline_right_sep), 'right_alt_sep' : get(g:, 'airline#extensions#tabline#right_alt_sep', g:airline_right_alt_sep), } | |
1 0.000011 if get(g:, 'airline_powerline_fonts', 0) | |
let builder_context.left_sep = get(g:, 'airline#extensions#tabline#left_sep' , g:airline_left_sep) | |
let builder_context.left_alt_sep = get(g:, 'airline#extensions#tabline#left_alt_sep' , g:airline_left_alt_sep) | |
1 0.000004 else | |
1 0.000016 let builder_context.left_sep = get(g:, 'airline#extensions#tabline#left_sep' , ' ') | |
1 0.000014 let builder_context.left_alt_sep = get(g:, 'airline#extensions#tabline#left_alt_sep' , '|') | |
1 0.000002 endif | |
1 0.000197 0.000035 return airline#extensions#tabline#builder#new(builder_context) | |
FUNCTION airline#util#shorten() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/util.vim:27 | |
Called 180 times | |
Total time: 0.010941 | |
Self time: 0.007051 | |
count total (s) self (s) | |
180 0.006993 0.003103 if airline#util#winwidth() < a:winwidth && len(split(a:text, '\zs')) > a:minwidth | |
if get(a:000, 0, 0) | |
" shorten from tail | |
return '…'.matchstr(a:text, '.\{'.a:minwidth.'}$') | |
else | |
" shorten from beginning of string | |
return matchstr(a:text, '^.\{'.a:minwidth.'}').'…' | |
endif | |
180 0.000237 else | |
180 0.000444 return a:text | |
endif | |
FUNCTION airline#extensions#tabline#add_label() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/tabline.vim:238 | |
Called 1 time | |
Total time: 0.000114 | |
Self time: 0.000058 | |
count total (s) self (s) | |
1 0.000011 if get(g:, 'airline#extensions#tabline#show_tab_type', 1) | |
1 0.000096 0.000040 call a:dict.add_section_spaced('airline_tablabel'. (a:right ? '_right' : ''), get(g:, 'airline#extensions#tabline#'.a:type.'_label', a:type)) | |
1 0.000003 endif | |
FUNCTION airline#extensions#default#apply() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/default.vim:79 | |
Called 8 times | |
Total time: 0.005254 | |
Self time: 0.000351 | |
count total (s) self (s) | |
8 0.000013 let winnr = a:context.winnr | |
8 0.000010 let active = a:context.active | |
8 0.000075 0.000054 if airline#util#getwinvar(winnr, 'airline_render_left', active || (!active && !g:airline_inactive_collapse)) | |
8 0.001565 0.000055 call s:build_sections(a:builder, a:context, s:layout[0]) | |
else | |
let text = s:get_section(winnr, 'c') | |
if empty(text) | |
let text = ' %f%m ' | |
endif | |
call a:builder.add_section('airline_c'.(a:context.bufnr), text) | |
8 0.000005 endif | |
8 0.000267 0.000056 call a:builder.split(s:get_section(winnr, 'gutter', '', '')) | |
8 0.000061 0.000044 if airline#util#getwinvar(winnr, 'airline_render_right', 1) | |
8 0.003190 0.000046 call s:build_sections(a:builder, a:context, s:layout[1]) | |
8 0.000004 endif | |
8 0.000004 return 1 | |
FUNCTION <SNR>73_Pyeval() | |
Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim:79 | |
Called 8207 times | |
Total time: 1.479994 | |
Self time: 1.479994 | |
count total (s) self (s) | |
8207 0.043163 if s:using_python3 | |
8207 1.413939 return py3eval( a:eval_string ) | |
endif | |
return pyeval( a:eval_string ) | |
FUNCTION <SNR>19_airline_refresh() | |
Defined: ~/.vim/bundle/vim-airline/plugin/airline.vim:206 | |
Called 4 times | |
Total time: 0.206704 | |
Self time: 0.000839 | |
count total (s) self (s) | |
" a:1, fast refresh, do not reload the theme | |
4 0.000050 let fast=!empty(get(a:000, 0, 0)) | |
4 0.000033 if !exists("#airline") | |
" disabled | |
return | |
4 0.000006 endif | |
4 0.000319 0.000077 call airline#util#doautocmd('AirlineBeforeRefresh') | |
4 0.000673 0.000082 call airline#highlighter#reset_hlcache() | |
4 0.000025 if !fast | |
4 0.182253 0.000478 call airline#load_theme() | |
4 0.000001 endif | |
4 0.023265 0.000026 call airline#update_statusline() | |
4 0.000044 0.000026 call airline#update_tabline() | |
FUNCTION airline#extensions#tabline#formatters#unique_tail_improved#format() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/formatters/unique_tail_improved.vim:8 | |
Called 34 times | |
Total time: 0.005307 | |
Self time: 0.000867 | |
count total (s) self (s) | |
34 0.000158 if len(a:buffers) <= 1 " don't need to compare bufnames if has less than one buffer opened | |
34 0.005112 0.000672 return airline#extensions#tabline#formatters#default#format(a:bufnr, a:buffers) | |
endif | |
let curbuf_tail = fnamemodify(bufname(a:bufnr), ':t') | |
let do_deduplicate = 0 | |
let path_tokens = {} | |
for nr in a:buffers | |
let name = bufname(nr) | |
if !empty(name) && nr != a:bufnr && fnamemodify(name, ':t') == curbuf_tail " only perform actions if curbuf_tail isn't unique | |
let do_deduplicate = 1 | |
let tokens = reverse(split(substitute(fnamemodify(name, ':p:h'), '\\', '/', 'g'), '/')) | |
let token_index = 0 | |
for token in tokens | |
if token == '' | continue | endif | |
if token == '.' | break | endif | |
if !has_key(path_tokens, token_index) | |
let path_tokens[token_index] = {} | |
endif | |
let path_tokens[token_index][token] = 1 | |
let token_index += 1 | |
endfor | |
endif | |
endfor | |
if do_deduplicate == 1 | |
let path = [] | |
let token_index = 0 | |
for token in reverse(split(substitute(fnamemodify(bufname(a:bufnr), ':p:h'), '\\', '/', 'g'), '/')) | |
if token == '.' | break | endif | |
let duplicated = 0 | |
let uniq = 1 | |
let single = 1 | |
if has_key(path_tokens, token_index) | |
let duplicated = 1 | |
if len(keys(path_tokens[token_index])) > 1 | let single = 0 | endif | |
if has_key(path_tokens[token_index], token) | let uniq = 0 | endif | |
endif | |
call insert(path, {'token': token, 'duplicated': duplicated, 'uniq': uniq, 'single': single}) | |
let token_index += 1 | |
endfor | |
let buf_name = [curbuf_tail] | |
let has_uniq = 0 | |
let has_skipped = 0 | |
for token1 in reverse(path) | |
if !token1['duplicated'] && len(buf_name) > 1 | |
call insert(buf_name, s:skip_symbol) | |
let has_skipped = 0 | |
break | |
endif | |
if has_uniq == 1 | |
call insert(buf_name, s:skip_symbol) | |
let has_skipped = 0 | |
break | |
endif | |
if token1['uniq'] == 0 && token1['single'] == 1 | |
let has_skipped = 1 | |
else | |
if has_skipped == 1 | |
call insert(buf_name, s:skip_symbol) | |
let has_skipped = 0 | |
endif | |
call insert(buf_name, token1['token']) | |
endif | |
if token1['uniq'] == 1 | |
let has_uniq = 1 | |
endif | |
endfor | |
if has_skipped == 1 | |
call insert(buf_name, s:skip_symbol) | |
endif | |
return airline#extensions#tabline#formatters#default#wrap_name(a:bufnr, join(buf_name, '/')) | |
else | |
return airline#extensions#tabline#formatters#default#format(a:bufnr, a:buffers) | |
endif | |
FUNCTION airline#highlighter#get_highlight() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/highlighter.vim:67 | |
Called 1577 times | |
Total time: 0.184360 | |
Self time: 0.087802 | |
count total (s) self (s) | |
1577 0.019896 let reverse = get(g:, 'airline_gui_mode', '') ==# 'gui' ? synIDattr(synIDtrans(hlID(a:group)), 'reverse', 'gui') : synIDattr(synIDtrans(hlID(a:group)), 'reverse', 'cterm')|| synIDattr(synIDtrans(hlID(a:group)), 'reverse', 'term') | |
1577 0.005355 if get(g:, 'airline_highlighting_cache', 0) && has_key(s:hl_groups, a:group) | |
let res = s:hl_groups[a:group] | |
return reverse ? [ res[1], res[0], res[3], res[2], res[4] ] : res | |
1577 0.001184 else | |
1577 0.053973 0.009769 let fg = s:get_syn(a:group, 'fg') | |
1577 0.049282 0.008950 let bg = s:get_syn(a:group, 'bg') | |
1577 0.008972 let bold = synIDattr(synIDtrans(hlID(a:group)), 'bold') | |
1577 0.001541 if reverse | |
let res = s:get_array(bg, fg, bold ? ['bold'] : a:000) | |
1577 0.001111 else | |
1577 0.022991 0.010969 let res = s:get_array(fg, bg, bold ? ['bold'] : a:000) | |
1577 0.000949 endif | |
1577 0.000886 endif | |
1577 0.004116 let s:hl_groups[a:group] = res | |
1577 0.001388 return res | |
FUNCTION airline#util#wrap() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/util.vim:41 | |
Called 720 times | |
Total time: 0.010138 | |
Self time: 0.008798 | |
count total (s) self (s) | |
720 0.005652 0.004312 if a:minwidth > 0 && airline#util#winwidth() < a:minwidth | |
return '' | |
720 0.000878 endif | |
720 0.001712 return a:text | |
FUNCTION <SNR>73_OnCompleteChanged() | |
Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim:576 | |
Called 29 times | |
Total time: 0.017439 | |
Self time: 0.001243 | |
count total (s) self (s) | |
29 0.004994 0.000582 if !s:AllowedToCompleteInCurrentBuffer() | |
return | |
29 0.000035 endif | |
29 0.012269 0.000485 call s:UpdateSignatureHelp() | |
FUNCTION airline#extensions#ycm#get_error_count() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/ycm.vim:15 | |
Called 90 times | |
Total time: 0.013348 | |
Self time: 0.004070 | |
count total (s) self (s) | |
90 0.001164 if exists(':YcmDiag') && exists("*youcompleteme#GetErrorCount") | |
90 0.010687 0.001409 let cnt = youcompleteme#GetErrorCount() | |
90 0.000422 if cnt != 0 | |
return s:error_symbol.cnt | |
90 0.000137 endif | |
90 0.000163 endif | |
90 0.000172 return '' | |
FUNCTION airline#extensions#tabline#get() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/tabline.vim:145 | |
Called 33 times | |
Total time: 0.027763 | |
Self time: 0.003168 | |
count total (s) self (s) | |
33 0.000361 let show_buffers = get(g:, 'airline#extensions#tabline#show_buffers', 1) | |
33 0.000187 let show_tabs = get(g:, 'airline#extensions#tabline#show_tabs', 1) | |
33 0.000167 let curtabcnt = tabpagenr('$') | |
33 0.000139 if curtabcnt != s:current_tabcnt | |
let s:current_tabcnt = curtabcnt | |
call airline#extensions#tabline#tabs#invalidate() | |
call airline#extensions#tabline#buffers#invalidate() | |
call airline#extensions#tabline#ctrlspace#invalidate() | |
call airline#extensions#tabline#tabws#invalidate() | |
33 0.000051 endif | |
33 0.000242 if !exists('#airline#BufAdd#*') | |
autocmd airline BufAdd * call <sid>update_tabline() | |
33 0.000045 endif | |
33 0.000074 if s:ctrlspace | |
return airline#extensions#tabline#ctrlspace#get() | |
33 0.000088 elseif s:tabws | |
return airline#extensions#tabline#tabws#get() | |
33 0.000138 elseif show_buffers && curtabcnt == 1 || !show_tabs | |
33 0.025236 0.000641 return airline#extensions#tabline#buffers#get() | |
else | |
return airline#extensions#tabline#tabs#get() | |
endif | |
FUNCTION airline#builder#get_prev_group() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/builder.vim:37 | |
Called 82 times | |
Total time: 0.000837 | |
Self time: 0.000837 | |
count total (s) self (s) | |
82 0.000154 let x = a:i - 1 | |
92 0.000109 while x >= 0 | |
81 0.000169 let group = a:sections[x][0] | |
81 0.000121 if group != '' && group != '|' | |
71 0.000075 return group | |
10 0.000008 endif | |
10 0.000013 let x = x - 1 | |
21 0.000019 endwhile | |
11 0.000014 return '' | |
FUNCTION airline#util#getwinvar() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/util.vim:70 | |
Called 120 times | |
Total time: 0.000276 | |
Self time: 0.000276 | |
count total (s) self (s) | |
120 0.000243 return getwinvar(a:winnr, a:key, a:def) | |
FUNCTION airline#extensions#po#apply() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/po.vim:51 | |
Called 8 times | |
Total time: 0.000050 | |
Self time: 0.000050 | |
count total (s) self (s) | |
8 0.000021 if &ft ==# 'po' | |
call airline#extensions#prepend_to_section('z', '%{airline#extensions#po#stats()}') | |
" Also reset the cache variable, if a window has been split, e.g. the winwidth changed | |
autocmd airline BufWritePost * unlet! b:airline_po_stats | |
autocmd airline WinEnter * call airline#extensions#po#on_winenter() | |
8 0.000005 endif | |
FUNCTION <SNR>70_get_transitioned_seperator() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/builder.vim:143 | |
Called 61 times | |
Total time: 0.026733 | |
Self time: 0.001639 | |
count total (s) self (s) | |
61 0.000061 let line = '' | |
61 0.000202 if get(a:self._context, 'tabline', 0) && get(g:, 'airline#extensions#tabline#alt_sep', 0) && a:group ==# 'airline_tabsel' && a:side | |
call airline#highlighter#add_separator(a:prev_group, a:group, 0) | |
let line .= '%#'.a:prev_group.'_to_'.a:group.'#' | |
let line .= a:self._context.right_sep.'%#'.a:group.'#' | |
61 0.000035 else | |
61 0.025530 0.000436 call airline#highlighter#add_separator(a:prev_group, a:group, a:side) | |
61 0.000188 let line .= '%#'.a:prev_group.'_to_'.a:group.'#' | |
61 0.000173 let line .= a:side ? a:self._context.left_sep : a:self._context.right_sep | |
61 0.000095 let line .= '%#'.a:group.'#' | |
61 0.000029 endif | |
61 0.000056 return line | |
FUNCTION airline#extensions#tagbar#currenttag() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/tagbar.vim:32 | |
Called 90 times | |
Total time: 0.007879 | |
Self time: 0.004720 | |
count total (s) self (s) | |
90 0.000437 if get(w:, 'airline_active', 0) | |
90 0.000222 if !s:init | |
try | |
" try to load the plugin, if filetypes are disabled, | |
" this will cause an error, so try only once | |
let a=tagbar#currenttag('%', '', '') | |
catch | |
endtry | |
unlet! a | |
let s:init=1 | |
90 0.000109 endif | |
" function tagbar#currenttag does not exist, if filetype is not enabled | |
90 0.000688 if s:airline_tagbar_last_lookup_time != localtime() && exists("*tagbar#currenttag") | |
18 0.003537 0.000378 let s:airline_tagbar_last_lookup_val = tagbar#currenttag('%s', '', s:flags) | |
18 0.000125 let s:airline_tagbar_last_lookup_time = localtime() | |
90 0.000105 endif | |
90 0.000336 return s:airline_tagbar_last_lookup_val | |
endif | |
return '' | |
FUNCTION airline#themes#patch() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/themes.vim:39 | |
Called 4 times | |
Total time: 0.003098 | |
Self time: 0.003098 | |
count total (s) self (s) | |
56 0.000244 for mode in keys(a:palette) | |
52 0.000168 if mode == 'accents' | |
4 0.000008 continue | |
48 0.000073 endif | |
48 0.000345 if !has_key(a:palette[mode], 'airline_warning') | |
let a:palette[mode]['airline_warning'] = [ '#000000', '#df5f00', 232, 166 ] | |
48 0.000077 endif | |
48 0.000298 if !has_key(a:palette[mode], 'airline_error') | |
let a:palette[mode]['airline_error'] = [ '#000000', '#990000', 232, 160 ] | |
48 0.000068 endif | |
48 0.000328 if !has_key(a:palette[mode], 'airline_term') | |
let a:palette[mode]['airline_term'] = [ '#9cffd3', '#202020', 85, 232] | |
48 0.000073 endif | |
52 0.000102 endfor | |
4 0.000047 let a:palette.accents = get(a:palette, 'accents', {}) | |
4 0.000030 let a:palette.accents.none = [ '', '', '', '', '' ] | |
4 0.000024 let a:palette.accents.bold = [ '', '', '', '', 'bold' ] | |
4 0.000026 let a:palette.accents.italic = [ '', '', '', '', 'italic' ] | |
4 0.000023 if !has_key(a:palette.accents, 'red') | |
let a:palette.accents.red = [ '#ff0000' , '' , 160 , '' ] | |
4 0.000006 endif | |
4 0.000020 if !has_key(a:palette.accents, 'green') | |
let a:palette.accents.green = [ '#008700' , '' , 22 , '' ] | |
4 0.000006 endif | |
4 0.000019 if !has_key(a:palette.accents, 'blue') | |
let a:palette.accents.blue = [ '#005fff' , '' , 27 , '' ] | |
4 0.000005 endif | |
4 0.000025 if !has_key(a:palette.accents, 'yellow') | |
let a:palette.accents.yellow = [ '#dfff00' , '' , 190 , '' ] | |
4 0.000007 endif | |
4 0.000021 if !has_key(a:palette.accents, 'orange') | |
let a:palette.accents.orange = [ '#df5f00' , '' , 166 , '' ] | |
4 0.000008 endif | |
4 0.000022 if !has_key(a:palette.accents, 'purple') | |
let a:palette.accents.purple = [ '#af00df' , '' , 128 , '' ] | |
4 0.000008 endif | |
FUNCTION <SNR>73_OnCompleteDone() | |
Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim:566 | |
Called 21 times | |
Total time: 0.019301 | |
Self time: 0.007886 | |
count total (s) self (s) | |
21 0.003341 0.000398 if !s:AllowedToCompleteInCurrentBuffer() | |
return | |
21 0.000032 endif | |
21 0.006869 exec s:python_command "ycm_state.OnCompleteDone()" | |
21 0.008969 0.000497 call s:UpdateSignatureHelp() | |
FUNCTION airline#extensions#ycm#get_warning_count() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/ycm.vim:27 | |
Called 90 times | |
Total time: 0.027909 | |
Self time: 0.004371 | |
count total (s) self (s) | |
90 0.001239 if exists(':YcmDiag') && exists("*youcompleteme#GetWarningCount") | |
90 0.025016 0.001478 let cnt = youcompleteme#GetWarningCount() | |
90 0.000473 if cnt != 0 | |
return s:warning_symbol.cnt.s:spc | |
90 0.000139 endif | |
90 0.000121 endif | |
90 0.000193 return '' | |
FUNCTION airline#highlighter#load_theme() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/highlighter.vim:205 | |
Called 4 times | |
Total time: 0.144378 | |
Self time: 0.000416 | |
count total (s) self (s) | |
4 0.000029 if pumvisible() | |
return | |
4 0.000009 endif | |
4 0.000089 for winnr in filter(range(1, winnr('$')), 'v:val != winnr()') | |
call airline#highlighter#highlight_modified_inactive(winbufnr(winnr)) | |
4 0.000011 endfor | |
4 0.072235 0.000107 call airline#highlighter#highlight(['inactive']) | |
4 0.000023 if getbufvar( bufnr('%'), '&modified' ) | |
4 0.071903 0.000069 call airline#highlighter#highlight(['normal', 'modified']) | |
else | |
call airline#highlighter#highlight(['normal']) | |
4 0.000001 endif | |
FUNCTION <SNR>73_AllowedToCompleteInBuffer() | |
Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim:475 | |
Called 101 times | |
Total time: 0.014619 | |
Self time: 0.013258 | |
count total (s) self (s) | |
101 0.001764 let buftype = getbufvar( a:buffer, '&buftype' ) | |
101 0.000836 if has_key( s:buftype_blacklist, buftype ) | |
return 0 | |
101 0.000207 endif | |
101 0.000895 let filetype = getbufvar( a:buffer, '&filetype' ) | |
101 0.003617 0.002256 if empty( filetype ) || s:DisableOnLargeFile( a:buffer ) | |
return 0 | |
101 0.000180 endif | |
101 0.002053 let whitelist_allows = type( g:ycm_filetype_whitelist ) != type( {} ) || has_key( g:ycm_filetype_whitelist, '*' ) || has_key( g:ycm_filetype_whitelist, filetype ) | |
101 0.001345 let blacklist_allows = type( g:ycm_filetype_blacklist ) != type( {} ) || !has_key( g:ycm_filetype_blacklist, filetype ) | |
101 0.000546 let allowed = whitelist_allows && blacklist_allows | |
101 0.000250 if allowed | |
101 0.000974 let s:previous_allowed_buffer_number = bufnr( a:buffer ) | |
101 0.000167 endif | |
101 0.000299 return allowed | |
FUNCTION <SNR>73_UpdateSignatureHelp() | |
Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim:1011 | |
Called 125 times | |
Total time: 0.066791 | |
Self time: 0.006077 | |
count total (s) self (s) | |
125 0.035530 0.002254 if !s:ShouldUseSignatureHelp() | |
return | |
125 0.000233 endif | |
125 0.030208 0.002770 call s:Pyeval( 'ycm_state.UpdateSignatureHelp( vim.eval( "s:signature_help" ) )' ) | |
FUNCTION <SNR>73_OnBlankLine() | |
Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim:892 | |
Called 25 times | |
Total time: 0.004928 | |
Self time: 0.000447 | |
count total (s) self (s) | |
25 0.004899 0.000418 return s:Pyeval( 'not vim.current.line or vim.current.line.isspace()' ) | |
FUNCTION <SNR>54_group_not_done() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/highlighter.vim:25 | |
Called 525 times | |
Total time: 0.005094 | |
Self time: 0.005094 | |
count total (s) self (s) | |
525 0.001929 if index(a:list, a:name) == -1 | |
405 0.001417 call add(a:list, a:name) | |
405 0.000539 return 1 | |
120 0.000070 else | |
120 0.000170 if &vbs | |
echomsg printf("airline: group: %s already done, skipping", a:name) | |
120 0.000051 endif | |
120 0.000094 return 0 | |
endif | |
FUNCTION airline#update_statusline_inactive() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline.vim:156 | |
Called 8 times | |
Total time: 0.000179 | |
Self time: 0.000163 | |
count total (s) self (s) | |
8 0.000051 0.000035 if airline#util#getwinvar(winnr(), 'airline_disabled', 0) | |
return | |
8 0.000003 endif | |
8 0.000010 for nr in a:range | |
if airline#util#getwinvar(nr, 'airline_disabled', 0) | |
continue | |
endif | |
call setwinvar(nr, 'airline_active', 0) | |
let context = { 'winnr': nr, 'active': 0, 'bufnr': winbufnr(nr) } | |
if get(g:, 'airline_inactive_alt_sep', 0) | |
call extend(context, { 'left_sep': g:airline_left_alt_sep, 'right_sep': g:airline_right_alt_sep }, 'keep') | |
endif | |
call s:invoke_funcrefs(context, s:inactive_funcrefs) | |
8 0.000009 endfor | |
FUNCTION airline#extensions#tabline#group_of_bufnr() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/tabline.vim:218 | |
Called 3 times | |
Total time: 0.000086 | |
Self time: 0.000086 | |
count total (s) self (s) | |
3 0.000010 let cur = bufnr('%') | |
3 0.000006 if cur == a:bufnr | |
3 0.000014 if g:airline_detect_modified && getbufvar(a:bufnr, '&modified') | |
3 0.000007 let group = 'airline_tabmod' | |
else | |
let group = 'airline_tabsel' | |
3 0.000002 endif | |
else | |
if g:airline_detect_modified && getbufvar(a:bufnr, '&modified') | |
let group = 'airline_tabmod_unsel' | |
elseif index(a:tab_bufs, a:bufnr) > -1 | |
let group = 'airline_tab' | |
else | |
let group = 'airline_tabhid' | |
endif | |
3 0.000003 endif | |
3 0.000005 return group | |
FUNCTION <SNR>70_get_seperator() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/builder.vim:158 | |
Called 51 times | |
Total time: 0.032420 | |
Self time: 0.000734 | |
count total (s) self (s) | |
51 0.010372 0.000314 if airline#builder#should_change_group(a:prev_group, a:group) | |
51 0.022027 0.000399 return s:get_transitioned_seperator(a:self, a:prev_group, a:group, a:side) | |
else | |
return a:side ? a:self._context.left_alt_sep : a:self._context.right_alt_sep | |
endif | |
FUNCTION gitgutter#all() | |
Defined: ~/.vim/bundle/vim-gitgutter/autoload/gitgutter.vim:5 | |
Called 4 times | |
Total time: 0.001504 | |
Self time: 0.000891 | |
count total (s) self (s) | |
4 0.000046 let visible = tabpagebuflist() | |
12 0.000187 for bufnr in range(1, bufnr('$') + 1) | |
8 0.000058 if buflisted(bufnr) | |
4 0.000106 let file = expand('#'.bufnr.':p') | |
4 0.000024 if !empty(file) | |
4 0.000036 if index(visible, bufnr) != -1 | |
4 0.000729 0.000116 call gitgutter#process_buffer(bufnr, a:force) | |
elseif a:force | |
call s:reset_tick(bufnr) | |
4 0.000004 endif | |
4 0.000007 endif | |
8 0.000020 endif | |
12 0.000024 endfor | |
FUNCTION airline#highlighter#highlight() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/highlighter.vim:243 | |
Called 15 times | |
Total time: 0.337752 | |
Self time: 0.047278 | |
count total (s) self (s) | |
15 0.000073 let bufnr = a:0 ? a:1 : '' | |
15 0.000100 let p = g:airline#themes#{g:airline_theme}#palette | |
" draw the base mode, followed by any overrides | |
15 0.000264 let mapped = map(a:modes, 'v:val == a:modes[0] ? v:val : a:modes[0]."_".v:val') | |
15 0.000068 let suffix = a:modes[0] == 'inactive' ? '_inactive' : '' | |
15 0.000042 let airline_grouplist = [] | |
15 0.000096 let buffers_in_tabpage = sort(tabpagebuflist()) | |
15 0.000063 if exists("*uniq") | |
15 0.000065 let buffers_in_tabpage = uniq(buffers_in_tabpage) | |
15 0.000018 endif | |
" mapped might be something like ['normal', 'normal_modified'] | |
" if a group is in both modes available, only define the second | |
" that is how this was done previously overwrite the previous definition | |
40 0.000095 for mode in reverse(mapped) | |
25 0.000176 if exists('g:airline#themes#{g:airline_theme}#palette[mode]') | |
25 0.000105 let dict = g:airline#themes#{g:airline_theme}#palette[mode] | |
439 0.000785 for kvp in items(dict) | |
414 0.000900 let mode_colors = kvp[1] | |
414 0.000697 let name = kvp[0] | |
414 0.001045 if name is# 'airline_c' && !empty(bufnr) && suffix is# '_inactive' | |
let name = 'airline_c'.bufnr | |
414 0.000248 endif | |
" do not re-create highlighting for buffers that are no longer visible | |
" in the current tabpage | |
414 0.002468 if name =~# 'airline_c\d\+' | |
let bnr = matchstr(name, 'airline_c\zs\d\+') + 0 | |
if bnr > 0 && index(buffers_in_tabpage, bnr) == -1 | |
continue | |
endif | |
414 0.001977 elseif (name =~# '_to_') || (name[0:10] is# 'airline_tab' && !empty(suffix)) | |
" group will be redefined below at exec_separator | |
" or is not needed for tabline with '_inactive' suffix | |
" since active flag is 1 for builder) | |
239 0.000211 continue | |
175 0.000098 endif | |
175 0.003471 0.001692 if s:group_not_done(airline_grouplist, name.suffix) | |
135 0.053639 0.001508 call airline#highlighter#exec(name.suffix, mode_colors) | |
175 0.000151 endif | |
525 0.001228 for accent in keys(s:accents) | |
350 0.000999 if !has_key(p.accents, accent) | |
continue | |
350 0.000245 endif | |
350 0.001233 let colors = copy(mode_colors) | |
350 0.001112 if p.accents[accent][0] != '' | |
175 0.000522 let colors[0] = p.accents[accent][0] | |
350 0.000272 endif | |
350 0.000728 if p.accents[accent][2] != '' | |
175 0.000414 let colors[2] = p.accents[accent][2] | |
350 0.000208 endif | |
350 0.000670 if len(colors) >= 5 | |
350 0.001218 let colors[4] = get(p.accents[accent], 4, '') | |
else | |
call add(colors, get(p.accents[accent], 4, '')) | |
350 0.000235 endif | |
350 0.007145 0.003830 if s:group_not_done(airline_grouplist, name.suffix.'_'.accent) | |
270 0.101251 0.003073 call airline#highlighter#exec(name.suffix.'_'.accent, colors) | |
350 0.000268 endif | |
525 0.000503 endfor | |
200 0.000161 endfor | |
25 0.000047 if empty(s:separators) | |
" nothing to be done | |
continue | |
25 0.000010 endif | |
" TODO: optimize this | |
299 0.000480 for sep in items(s:separators) | |
" we cannot check, that the group already exists, else the separators | |
" might not be correctly defined. But perhaps we can skip above groups | |
" that match the '_to_' name, because they would be redefined here... | |
274 0.138231 0.003160 call <sid>exec_separator(dict, sep[1][0], sep[1][1], sep[1][2], suffix) | |
299 0.000261 endfor | |
25 0.000014 endif | |
40 0.000038 endfor | |
FUNCTION airline#builder#get_next_group() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/builder.vim:49 | |
Called 1 time | |
Total time: 0.000028 | |
Self time: 0.000028 | |
count total (s) self (s) | |
1 0.000003 let x = a:i + 1 | |
1 0.000003 let l = len(a:sections) | |
2 0.000004 while x < l | |
2 0.000006 let group = a:sections[x][0] | |
2 0.000003 if group != '' && group != '|' | |
1 0.000002 return group | |
1 0.000001 endif | |
1 0.000002 let x = x + 1 | |
1 0.000001 endwhile | |
return '' | |
FUNCTION airline#parts#ffenc() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/parts.vim:108 | |
Called 90 times | |
Total time: 0.005045 | |
Self time: 0.005045 | |
count total (s) self (s) | |
90 0.000667 let expected = get(g:, 'airline#parts#ffenc#skip_expected_string', '') | |
90 0.000432 let bomb = &l:bomb ? '[BOM]' : '' | |
90 0.001771 let ff = strlen(&ff) ? '['.&ff.']' : '' | |
90 0.000961 if expected is# &fenc.bomb.ff | |
return '' | |
90 0.000133 else | |
90 0.000741 return &fenc.bomb.ff | |
endif | |
FUNCTION airline#util#ignore_buf() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/util.vim:124 | |
Called 90 times | |
Total time: 0.004959 | |
Self time: 0.004959 | |
count total (s) self (s) | |
90 0.001211 let pat = '\c\v'. get(g:, 'airline#ignore_bufadd_pat', ''). get(g:, 'airline#extensions#tabline#ignore_bufadd_pat', '!|defx|gundo|nerd_tree|startify|tagbar|term://|undotree|vimfiler') | |
90 0.003582 return match(a:name, pat) > -1 | |
FUNCTION tagbar#currenttag() | |
Defined: ~/.vim/bundle/tagbar/autoload/tagbar.vim:3344 | |
Called 18 times | |
Total time: 0.003159 | |
Self time: 0.001982 | |
count total (s) self (s) | |
" Indicate that the statusline functionality is being used. This prevents | |
" the CloseWindow() function from removing the autocommands. | |
18 0.000090 let s:statusline_in_use = 1 | |
18 0.000051 if a:0 > 0 | |
" also test for non-zero value for backwards compatibility | |
18 0.000278 let longsig = a:1 =~# 's' || (type(a:1) == type(0) && a:1 != 0) | |
18 0.000098 let fullpath = a:1 =~# 'f' | |
18 0.000083 let prototype = a:1 =~# 'p' | |
else | |
let longsig = 0 | |
let fullpath = 0 | |
let prototype = 0 | |
18 0.000025 endif | |
18 0.001282 0.000235 if !s:Init(1) | |
return a:default | |
18 0.000027 endif | |
18 0.000424 0.000294 let tag = s:GetNearbyTag(0, 1) | |
18 0.000077 if !empty(tag) | |
if prototype | |
return tag.getPrototype(1) | |
else | |
return printf(a:fmt, tag.str(longsig, fullpath)) | |
endif | |
18 0.000025 else | |
18 0.000057 return a:default | |
endif | |
FUNCTION <SNR>73_OnCursorMovedNormalMode() | |
Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim:755 | |
Called 1 time | |
Total time: 0.002001 | |
Self time: 0.001682 | |
count total (s) self (s) | |
1 0.000346 0.000027 if !s:AllowedToCompleteInCurrentBuffer() | |
return | |
1 0.000003 endif | |
1 0.001643 exec s:python_command "ycm_state.OnCursorMoved()" | |
FUNCTION <SNR>73_CloseCompletionMenu() | |
Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim:706 | |
Called 50 times | |
Total time: 0.001007 | |
Self time: 0.000874 | |
count total (s) self (s) | |
50 0.000270 if pumvisible() | |
8 0.000286 0.000153 call s:SendKeys( "\<C-e>" ) | |
50 0.000115 endif | |
FUNCTION airline#update_tabline() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline.vim:273 | |
Called 12 times | |
Total time: 0.000075 | |
Self time: 0.000075 | |
count total (s) self (s) | |
12 0.000034 if get(g:, 'airline_statusline_ontop', 0) | |
call airline#extensions#tabline#redraw() | |
12 0.000009 endif | |
FUNCTION airline#parts#get() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/parts.vim:49 | |
Called 90 times | |
Total time: 0.000736 | |
Self time: 0.000736 | |
count total (s) self (s) | |
90 0.000680 return get(s:parts, a:key, {}) | |
FUNCTION youcompleteme#GetWarningCount() | |
Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim:218 | |
Called 90 times | |
Total time: 0.023538 | |
Self time: 0.001263 | |
count total (s) self (s) | |
90 0.023470 0.001195 return s:Pyeval( 'ycm_state.GetWarningCount()' ) | |
FUNCTION airline#load_theme() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline.vim:39 | |
Called 4 times | |
Total time: 0.181775 | |
Self time: 0.000655 | |
count total (s) self (s) | |
4 0.000091 let g:airline_theme = get(g:, 'airline_theme', 'dark') | |
4 0.000065 if exists('*airline#themes#{g:airline_theme}#refresh') | |
call airline#themes#{g:airline_theme}#refresh() | |
4 0.000009 endif | |
4 0.000036 let palette = g:airline#themes#{g:airline_theme}#palette | |
4 0.003228 0.000130 call airline#themes#patch(palette) | |
4 0.000031 if exists('g:airline_theme_patch_func') | |
let Fn = function(g:airline_theme_patch_func) | |
call Fn(palette) | |
4 0.000007 endif | |
4 0.144511 0.000133 call airline#highlighter#load_theme() | |
4 0.009221 0.000038 call airline#extensions#load_theme() | |
4 0.024481 0.000020 call airline#update_statusline() | |
FUNCTION airline#parts#paste() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/parts.vim:63 | |
Called 90 times | |
Total time: 0.000541 | |
Self time: 0.000541 | |
count total (s) self (s) | |
90 0.000477 return g:airline_detect_paste && &paste ? g:airline_symbols.paste : '' | |
FUNCTION airline#update_statusline() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline.vim:127 | |
Called 8 times | |
Total time: 0.047700 | |
Self time: 0.000346 | |
count total (s) self (s) | |
8 0.000062 0.000038 if airline#util#getwinvar(winnr(), 'airline_disabled', 0) | |
return | |
8 0.000004 endif | |
8 0.000037 let range = filter(range(1, winnr('$')), 'v:val != winnr()') | |
" create inactive statusline | |
8 0.000221 0.000042 call airline#update_statusline_inactive(range) | |
8 0.000017 unlet! w:airline_render_left w:airline_render_right | |
8 0.000069 exe 'unlet! ' 'w:airline_section_'. join(s:sections, ' w:airline_section_') | |
" Now create the active statusline | |
8 0.000010 let w:airline_active = 1 | |
8 0.000030 let context = { 'winnr': winnr(), 'active': 1, 'bufnr': winbufnr(winnr()) } | |
8 0.047231 0.000080 call s:invoke_funcrefs(context, g:airline_statusline_funcrefs) | |
FUNCTION airline#update_statusline_focuslost() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline.vim:146 | |
Called 4 times | |
Total time: 0.000196 | |
Self time: 0.000196 | |
count total (s) self (s) | |
4 0.000059 if get(g:, 'airline_focuslost_inactive', 0) | |
let bufnr=bufnr('%') | |
call airline#highlighter#highlight_modified_inactive(bufnr) | |
call airline#highlighter#highlight(['inactive'], bufnr) | |
call airline#update_statusline_inactive(range(1, winnr('$'))) | |
4 0.000011 endif | |
FUNCTION airline#parts#readonly() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/parts.vim:89 | |
Called 90 times | |
Total time: 0.008512 | |
Self time: 0.003553 | |
count total (s) self (s) | |
" only consider regular buffers (e.g. ones that represent actual files, | |
" but not special ones like e.g. NERDTree) | |
90 0.006815 0.001856 if !empty(&buftype) || airline#util#ignore_buf(bufname('%')) | |
return '' | |
90 0.000119 endif | |
90 0.000460 if &readonly && !filereadable(bufname('%')) | |
return '[noperm]' | |
90 0.000124 else | |
90 0.000340 return &readonly ? g:airline_symbols.readonly : '' | |
endif | |
FUNCTION <SNR>73_RequestCompletion() | |
Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim:897 | |
Called 25 times | |
Total time: 0.098579 | |
Self time: 0.085444 | |
count total (s) self (s) | |
25 0.084153 exec s:python_command "ycm_state.SendCompletionRequest(" . "vimsupport.GetBoolValue( 's:force_semantic' ) )" | |
25 0.014299 0.001164 call s:PollCompletion() | |
FUNCTION airline#builder#should_change_group() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/builder.vim:130 | |
Called 52 times | |
Total time: 0.010389 | |
Self time: 0.001024 | |
count total (s) self (s) | |
52 0.000075 if a:group1 == a:group2 | |
return 0 | |
52 0.000030 endif | |
52 0.005214 0.000334 let color1 = airline#highlighter#get_highlight(a:group1) | |
52 0.004810 0.000325 let color2 = airline#highlighter#get_highlight(a:group2) | |
52 0.000049 if g:airline_gui_mode ==# 'gui' | |
52 0.000142 return color1[1] != color2[1] || color1[0] != color2[0] | |
else | |
return color1[3] != color2[3] || color1[2] != color2[2] | |
endif | |
FUNCTION airline#highlighter#exec() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/highlighter.vim:104 | |
Called 803 times | |
Total time: 0.233757 | |
Self time: 0.085625 | |
count total (s) self (s) | |
803 0.001480 if pumvisible() | |
return | |
803 0.000534 endif | |
803 0.001364 let colors = a:colors | |
803 0.001091 if s:is_win32term | |
let colors[2] = s:gui2cui(get(colors, 0, ''), get(colors, 2, '')) | |
let colors[3] = s:gui2cui(get(colors, 1, ''), get(colors, 3, '')) | |
803 0.000470 endif | |
803 0.111258 0.007131 let old_hi = airline#highlighter#get_highlight(a:group) | |
803 0.001546 if len(colors) == 4 | |
344 0.000791 call add(colors, '') | |
803 0.000514 endif | |
803 0.001125 if g:airline_gui_mode ==# 'gui' | |
803 0.003360 let new_hi = [colors[0], colors[1], '', '', colors[4]] | |
else | |
let new_hi = ['', '', printf("%s", colors[2]), printf("%s", colors[3]), colors[4]] | |
803 0.000500 endif | |
803 0.023759 0.005886 let colors = s:CheckDefined(colors) | |
803 0.014953 0.005655 if old_hi != new_hi || !s:hl_group_exists(a:group) | |
142 0.018327 0.001493 let cmd = printf('hi %s%s', a:group, s:GetHiCmd(colors)) | |
142 0.034404 exe cmd | |
142 0.000918 if has_key(s:hl_groups, a:group) | |
142 0.000570 let s:hl_groups[a:group] = colors | |
142 0.000133 endif | |
803 0.000454 endif | |
FUNCTION airline#extensions#whitespace#check() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/whitespace.vim:57 | |
Called 90 times | |
Total time: 0.026025 | |
Self time: 0.021036 | |
count total (s) self (s) | |
90 0.000789 let max_lines = get(g:, 'airline#extensions#whitespace#max_lines', 20000) | |
90 0.001070 if &readonly || !&modifiable || !s:enabled || line('$') > max_lines || get(b:, 'airline_whitespace_disabled', 0) | |
return '' | |
90 0.000118 endif | |
90 0.001077 let skip_check_ft = extend(s:skip_check_ft, get(g:, 'airline#extensions#whitespace#skip_indent_check_ft', {}), 'force') | |
90 0.000591 if !exists('b:airline_whitespace_check') | |
let b:airline_whitespace_check = '' | |
let checks = get(b:, 'airline_whitespace_checks', get(g:, 'airline#extensions#whitespace#checks', s:default_checks)) | |
let trailing = 0 | |
let check = 'trailing' | |
if index(checks, check) > -1 && index(get(skip_check_ft, &ft, []), check) < 0 | |
try | |
let regexp = get(g:, 'airline#extensions#whitespace#trailing_regexp', '\s$') | |
let trailing = search(regexp, 'nw') | |
catch | |
call airline#util#warning(printf('Whitespace: error occurred evaluating "%s"', regexp)) | |
echomsg v:exception | |
return '' | |
endtry | |
endif | |
let mixed = 0 | |
let check = 'indent' | |
if index(checks, check) > -1 && index(get(skip_check_ft, &ft, []), check) < 0 | |
let mixed = s:check_mixed_indent() | |
endif | |
let mixed_file = '' | |
let check = 'mixed-indent-file' | |
if index(checks, check) > -1 && index(get(skip_check_ft, &ft, []), check) < 0 | |
let mixed_file = s:check_mixed_indent_file() | |
endif | |
let long = 0 | |
if index(checks, 'long') > -1 && &tw > 0 | |
let long = search('\%>'.&tw.'v.\+', 'nw') | |
endif | |
let conflicts = 0 | |
if index(checks, 'conflicts') > -1 | |
let conflicts = s:conflict_marker() | |
endif | |
if trailing != 0 || mixed != 0 || long != 0 || !empty(mixed_file) || conflicts != 0 | |
let b:airline_whitespace_check = s:symbol | |
if strlen(s:symbol) > 0 | |
let space = (g:airline_symbols.space) | |
else | |
let space = '' | |
endif | |
if s:show_message | |
if trailing != 0 | |
let trailing_fmt = get(g:, 'airline#extensions#whitespace#trailing_format', '[%s]trailing') | |
let b:airline_whitespace_check .= space.printf(trailing_fmt, trailing) | |
endif | |
if mixed != 0 | |
let mixed_indent_fmt = get(g:, 'airline#extensions#whitespace#mixed_indent_format', '[%s]mixed-indent') | |
let b:airline_whitespace_check .= space.printf(mixed_indent_fmt, mixed) | |
endif | |
if long != 0 | |
let long_fmt = get(g:, 'airline#extensions#whitespace#long_format', '[%s]long') | |
let b:airline_whitespace_check .= space.printf(long_fmt, long) | |
endif | |
if !empty(mixed_file) | |
let mixed_indent_file_fmt = get(g:, 'airline#extensions#whitespace#mixed_indent_file_format', '[%s]mix-indent-file') | |
let b:airline_whitespace_check .= space.printf(mixed_indent_file_fmt, mixed_file) | |
endif | |
if conflicts != 0 | |
let conflicts_fmt = get(g:, 'airline#extensions#whitespace#conflicts_format', '[%s]conflicts') | |
let b:airline_whitespace_check .= space.printf(conflicts_fmt, conflicts) | |
endif | |
endif | |
endif | |
90 0.000119 endif | |
90 0.006378 0.001389 return airline#util#shorten(b:airline_whitespace_check, 120, 9) | |
FUNCTION <SNR>73_IdentifierFinishedOperations() | |
Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim:849 | |
Called 25 times | |
Total time: 0.014115 | |
Self time: 0.008959 | |
count total (s) self (s) | |
25 0.005579 0.000423 if !s:Pyeval( 'base.CurrentIdentifierFinished()' ) | |
22 0.000083 return | |
3 0.000006 endif | |
3 0.008287 exec s:python_command "ycm_state.OnCurrentIdentifierFinished()" | |
3 0.000047 let s:force_semantic = 0 | |
3 0.000053 let s:completion = s:default_completion | |
FUNCTION <SNR>73_InsideCommentOrString() | |
Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim:860 | |
Called 25 times | |
Total time: 0.007204 | |
Self time: 0.007204 | |
count total (s) self (s) | |
" Has to be col('.') -1 because col('.') doesn't exist at this point. We are | |
" in insert mode when this func is called. | |
25 0.006433 let syntax_group = synIDattr( synIDtrans( synID( line( '.' ), col( '.' ) - 1, 1 ) ), 'name') | |
25 0.000217 if stridx(syntax_group, 'Comment') > -1 | |
return 1 | |
25 0.000043 endif | |
25 0.000114 if stridx(syntax_group, 'String') > -1 | |
return 2 | |
25 0.000039 endif | |
25 0.000069 return 0 | |
FUNCTION <SNR>73_ClearSignatureHelp() | |
Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim:1021 | |
Called 2 times | |
Total time: 0.005123 | |
Self time: 0.000198 | |
count total (s) self (s) | |
2 0.004397 0.000050 if !s:ShouldUseSignatureHelp() | |
return | |
2 0.000006 endif | |
2 0.000032 call timer_stop( s:pollers.signature_help.id ) | |
2 0.000021 let s:signature_help = s:default_signature_help | |
2 0.000643 0.000065 call s:Pyeval( 'ycm_state.ClearSignatureHelp()' ) | |
FUNCTION <SNR>54_get_syn() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/highlighter.vim:37 | |
Called 3154 times | |
Total time: 0.084536 | |
Self time: 0.084536 | |
count total (s) self (s) | |
3154 0.007424 if !exists("g:airline_gui_mode") | |
let g:airline_gui_mode = airline#init#gui_mode() | |
3154 0.001787 endif | |
3154 0.003502 let color = '' | |
3154 0.012222 if hlexists(a:group) | |
3086 0.018634 let color = synIDattr(synIDtrans(hlID(a:group)), a:what, g:airline_gui_mode) | |
3154 0.001940 endif | |
3154 0.006571 if empty(color) || color == -1 | |
" should always exists | |
68 0.000481 let color = synIDattr(synIDtrans(hlID('Normal')), a:what, g:airline_gui_mode) | |
" however, just in case | |
68 0.000130 if empty(color) || color == -1 | |
let color = 'NONE' | |
68 0.000041 endif | |
3154 0.001684 endif | |
3154 0.003292 return color | |
FUNCTION airline#parts#spell() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/parts.vim:67 | |
Called 90 times | |
Total time: 0.004742 | |
Self time: 0.004742 | |
count total (s) self (s) | |
90 0.001941 let spelllang = g:airline_detect_spelllang ? printf(" [%s]", toupper(substitute(&spelllang, ',', '/', 'g'))) : '' | |
90 0.000343 if g:airline_detect_spell && &spell | |
let winwidth = airline#util#winwidth() | |
if winwidth >= 90 | |
return g:airline_symbols.spell . spelllang | |
elseif winwidth >= 70 | |
return g:airline_symbols.spell | |
else | |
return split(g:airline_symbols.spell, '\zs')[0] | |
endif | |
90 0.000116 endif | |
90 0.000174 return '' | |
FUNCTION 18() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/builder.vim:41 | |
Called 1 time | |
Total time: 0.000461 | |
Self time: 0.000060 | |
count total (s) self (s) | |
1 0.000165 0.000006 let title = self.get_title(a:index) | |
1 0.000247 0.000012 let title_size = s:tabline_evaluated_length(title) + a:sep_size | |
1 0.000003 if a:force || self._remaining_space >= title_size | |
1 0.000002 let pos = a:pos | |
1 0.000003 if has_key(self, "get_pretitle") | |
call self.insert_raw(self.get_pretitle(a:index), pos) | |
let self._right_position += 1 | |
let pos += 1 | |
1 0.000001 endif | |
1 0.000015 0.000008 call self.insert_section(a:group, title, pos) | |
1 0.000002 let self._right_position += 1 | |
1 0.000001 let pos += 1 | |
1 0.000003 if has_key(self, "get_posttitle") | |
call self.insert_raw(self.get_posttitle(a:index), pos) | |
let self._right_position += 1 | |
let pos += 1 | |
1 0.000001 endif | |
1 0.000003 let self._remaining_space -= title_size | |
1 0.000001 return 1 | |
endif | |
return 0 | |
FUNCTION airline#extensions#tabline#load_theme() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/tabline.vim:94 | |
Called 4 times | |
Total time: 0.009060 | |
Self time: 0.000555 | |
count total (s) self (s) | |
4 0.000004 if pumvisible() | |
return | |
4 0.000002 endif | |
4 0.000011 let colors = get(a:palette, 'tabline', {}) | |
4 0.000012 let tablabel = get(colors, 'airline_tablabel', a:palette.normal.airline_b) | |
" Theme for tabs on the left | |
4 0.000009 let tab = get(colors, 'airline_tab', a:palette.normal.airline_b) | |
4 0.000008 let tabsel = get(colors, 'airline_tabsel', a:palette.normal.airline_a) | |
4 0.000008 let tabtype = get(colors, 'airline_tabtype', a:palette.visual.airline_a) | |
4 0.000009 let tabfill = get(colors, 'airline_tabfill', a:palette.normal.airline_c) | |
4 0.000008 let tabmod = get(colors, 'airline_tabmod', a:palette.insert.airline_a) | |
4 0.000006 let tabhid = get(colors, 'airline_tabhid', a:palette.normal.airline_c) | |
4 0.000012 if has_key(a:palette, 'normal_modified') && has_key(a:palette.normal_modified, 'airline_c') | |
4 0.000009 let tabmodu = get(colors, 'airline_tabmod_unsel', a:palette.normal_modified.airline_c) | |
else | |
"Fall back to normal airline_c if modified airline_c isn't present | |
let tabmodu = get(colors, 'airline_tabmod_unsel', a:palette.normal.airline_c) | |
4 0.000001 endif | |
4 0.000673 0.000028 call airline#highlighter#exec('airline_tablabel', tablabel) | |
4 0.000647 0.000021 call airline#highlighter#exec('airline_tab', tab) | |
4 0.000636 0.000033 call airline#highlighter#exec('airline_tabsel', tabsel) | |
4 0.000618 0.000021 call airline#highlighter#exec('airline_tabtype', tabtype) | |
4 0.000635 0.000028 call airline#highlighter#exec('airline_tabfill', tabfill) | |
4 0.000609 0.000022 call airline#highlighter#exec('airline_tabmod', tabmod) | |
4 0.000633 0.000025 call airline#highlighter#exec('airline_tabmod_unsel', tabmodu) | |
4 0.000605 0.000021 call airline#highlighter#exec('airline_tabhid', tabhid) | |
" Theme for tabs on the right | |
" label on the right | |
4 0.000010 let tablabel_r = get(colors, 'airline_tablabel', a:palette.normal.airline_b) | |
4 0.000011 let tabsel_right = get(colors, 'airline_tabsel_right', a:palette.normal.airline_a) | |
4 0.000010 let tab_right = get(colors, 'airline_tab_right', a:palette.inactive.airline_c) | |
4 0.000008 let tabmod_right = get(colors, 'airline_tabmod_right', a:palette.insert.airline_a) | |
4 0.000008 let tabhid_right = get(colors, 'airline_tabhid_right', a:palette.normal.airline_c) | |
4 0.000010 if has_key(a:palette, 'normal_modified') && has_key(a:palette.normal_modified, 'airline_c') | |
4 0.000012 let tabmodu_right = get(colors, 'airline_tabmod_unsel_right', a:palette.normal_modified.airline_c) | |
else | |
"Fall back to normal airline_c if modified airline_c isn't present | |
let tabmodu_right = get(colors, 'airline_tabmod_unsel_right', a:palette.normal.airline_c) | |
4 0.000002 endif | |
4 0.000635 0.000022 call airline#highlighter#exec('airline_tablabel_right', tablabel_r) | |
4 0.000662 0.000022 call airline#highlighter#exec('airline_tab_right', tab_right) | |
4 0.000648 0.000024 call airline#highlighter#exec('airline_tabsel_right', tabsel_right) | |
4 0.000619 0.000027 call airline#highlighter#exec('airline_tabmod_right', tabmod_right) | |
4 0.000614 0.000022 call airline#highlighter#exec('airline_tabhid_right', tabhid_right) | |
4 0.000612 0.000025 call airline#highlighter#exec('airline_tabmod_unsel_right', tabmodu_right) | |
FUNCTION <SNR>48_is_excluded_window() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions.vim:117 | |
Called 8 times | |
Total time: 0.000250 | |
Self time: 0.000250 | |
count total (s) self (s) | |
8 0.000014 for matchft in g:airline_exclude_filetypes | |
if matchft ==# &ft | |
return 1 | |
endif | |
8 0.000007 endfor | |
32 0.000030 for matchw in g:airline_exclude_filenames | |
24 0.000092 if matchstr(expand('%'), matchw) ==# matchw | |
return 1 | |
24 0.000008 endif | |
32 0.000013 endfor | |
8 0.000008 if g:airline_exclude_preview && &previewwindow | |
return 1 | |
8 0.000001 endif | |
8 0.000005 return 0 | |
FUNCTION <SNR>73_DisableOnLargeFile() | |
Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim:458 | |
Called 101 times | |
Total time: 0.001361 | |
Self time: 0.001361 | |
count total (s) self (s) | |
101 0.000774 if exists( 'b:ycm_largefile' ) | |
101 0.000409 return b:ycm_largefile | |
endif | |
let threshold = g:ycm_disable_for_files_larger_than_kb * 1024 | |
let b:ycm_largefile = threshold > 0 && getfsize( expand( a:buffer ) ) > threshold | |
if b:ycm_largefile | |
exec s:python_command "vimsupport.PostVimMessage(" . "'YouCompleteMe is disabled in this buffer; " . "the file exceeded the max size (see YCM options).' )" | |
endif | |
return b:ycm_largefile | |
FUNCTION airline#parts#crypt() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/parts.vim:59 | |
Called 90 times | |
Total time: 0.001092 | |
Self time: 0.001092 | |
count total (s) self (s) | |
90 0.001011 return g:airline_detect_crypt && exists("+key") && !empty(&key) ? g:airline_symbols.crypt : '' | |
FUNCTION airline#extensions#tabline#formatters#default#wrap_name() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/formatters/default.vim:35 | |
Called 34 times | |
Total time: 0.001347 | |
Self time: 0.001347 | |
count total (s) self (s) | |
34 0.000364 let _ = s:buf_nr_show ? printf(s:buf_nr_format, a:bufnr) : '' | |
34 0.000434 let _ .= substitute(a:buffer_name, '\\', '/', 'g') | |
34 0.000219 if getbufvar(a:bufnr, '&modified') == 1 | |
33 0.000138 let _ .= s:buf_modified_symbol | |
34 0.000044 endif | |
34 0.000076 return _ | |
FUNCTION <SNR>71_build_sections() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/default.vim:35 | |
Called 16 times | |
Total time: 0.004654 | |
Self time: 0.000692 | |
count total (s) self (s) | |
80 0.000070 for key in a:keys | |
64 0.000109 if (key == 'warning' || key == 'error') && !a:context.active | |
continue | |
64 0.000030 endif | |
64 0.004288 0.000326 call s:add_section(a:builder, a:context, key) | |
80 0.000043 endfor | |
FUNCTION airline#extensions#tabline#formatters#default#format() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/formatters/default.vim:12 | |
Called 34 times | |
Total time: 0.004440 | |
Self time: 0.003093 | |
count total (s) self (s) | |
34 0.000222 let fmod = get(g:, 'airline#extensions#tabline#fnamemod', ':~:.') | |
34 0.000073 let _ = '' | |
34 0.000219 let name = bufname(a:bufnr) | |
34 0.000121 if empty(name) | |
let _ .= '[No Name]' | |
34 0.000059 else | |
34 0.000082 if s:fnamecollapse | |
" Does not handle non-ascii characters like Cyrillic: 'D/Учёба/t.c' | |
"let _ .= substitute(fnamemodify(name, fmod), '\v\w\zs.{-}\ze(\\|/)', '', 'g') | |
34 0.000644 let _ .= pathshorten(fnamemodify(name, fmod)) | |
else | |
let _ .= fnamemodify(name, fmod) | |
34 0.000043 endif | |
34 0.000253 if a:bufnr != bufnr('%') && s:fnametruncate && strlen(_) > s:fnametruncate | |
let _ = strpart(_, 0, s:fnametruncate) | |
34 0.000041 endif | |
34 0.000039 endif | |
34 0.002065 0.000718 return airline#extensions#tabline#formatters#default#wrap_name(a:bufnr, _) | |
FUNCTION airline#extensions#load_theme() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions.vim:137 | |
Called 4 times | |
Total time: 0.009183 | |
Self time: 0.000037 | |
count total (s) self (s) | |
4 0.009182 0.000036 call airline#util#exec_funcrefs(s:ext._theme_funcrefs, g:airline#themes#{g:airline_theme}#palette) | |
FUNCTION <SNR>73_OnInsertLeave() | |
Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim:813 | |
Called 1 time | |
Total time: 0.011157 | |
Self time: 0.003809 | |
count total (s) self (s) | |
1 0.000296 0.000046 if !s:AllowedToCompleteInCurrentBuffer() | |
return | |
1 0.000001 endif | |
1 0.000012 call timer_stop( s:pollers.completion.id ) | |
1 0.000005 let s:force_semantic = 0 | |
1 0.000009 let s:completion = s:default_completion | |
1 0.002605 0.000047 call s:OnFileReadyToParse() | |
1 0.003595 exec s:python_command "ycm_state.OnInsertLeave()" | |
1 0.000022 if g:ycm_autoclose_preview_window_after_completion || g:ycm_autoclose_preview_window_after_insertion | |
call s:ClosePreviewWindowIfNeeded() | |
1 0.000004 endif | |
1 0.004577 0.000037 call s:ClearSignatureHelp() | |
FUNCTION airline#parts#mode() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/parts.vim:55 | |
Called 90 times | |
Total time: 0.007974 | |
Self time: 0.002022 | |
count total (s) self (s) | |
90 0.007890 0.001938 return airline#util#shorten(get(w:, 'airline_current_mode', ''), 79, 1) | |
FUNCTION airline#extensions#hunks#get_raw_hunks() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/hunks.vim:46 | |
Called 90 times | |
Total time: 0.006264 | |
Self time: 0.005341 | |
count total (s) self (s) | |
90 0.000864 if !exists('b:source_func') || get(b:, 'source_func', '') is# 's:get_hunks_empty' | |
if get(g:, 'loaded_signify') && sy#buffer_is_active() | |
let b:source_func = 's:get_hunks_signify' | |
elseif exists('*GitGutterGetHunkSummary') | |
let b:source_func = 's:get_hunks_gitgutter' | |
elseif exists('*changes#GetStats') | |
let b:source_func = 's:get_hunks_changes' | |
elseif exists('*quickfixsigns#vcsdiff#GetHunkSummary') | |
let b:source_func = 'quickfixsigns#vcsdiff#GetHunkSummary' | |
else | |
let b:source_func = 's:get_hunks_empty' | |
endif | |
90 0.000107 endif | |
90 0.002689 0.001766 return {b:source_func}() | |
FUNCTION airline#extensions#quickfix#apply() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/quickfix.vim:14 | |
Called 8 times | |
Total time: 0.000053 | |
Self time: 0.000053 | |
count total (s) self (s) | |
8 0.000011 if &buftype == 'quickfix' | |
let w:airline_section_a = airline#extensions#quickfix#get_type() | |
let w:airline_section_b = '%{get(w:, "quickfix_title", "")}' | |
let w:airline_section_c = '' | |
let w:airline_section_x = '' | |
8 0.000003 endif | |
FUNCTION airline#util#strchars() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/util.vim:107 | |
Called 5 times | |
Total time: 0.000024 | |
Self time: 0.000024 | |
count total (s) self (s) | |
5 0.000008 if s:has_strchars | |
5 0.000013 return strchars(a:str) | |
else | |
return strlen(substitute(a:str, '.', 'a', 'g')) | |
endif | |
FUNCTION <SNR>80_Init() | |
Defined: ~/.vim/bundle/tagbar/autoload/tagbar.vim:91 | |
Called 18 times | |
Total time: 0.001047 | |
Self time: 0.001047 | |
count total (s) self (s) | |
18 0.000084 if s:checked_ctags == 2 && a:silent | |
return 0 | |
18 0.000054 elseif s:checked_ctags != 1 | |
if !s:CheckForExCtags(a:silent) | |
return 0 | |
endif | |
18 0.000026 endif | |
18 0.000052 if !s:type_init_done | |
call s:InitTypes() | |
18 0.000025 endif | |
18 0.000055 if !s:autocommands_done | |
call s:CreateAutocommands() | |
call s:AutoUpdate(fnamemodify(expand('%'), ':p'), 0) | |
18 0.000023 endif | |
18 0.000072 let s:init_done = 1 | |
18 0.000041 return 1 | |
FUNCTION HtmlIndent() | |
Defined: /usr/share/vim/vim81/indent/html.vim:962 | |
Called 3 times | |
Total time: 0.000071 | |
Self time: 0.000071 | |
count total (s) self (s) | |
"{{{ | |
3 0.000046 if prevnonblank(v:lnum - 1) < 1 | |
" First non-blank line has no indent. | |
3 0.000011 return 0 | |
endif | |
let curtext = tolower(getline(v:lnum)) | |
let indentunit = shiftwidth() | |
let b:hi_newstate = {} | |
let b:hi_newstate.lnum = v:lnum | |
" When syntax HL is enabled, detect we are inside a tag. Indenting inside | |
" a tag works very differently. Do not do this when the line starts with | |
" "<", it gets the "htmlTag" ID but we are not inside a tag then. | |
if curtext !~ '^\s*<' | |
normal! ^ | |
let stack = synstack(v:lnum, col('.')) " assumes there are no tabs | |
let foundHtmlString = 0 | |
for synid in reverse(stack) | |
let name = synIDattr(synid, "name") | |
if index(b:hi_insideStringNames, name) >= 0 | |
let foundHtmlString = 1 | |
elseif index(b:hi_insideTagNames, name) >= 0 | |
" Yes, we are inside a tag. | |
let indent = s:InsideTag(foundHtmlString) | |
if indent >= 0 | |
" Do not keep the state. TODO: could keep the block type. | |
let b:hi_indent.lnum = 0 | |
return indent | |
endif | |
endif | |
endfor | |
endif | |
" does the line start with a closing tag? | |
let swendtag = match(curtext, '^\s*</') >= 0 | |
if prevnonblank(v:lnum - 1) == b:hi_indent.lnum && b:hi_lasttick == b:changedtick - 1 | |
" use state (continue from previous line) | |
else | |
" start over (know nothing) | |
let b:hi_indent = s:FreshState(v:lnum) | |
endif | |
if b:hi_indent.block >= 2 | |
" within block | |
let endtag = s:endtags[b:hi_indent.block] | |
let blockend = stridx(curtext, endtag) | |
if blockend >= 0 | |
" block ends here | |
let b:hi_newstate.block = 0 | |
" calc indent for REST OF LINE (may start more blocks): | |
call s:CountTagsAndState(strpart(curtext, blockend + strlen(endtag))) | |
if swendtag && b:hi_indent.block != 5 | |
let indent = b:hi_indent.blocktagind + s:curind * indentunit | |
let b:hi_newstate.baseindent = indent + s:nextrel * indentunit | |
else | |
let indent = s:Alien{b:hi_indent.block}() | |
let b:hi_newstate.baseindent = b:hi_indent.blocktagind + s:nextrel * indentunit | |
endif | |
else | |
" block continues | |
" indent this line with alien method | |
let indent = s:Alien{b:hi_indent.block}() | |
endif | |
else | |
" not within a block - within usual html | |
let b:hi_newstate.block = b:hi_indent.block | |
if swendtag | |
" The current line starts with an end tag, align with its start tag. | |
call cursor(v:lnum, 1) | |
let start_lnum = HtmlIndent_FindStartTag() | |
if start_lnum > 0 | |
" check for the line starting with something inside a tag: | |
" <sometag <- align here | |
" attr=val><open> not here | |
let text = getline(start_lnum) | |
let angle = matchstr(text, '[<>]') | |
if angle == '>' | |
call cursor(start_lnum, 1) | |
normal! f>% | |
let start_lnum = line('.') | |
let text = getline(start_lnum) | |
endif | |
let indent = indent(start_lnum) | |
if col('.') > 2 | |
let swendtag = match(text, '^\s*</') >= 0 | |
call s:CountITags(text[: col('.') - 2]) | |
let indent += s:nextrel * shiftwidth() | |
if !swendtag | |
let indent += s:curind * shiftwidth() | |
endif | |
endif | |
else | |
" not sure what to do | |
let indent = b:hi_indent.baseindent | |
endif | |
let b:hi_newstate.baseindent = indent | |
else | |
call s:CountTagsAndState(curtext) | |
let indent = b:hi_indent.baseindent | |
let b:hi_newstate.baseindent = indent + (s:curind + s:nextrel) * indentunit | |
endif | |
endif | |
let b:hi_lasttick = b:changedtick | |
call extend(b:hi_indent, b:hi_newstate, "force") | |
return indent | |
FUNCTION <SNR>73_OnTextChangedInsertMode() | |
Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim:773 | |
Called 25 times | |
Total time: 0.196965 | |
Self time: 0.009111 | |
count total (s) self (s) | |
25 0.004613 0.000541 if !s:AllowedToCompleteInCurrentBuffer() | |
return | |
25 0.000040 endif | |
25 0.000085 if s:completion_stopped | |
let s:completion_stopped = 0 | |
let s:completion = s:default_completion | |
return | |
25 0.000034 endif | |
25 0.014661 0.000546 call s:IdentifierFinishedOperations() | |
" We have to make sure we correctly leave semantic mode even when the user | |
" inserts something like a "operator[]" candidate string which fails | |
" CurrentIdentifierFinished check. | |
25 0.000244 if s:force_semantic && !s:Pyeval( 'base.LastEnteredCharIsIdentifierChar()' ) | |
let s:force_semantic = 0 | |
25 0.000048 endif | |
25 0.014608 0.001305 if &completefunc == "youcompleteme#CompleteFunc" && ( g:ycm_auto_trigger || s:force_semantic ) && !s:InsideCommentOrStringAndShouldStop() && !s:OnBlankLine() | |
" Immediately call previous completion to avoid flickers. | |
25 0.015024 0.000545 call s:Complete() | |
25 0.099243 0.000664 call s:RequestCompletion() | |
25 0.024195 0.000792 call s:UpdateSignatureHelp() | |
25 0.020674 0.000771 call s:RequestSignatureHelp() | |
25 0.000053 endif | |
25 0.002210 exec s:python_command "ycm_state.OnCursorMoved()" | |
25 0.000202 if g:ycm_autoclose_preview_window_after_completion | |
call s:ClosePreviewWindowIfNeeded() | |
25 0.000047 endif | |
FUNCTION airline#extensions#wordcount#apply() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/wordcount.vim:88 | |
Called 8 times | |
Total time: 0.000190 | |
Self time: 0.000190 | |
count total (s) self (s) | |
8 0.000038 let filetypes = get(g:, 'airline#extensions#wordcount#filetypes', ['asciidoc', 'help', 'mail', 'markdown', 'org', 'rst', 'tex', 'text']) | |
" export current filetypes settings to global namespace | |
8 0.000011 let g:airline#extensions#wordcount#filetypes = filetypes | |
" Check if filetype needs testing | |
8 0.000008 if did_filetype() | |
" Select test based on type of "filetypes": new=list, old=string | |
if type(filetypes) == get(v:, 't_list', type([])) ? index(filetypes, &filetype) > -1 || index(filetypes, 'all') > -1 : match(&filetype, filetypes) > -1 | |
let b:airline_changedtick = -1 | |
call s:update_wordcount(1) " force update: ensures initial worcount exists | |
elseif exists('b:airline_wordcount') " cleanup when filetype is removed | |
unlet b:airline_wordcount | |
endif | |
8 0.000003 endif | |
8 0.000017 if exists('b:airline_wordcount') | |
call airline#extensions#prepend_to_section( 'z', '%{airline#extensions#wordcount#get()}') | |
8 0.000003 endif | |
FUNCTION <SNR>66_map_keys() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/buffers.vim:196 | |
Called 33 times | |
Total time: 0.010954 | |
Self time: 0.010954 | |
count total (s) self (s) | |
33 0.000232 let bidx_mode = get(g:, 'airline#extensions#tabline#buffer_idx_mode', 1) | |
33 0.000088 if bidx_mode > 0 | |
33 0.000067 if bidx_mode == 1 | |
330 0.000801 for i in range(1, 9) | |
297 0.007278 exe printf('noremap <silent> <Plug>AirlineSelectTab%d :call <SID>select_tab(%d)<CR>', i, i-1) | |
330 0.000465 endfor | |
else | |
for i in range(11, 99) | |
exe printf('noremap <silent> <Plug>AirlineSelectTab%d :call <SID>select_tab(%d)<CR>', i, i-11) | |
endfor | |
33 0.000051 endif | |
33 0.000616 noremap <silent> <Plug>AirlineSelectPrevTab :<C-u>call <SID>jump_to_tab(-v:count1)<CR> | |
33 0.000524 noremap <silent> <Plug>AirlineSelectNextTab :<C-u>call <SID>jump_to_tab(v:count1)<CR> | |
" Enable this for debugging | |
" com! AirlineBufferList :echo map(copy(s:current_visible_buffers), {i,k -> k.": ".bufname(k)}) | |
33 0.000054 endif | |
FUNCTION airline#extensions#tabline#builder#new() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/tabline/builder.vim:227 | |
Called 1 time | |
Total time: 0.000162 | |
Self time: 0.000066 | |
count total (s) self (s) | |
1 0.000126 0.000030 let builder = airline#builder#new(a:context) | |
1 0.000009 let builder._build = builder.build | |
1 0.000019 call extend(builder, s:prototype, 'force') | |
1 0.000004 return builder | |
FUNCTION airline#statusline() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline.vim:190 | |
Called 90 times | |
Total time: 0.002491 | |
Self time: 0.002491 | |
count total (s) self (s) | |
90 0.001074 if has_key(s:contexts, a:winnr) | |
90 0.001221 return '%{airline#check_mode('.a:winnr.')}'.s:contexts[a:winnr].line | |
endif | |
" in rare circumstances this happens...see #276 | |
return '' | |
FUNCTION <SNR>54_get_array() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/highlighter.vim:56 | |
Called 1577 times | |
Total time: 0.012022 | |
Self time: 0.012022 | |
count total (s) self (s) | |
1577 0.005000 let opts=empty(a:opts) ? '' : join(a:opts, ',') | |
1577 0.006359 return g:airline_gui_mode ==# 'gui' ? [ a:fg, a:bg, '', '', opts ] : [ '', '', a:fg, a:bg, opts ] | |
FUNCTION <SNR>19_on_window_changed() | |
Defined: ~/.vim/bundle/vim-airline/plugin/airline.vim:48 | |
Called 21 times | |
Total time: 0.002267 | |
Self time: 0.002267 | |
count total (s) self (s) | |
" don't trigger for Vim popup windows | |
21 0.000149 if &buftype is# 'popup' | |
return | |
21 0.000039 endif | |
21 0.000161 if pumvisible() && (!&previewwindow || g:airline_exclude_preview) | |
" do not trigger for previewwindows | |
return | |
21 0.000030 endif | |
21 0.000157 let s:active_winnr = winnr() | |
" Handle each window only once, since we might come here several times for | |
" different autocommands. | |
21 0.000517 let l:key = [bufnr('%'), s:active_winnr, winnr('$'), tabpagenr(), &ft] | |
21 0.000833 if get(g:, 'airline_last_window_changed', []) == l:key && &stl is# '%!airline#statusline('.s:active_winnr.')' && &ft !~? 'gitcommit' | |
" fugitive is special, it changes names and filetypes several times, | |
" make sure the caching does not get into its way | |
21 0.000057 return | |
endif | |
let g:airline_last_window_changed = l:key | |
call s:init() | |
call airline#update_statusline() | |
FUNCTION gitgutter#utility#is_active() | |
Defined: ~/.vim/bundle/vim-gitgutter/autoload/gitgutter/utility.vim:56 | |
Called 5 times | |
Total time: 0.000130 | |
Self time: 0.000130 | |
count total (s) self (s) | |
5 0.000119 return g:gitgutter_enabled && gitgutter#utility#getbufvar(a:bufnr, 'enabled', 1) && !pumvisible() && s:is_file_buffer(a:bufnr) && s:exists_file(a:bufnr) && s:not_git_dir(a:bufnr) | |
FUNCTION airline#extensions#apply() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions.vim:77 | |
Called 8 times | |
Total time: 0.000575 | |
Self time: 0.000325 | |
count total (s) self (s) | |
8 0.000022 let filetype_overrides = get(s:, 'filetype_overrides', {}) | |
8 0.000030 call extend(filetype_overrides, get(g:, 'airline_filetype_overrides', {}), 'force') | |
8 0.000291 0.000041 if s:is_excluded_window() | |
return -1 | |
8 0.000002 endif | |
8 0.000009 if &buftype == 'terminal' | |
let w:airline_section_x = '' | |
let w:airline_section_y = '' | |
8 0.000002 endif | |
8 0.000008 if &previewwindow | |
let w:airline_section_a = 'Preview' | |
let w:airline_section_b = '' | |
let w:airline_section_c = bufname(winbufnr(winnr())) | |
8 0.000003 endif | |
8 0.000036 if has_key(filetype_overrides, &ft) && ((&filetype == 'help' && &buftype == 'help') || &filetype !~ 'help') | |
" for help files only override it, if the buftype is also of type 'help', | |
" else it would trigger when editing Vim help files | |
let args = filetype_overrides[&ft] | |
call airline#extensions#apply_left_override(args[0], args[1]) | |
8 0.000004 endif | |
8 0.000008 if &buftype == 'help' | |
let w:airline_section_x = '' | |
let w:airline_section_y = '' | |
let w:airline_render_right = 1 | |
8 0.000002 endif | |
8 0.000019 for item in items(s:filetype_regex_overrides) | |
if match(&ft, item[0]) >= 0 | |
call airline#extensions#apply_left_override(item[1][0], item[1][1]) | |
endif | |
8 0.000003 endfor | |
FUNCTION youcompleteme#CompleteFunc() | |
Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim:987 | |
Called 42 times | |
Total time: 0.001495 | |
Self time: 0.001495 | |
count total (s) self (s) | |
42 0.000188 if a:findstart | |
" When auto-wrapping is enabled, Vim wraps the current line after the | |
" completion request is sent but before calling this function. The starting | |
" column returned by the server is invalid in that case and must be | |
" recomputed. | |
21 0.000164 if s:completion.line != line( '.' ) | |
" Given | |
" scb: column where the completion starts before auto-wrapping | |
" cb: cursor column before auto-wrapping | |
" sca: column where the completion starts after auto-wrapping | |
" ca: cursor column after auto-wrapping | |
" we have | |
" ca - sca = cb - scb | |
" sca = scb + ca - cb | |
let s:completion.completion_start_column += col( '.' ) - s:completion.column | |
21 0.000037 endif | |
21 0.000160 return s:completion.completion_start_column - 1 | |
21 0.000029 endif | |
21 0.000078 return s:completion.completions | |
FUNCTION <SNR>73_Complete() | |
Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim:965 | |
Called 50 times | |
Total time: 0.027523 | |
Self time: 0.003570 | |
count total (s) self (s) | |
" Do not call user's completion function if the start column is after the | |
" current column or if there are no candidates. Close the completion menu | |
" instead. This avoids keeping the user in completion mode. | |
50 0.000663 if s:completion.completion_start_column > s:completion.column || empty( s:completion.completions ) | |
29 0.001142 0.000641 call s:CloseCompletionMenu() | |
21 0.000048 else | |
" <c-x><c-u> invokes the user's completion function (which we have set to | |
" youcompleteme#CompleteFunc), and <c-p> tells Vim to select the previous | |
" completion candidate. This is necessary because by default, Vim selects | |
" the first candidate when completion is invoked, and selecting a candidate | |
" automatically replaces the current text with it. Calling <c-p> forces Vim | |
" to deselect the first candidate and in turn preserve the user's current | |
" text until he explicitly chooses to replace it with a completion. | |
21 0.000705 0.000385 call s:SendKeys( "\<C-X>\<C-U>\<C-P>" ) | |
50 0.000085 endif | |
" Displaying or hiding the PUM might mean we need to hide the sig help | |
50 0.023995 0.000863 call s:UpdateSignatureHelp() | |
FUNCTION <SNR>73_PollFileParseResponse() | |
Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim:679 | |
Called 1 time | |
Total time: 0.000197 | |
Self time: 0.000085 | |
count total (s) self (s) | |
1 0.000100 0.000013 if !s:Pyeval( "ycm_state.FileParseRequestReady()" ) | |
let s:pollers.file_parse_response.id = timer_start( s:pollers.file_parse_response.wait_milliseconds, function( 's:PollFileParseResponse' ) ) | |
return | |
1 0.000001 endif | |
1 0.000052 exec s:python_command "ycm_state.HandleFileParseRequest()" | |
1 0.000032 0.000007 if s:Pyeval( "ycm_state.ShouldResendFileParseRequest()" ) | |
call s:OnFileReadyToParse( 1 ) | |
1 0.000000 endif | |
FUNCTION airline#highlighter#highlight_modified_inactive() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/highlighter.vim:229 | |
Called 7 times | |
Total time: 0.005858 | |
Self time: 0.000377 | |
count total (s) self (s) | |
7 0.000041 if getbufvar(a:bufnr, '&modified') | |
6 0.000068 let colors = exists('g:airline#themes#{g:airline_theme}#palette.inactive_modified.airline_c') ? g:airline#themes#{g:airline_theme}#palette.inactive_modified.airline_c : [] | |
1 0.000004 else | |
1 0.000037 let colors = exists('g:airline#themes#{g:airline_theme}#palette.inactive.airline_c') ? g:airline#themes#{g:airline_theme}#palette.inactive.airline_c : [] | |
7 0.000007 endif | |
7 0.000022 if !empty(colors) | |
7 0.005604 0.000123 call airline#highlighter#exec('airline_c'.(a:bufnr).'_inactive', colors) | |
7 0.000005 endif | |
FUNCTION airline#extensions#keymap#status() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/keymap.vim:10 | |
Called 90 times | |
Total time: 0.002175 | |
Self time: 0.002175 | |
count total (s) self (s) | |
90 0.001066 if (get(g:, 'airline#extensions#keymap#enabled', 1) && has('keymap')) | |
90 0.000981 return printf('%s', (!empty(&keymap) ? (g:airline_symbols.keymap . ' '. &keymap) : '')) | |
else | |
return '' | |
endif | |
FUNCTION <SNR>73_SendKeys() | |
Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim:694 | |
Called 29 times | |
Total time: 0.000453 | |
Self time: 0.000453 | |
count total (s) self (s) | |
" By default keys are added to the end of the typeahead buffer. If there are | |
" already keys in the buffer, they will be processed first and may change the | |
" state that our keys combination was sent for (e.g. <C-X><C-U><C-P> in normal | |
" mode instead of insert mode or <C-e> outside of completion mode). We avoid | |
" that by inserting the keys at the start of the typeahead buffer with the 'i' | |
" option. Also, we don't want the keys to be remapped to something else so we | |
" add the 'n' option. | |
29 0.000281 call feedkeys( a:keys, 'in' ) | |
FUNCTION airline#extensions#hunks#get_hunks() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/hunks.vim:63 | |
Called 90 times | |
Total time: 0.020736 | |
Self time: 0.011445 | |
count total (s) self (s) | |
90 0.000573 if !get(w:, 'airline_active', 0) | |
return '' | |
90 0.000126 endif | |
" Cache values, so that it isn't called too often | |
90 0.003071 0.002456 if exists("b:airline_hunks") && get(b:, 'airline_changenr', 0) == b:changedtick && airline#util#winwidth() == get(s:, 'airline_winwidth', 0) && get(b:, 'source_func', '') isnot# 's:get_hunks_signify' && get(b:, 'source_func', '') isnot# 's:get_hunks_gitgutter' && get(b:, 'source_func', '') isnot# 's:get_hunks_empty' && get(b:, 'source_func', '') isnot# 's:get_hunks_changes' | |
return b:airline_hunks | |
90 0.000126 endif | |
90 0.007734 0.001470 let hunks = airline#extensions#hunks#get_raw_hunks() | |
90 0.000242 let string = '' | |
90 0.001940 0.001204 let winwidth = get(airline#parts#get('hunks'), 'minwidth', 100) | |
90 0.000338 if !empty(hunks) | |
for i in [0, 1, 2] | |
if (s:non_zero_only == 0 && airline#util#winwidth() > winwidth) || hunks[i] > 0 | |
let string .= printf('%s%s ', s:hunk_symbols[i], hunks[i]) | |
endif | |
endfor | |
90 0.000125 endif | |
90 0.000365 let b:airline_hunks = string | |
90 0.000388 let b:airline_changenr = b:changedtick | |
90 0.002810 0.001134 let s:airline_winwidth = airline#util#winwidth() | |
90 0.000201 return string | |
FUNCTION <SNR>70_section_is_empty() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/builder.vim:185 | |
Called 81 times | |
Total time: 0.000883 | |
Self time: 0.000883 | |
count total (s) self (s) | |
81 0.000100 let start=1 | |
" do not check for inactive windows or the tabline | |
81 0.000124 if a:self._context.active == 0 | |
return 0 | |
81 0.000184 elseif get(a:self._context, 'tabline', 0) | |
9 0.000022 return 0 | |
72 0.000035 endif | |
" only check, if airline#skip_empty_sections == 1 | |
72 0.000115 if get(g:, 'airline_skip_empty_sections', 0) == 0 | |
72 0.000047 return 0 | |
endif | |
" only check, if airline#skip_empty_sections == 1 | |
if get(w:, 'airline_skip_empty_sections', -1) == 0 | |
return 0 | |
endif | |
" assume accents sections to be never empty | |
" (avoides, that on startup the mode message becomes empty) | |
if match(a:content, '%#__accent_[^#]*#.*__restore__#') > -1 | |
return 0 | |
endif | |
if empty(a:content) | |
return 1 | |
endif | |
let list=matchlist(a:content, '%{\zs.\{-}\ze}', 1, start) | |
if empty(list) | |
return 0 " no function in statusline text | |
endif | |
while len(list) > 0 | |
let expr = list[0] | |
try | |
" catch all exceptions, just in case | |
if !empty(eval(expr)) | |
return 0 | |
endif | |
catch | |
return 0 | |
endtry | |
let start += 1 | |
let list=matchlist(a:content, '%{\zs.\{-}\ze}', 1, start) | |
endw | |
return 1 | |
FUNCTION <SNR>54_hl_group_exists() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/highlighter.vim:95 | |
Called 661 times | |
Total time: 0.009298 | |
Self time: 0.009298 | |
count total (s) self (s) | |
661 0.002855 if !hlexists(a:group) | |
return 0 | |
661 0.003602 elseif empty(synIDattr(hlID(a:group), 'fg')) | |
return 0 | |
661 0.000420 endif | |
661 0.000610 return 1 | |
FUNCTION <SNR>19_on_cursor_moved() | |
Defined: ~/.vim/bundle/vim-airline/plugin/airline.vim:74 | |
Called 1 time | |
Total time: 0.000075 | |
Self time: 0.000054 | |
count total (s) self (s) | |
1 0.000018 if winnr() != s:active_winnr || !exists('w:airline_active') | |
call s:on_window_changed('CursorMoved') | |
1 0.000003 endif | |
1 0.000041 0.000020 call airline#update_tabline() | |
FUNCTION <SNR>73_InsideCommentOrStringAndShouldStop() | |
Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim:878 | |
Called 25 times | |
Total time: 0.008375 | |
Self time: 0.001171 | |
count total (s) self (s) | |
25 0.007688 0.000484 let retval = s:InsideCommentOrString() | |
25 0.000130 let inside_comment = retval == 1 | |
25 0.000095 let inside_string = retval == 2 | |
25 0.000192 if inside_comment && g:ycm_complete_in_comments || inside_string && g:ycm_complete_in_strings | |
return 0 | |
25 0.000040 endif | |
25 0.000071 return retval | |
FUNCTION airline#highlighter#reset_hlcache() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/highlighter.vim:63 | |
Called 4 times | |
Total time: 0.000591 | |
Self time: 0.000591 | |
count total (s) self (s) | |
4 0.000588 let s:hl_groups = {} | |
FUNCTION airline#util#prepend() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/util.vim:62 | |
Called 450 times | |
Total time: 0.006065 | |
Self time: 0.006065 | |
count total (s) self (s) | |
450 0.001901 if a:minwidth > 0 && airline#util#winwidth() < a:minwidth | |
return '' | |
450 0.000546 endif | |
450 0.002539 return empty(a:text) ? '' : a:text.s:spc.g:airline_right_alt_sep.s:spc | |
FUNCTION <SNR>73_AllowedToCompleteInCurrentBuffer() | |
Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim:502 | |
Called 101 times | |
Total time: 0.017047 | |
Self time: 0.002428 | |
count total (s) self (s) | |
101 0.016981 0.002362 return s:AllowedToCompleteInBuffer( '%' ) | |
FUNCTION <SNR>54_exec_separator() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/highlighter.vim:189 | |
Called 335 times | |
Total time: 0.159471 | |
Self time: 0.013427 | |
count total (s) self (s) | |
335 0.000583 if pumvisible() | |
return | |
335 0.000182 endif | |
335 0.000942 let group = a:from.'_to_'.a:to.a:suffix | |
335 0.041622 0.002412 let l:from = airline#themes#get_highlight(a:from.a:suffix) | |
335 0.039840 0.002468 let l:to = airline#themes#get_highlight(a:to.a:suffix) | |
335 0.000359 if a:inverse | |
116 0.000476 let colors = [ l:from[1], l:to[1], l:from[3], l:to[3] ] | |
219 0.000129 else | |
219 0.000939 let colors = [ l:to[1], l:from[1], l:to[3], l:from[3] ] | |
335 0.000188 endif | |
335 0.000775 let a:dict[group] = colors | |
335 0.072018 0.002556 call airline#highlighter#exec(group, colors) | |
FUNCTION airline#extensions#tabline#add_tab_label() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/tabline.vim:246 | |
Called 1 time | |
Total time: 0.000042 | |
Self time: 0.000042 | |
count total (s) self (s) | |
1 0.000019 if get(g:, 'airline#extensions#tabline#show_tab_count', 1) && tabpagenr('$') > 1 | |
call a:dict.add_section_spaced('airline_tabmod', printf('%s %d/%d', "tab", tabpagenr(), tabpagenr('$'))) | |
1 0.000003 endif | |
FUNCTION <SNR>71_get_section() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/extensions/default.vim:20 | |
Called 88 times | |
Total time: 0.002727 | |
Self time: 0.002139 | |
count total (s) self (s) | |
88 0.000161 if has_key(s:section_truncate_width, a:key) | |
64 0.000701 0.000311 if airline#util#winwidth(a:winnr) < s:section_truncate_width[a:key] | |
return '' | |
64 0.000033 endif | |
88 0.000039 endif | |
88 0.000104 let spc = g:airline_symbols.space | |
88 0.000217 if !exists('g:airline_section_{a:key}') | |
return '' | |
88 0.000037 endif | |
88 0.000714 0.000516 let text = airline#util#getwinvar(a:winnr, 'airline_section_'.a:key, g:airline_section_{a:key}) | |
88 0.000306 let [prefix, suffix] = [get(a:000, 0, '%('.spc), get(a:000, 1, spc.'%)')] | |
88 0.000199 return empty(text) ? '' : prefix.text.suffix | |
FUNCTION airline#builder#new() | |
Defined: ~/.vim/bundle/vim-airline/autoload/airline/builder.vim:232 | |
Called 9 times | |
Total time: 0.000215 | |
Self time: 0.000215 | |
count total (s) self (s) | |
9 0.000058 let builder = copy(s:prototype) | |
9 0.000021 let builder._context = a:context | |
9 0.000019 let builder._sections = [] | |
9 0.000091 call extend(builder._context, { 'left_sep': g:airline_left_sep, 'left_alt_sep': g:airline_left_alt_sep, 'right_sep': g:airline_right_sep, 'right_alt_sep': g:airline_right_alt_sep, }, 'keep') | |
9 0.000011 return builder | |
FUNCTIONS SORTED ON TOTAL TIME | |
count total (s) self (s) function | |
3810 1.865003 0.420332 <SNR>73_PollSignatureHelp() | |
8207 1.479994 <SNR>73_Pyeval() | |
3962 1.193260 0.100923 <SNR>73_ShouldUseSignatureHelp() | |
15 0.337752 0.047278 airline#highlighter#highlight() | |
803 0.233757 0.085625 airline#highlighter#exec() | |
90 0.220989 0.021030 airline#check_mode() | |
4 0.206704 0.000839 <SNR>19_airline_refresh() | |
25 0.196965 0.009111 <SNR>73_OnTextChangedInsertMode() | |
1577 0.184360 0.087802 airline#highlighter#get_highlight() | |
4 0.181775 0.000655 airline#load_theme() | |
335 0.159471 0.013427 <SNR>54_exec_separator() | |
4 0.144378 0.000416 airline#highlighter#load_theme() | |
25 0.098579 0.085444 <SNR>73_RequestCompletion() | |
3154 0.084536 <SNR>54_get_syn() | |
670 0.076582 0.005714 airline#themes#get_highlight() | |
125 0.066791 0.006077 <SNR>73_UpdateSignatureHelp() | |
10 0.048567 0.006683 16() | |
8 0.047700 0.000346 airline#update_statusline() | |
8 0.047151 0.000267 <SNR>50_invoke_funcrefs() | |
50 0.042900 0.004192 <SNR>73_PollCompletion() | |
FUNCTIONS SORTED ON SELF TIME | |
count total (s) self (s) function | |
8207 1.479994 <SNR>73_Pyeval() | |
3810 1.865003 0.420332 <SNR>73_PollSignatureHelp() | |
3962 1.193260 0.100923 <SNR>73_ShouldUseSignatureHelp() | |
1577 0.184360 0.087802 airline#highlighter#get_highlight() | |
803 0.233757 0.085625 airline#highlighter#exec() | |
25 0.098579 0.085444 <SNR>73_RequestCompletion() | |
3154 0.084536 <SNR>54_get_syn() | |
15 0.337752 0.047278 airline#highlighter#highlight() | |
51 0.029845 <SNR>38_Highlight_Matching_Pair() | |
90 0.026025 0.021036 airline#extensions#whitespace#check() | |
90 0.220989 0.021030 airline#check_mode() | |
803 0.017873 <SNR>54_CheckDefined() | |
142 0.016834 <SNR>54_GetHiCmd() | |
335 0.159471 0.013427 <SNR>54_exec_separator() | |
101 0.014619 0.013258 <SNR>73_AllowedToCompleteInBuffer() | |
630 0.012308 airline#util#append() | |
1577 0.012022 <SNR>54_get_array() | |
90 0.020736 0.011445 airline#extensions#hunks#get_hunks() | |
33 0.010954 <SNR>66_map_keys() | |
550 0.009630 airline#util#winwidth() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment