FUNCTION ale#Var() Defined: ~/.vim/bundle/ale/autoload/ale.vim line 179 Called 1 time Total time: 0.000021 Self time: 0.000021 count total (s) self (s) 1 0.000006 let l:full_name = 'ale_' . a:variable_name 1 0.000008 let l:vars = getbufvar(str2nr(a:buffer), '', {}) 1 0.000005 return get(l:vars, l:full_name, g:[l:full_name]) FUNCTION 58_OnInsertLeave() Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim line 748 Called 1 time Total time: 0.000094 Self time: 0.000020 count total (s) self (s) 1 0.000093 0.000019 if !s:AllowedToCompleteInCurrentBuffer() 1 0.000001 return endif call timer_stop( s:pollers.completion.id ) let s:force_semantic = 0 let s:completion = s:default_completion call s:OnFileReadyToParse() exec s:python_command "ycm_state.OnInsertLeave()" if g:ycm_autoclose_preview_window_after_completion || g:ycm_autoclose_preview_window_after_insertion call s:ClosePreviewWindowIfNeeded() endif FUNCTION fugitive#Head() Defined: ~/.vim/bundle/vim-fugitive/autoload/fugitive.vim line 324 Called 38 times Total time: 0.004077 Self time: 0.003602 count total (s) self (s) 38 0.000770 0.000295 let dir = a:0 > 1 ? a:2 : s:Dir() 38 0.001320 if empty(dir) || !filereadable(dir . '/HEAD') return '' 38 0.000021 endif 38 0.000824 let head = readfile(dir . '/HEAD')[0] 38 0.000364 if head =~# '^ref: ' 38 0.000693 return substitute(head, '\C^ref: \%(refs/\%(heads/\|remotes/\|tags/\)\=\)\=', '', '') elseif head =~# '^\x\{40\}$' let len = a:0 ? a:1 : 0 return len < 0 ? head : len ? head[0:len-1] : '' else return '' endif FUNCTION ActiveStatus() Defined: ~/.vimrc line 241 Called 19 times Total time: 0.000844 Self time: 0.000844 count total (s) self (s) 19 0.000052 let statusline="" 19 0.000041 let statusline.="%1*" 19 0.000030 let statusline.="\ %{ModeName(mode())}\ " 19 0.000022 let statusline.="%2*" 19 0.000043 let statusline.="%{mode()=='i'||mode()=='v'?'':''}" 19 0.000021 let statusline.="%3*" 19 0.000048 let statusline.="\ %{fugitive#head()!=''?'\ '.fugitive#head().'\ ':'\ -\ '}" 19 0.000028 let statusline.="%4*" 19 0.000035 let statusline.="%{mode()=='i'||mode()=='v'?'':''}" 19 0.000021 let statusline.="%5*" 19 0.000033 let statusline.="\ [%n/%{len(filter(range(1,bufnr('$')),'buflisted(v:val)'))}]" 19 0.000032 let statusline.="\ %{pathshorten(expand('%:f'))}\ %m\ " 19 0.000033 let statusline.="%{&readonly?'\ \ ':''}" 19 0.000022 let statusline.="%=" 19 0.000030 let statusline.="\ %{''!=#&filetype?&filetype:'none'}\ " 19 0.000020 let statusline.="%4*" 19 0.000031 let statusline.="%{mode()=='i'||mode()=='v'?'':''}" 19 0.000033 let statusline.="%3*" 19 0.000033 let statusline.="\ %{&ff=='mac'?'CR':&ff=='unix'?'LF':'CRLF'} %vC|%l/%LL\ " " Column number | Row number / total lines 19 0.000023 let statusline.="%2*" 19 0.000030 let statusline.="%{mode()=='i'||mode()=='v'?'':''}" 19 0.000022 let statusline.="%1*" 19 0.000030 let statusline.="\ %{strftime('%a %b-%d %H:%M')}\ " " Date time clock updated on key presses 19 0.000028 return statusline FUNCTION 58_DisableOnLargeFile() Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim line 418 Called 21 times Total time: 0.000095 Self time: 0.000095 count total (s) self (s) 21 0.000062 if exists( 'b:ycm_largefile' ) 21 0.000021 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 58_OnTextChangedInsertMode() Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim line 711 Called 2 times Total time: 0.000178 Self time: 0.000040 count total (s) self (s) 2 0.000176 0.000038 if !s:AllowedToCompleteInCurrentBuffer() 2 0.000001 return endif if s:completion_stopped let s:completion_stopped = 0 let s:completion = s:default_completion return endif 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. if s:force_semantic && !s:Pyeval( 'base.LastEnteredCharIsIdentifierChar()' ) let s:force_semantic = 0 endif if &completefunc == "youcompleteme#CompleteFunc" && ( g:ycm_auto_trigger || s:force_semantic ) && !s:InsideCommentOrStringAndShouldStop() && !s:OnBlankLine() " Immediately call previous completion to avoid flickers. call s:Complete() call s:InvokeCompletion() endif exec s:python_command "ycm_state.OnCursorMoved()" if g:ycm_autoclose_preview_window_after_completion call s:ClosePreviewWindowIfNeeded() endif FUNCTION 32_Highlight_Matching_Pair() Defined: /usr/local/Cellar/vim/8.1.1850/share/vim/vim81/plugin/matchparen.vim line 39 Called 5 times Total time: 0.000380 Self time: 0.000380 count total (s) self (s) " Remove any previous match. 5 0.000017 if exists('w:paren_hl_on') && w:paren_hl_on silent! call matchdelete(3) let w:paren_hl_on = 0 5 0.000002 endif " Avoid that we remove the popup menu. " Return when there are no colors (looks like the cursor jumps). 5 0.000017 if pumvisible() || (&t_Co < 8 && !has("gui_running")) return 5 0.000004 endif " Get the character under the cursor and check if it's in 'matchpairs'. 5 0.000012 let c_lnum = line('.') 5 0.000010 let c_col = col('.') 5 0.000004 let before = 0 5 0.000010 let text = getline(c_lnum) 5 0.000076 let matches = matchlist(text, '\(.\)\=\%'.c_col.'c\(.\=\)') 5 0.000007 if empty(matches) let [c_before, c] = ['', ''] 5 0.000002 else 5 0.000016 let [c_before, c] = matches[1:2] 5 0.000002 endif 5 0.000083 let plist = split(&matchpairs, '.\zs[:,]') 5 0.000013 let i = index(plist, c) 5 0.000005 if i < 0 " not found, in Insert mode try character before the cursor 5 0.000013 if c_col > 1 && (mode() == 'i' || mode() == 'R') 2 0.000004 let before = strlen(c_before) 2 0.000002 let c = c_before 2 0.000004 let i = index(plist, c) 5 0.000003 endif 5 0.000003 if i < 0 " not found, nothing to do 5 0.000002 return endif endif " Figure out the arguments for searchpairpos(). if i % 2 == 0 let s_flags = 'nW' let c2 = plist[i + 1] else let s_flags = 'nbW' let c2 = c let c = plist[i - 1] endif if c == '[' let c = '\[' let c2 = '\]' endif " Find the match. When it was just before the cursor move it there for a " moment. if before > 0 let has_getcurpos = exists("*getcurpos") if has_getcurpos " getcurpos() is more efficient but doesn't exist before 7.4.313. let save_cursor = getcurpos() else let save_cursor = winsaveview() endif call cursor(c_lnum, c_col - before) endif if !has("syntax") || !exists("g:syntax_on") let s_skip = "0" 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. 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'. try 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 endtry endif " Limit the search to lines visible in the window. let stoplinebottom = line('w$') let stoplinetop = line('w0') if i % 2 == 0 let stopline = stoplinebottom else let stopline = stoplinetop endif " Limit the search time to 300 msec to avoid a hang on very long lines. " This fails when a timeout is not supported. if mode() == 'i' || mode() == 'R' let timeout = exists("b:matchparen_insert_timeout") ? b:matchparen_insert_timeout : g:matchparen_insert_timeout else let timeout = exists("b:matchparen_timeout") ? b:matchparen_timeout : g:matchparen_timeout endif try 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) endtry if before > 0 if has_getcurpos call setpos('.', save_cursor) else call winrestview(save_cursor) endif endif " If a match is found setup match highlighting. if m_lnum > 0 && m_lnum >= stoplinetop && m_lnum <= stoplinebottom if exists('*matchaddpos') 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\)/' endif let w:paren_hl_on = 1 endif FUNCTION ale#Queue() Defined: ~/.vim/bundle/ale/autoload/ale.vim line 122 Called 1 time Total time: 0.000050 Self time: 0.000042 count total (s) self (s) 1 0.000001 if a:0 > 2 throw 'too many arguments!' 1 0.000001 endif 1 0.000003 let l:buffer = get(a:000, 1, v:null) 1 0.000002 if l:buffer is v:null 1 0.000002 let l:buffer = bufnr('') 1 0.000000 endif 1 0.000002 if type(l:buffer) isnot v:t_number throw 'buffer_number must be a Number' 1 0.000001 endif 1 0.000029 0.000021 if ale#ShouldDoNothing(l:buffer) 1 0.000001 return endif " Default linting_flag to '' let l:should_lint_file = get(a:000, 0) is# 'lint_file' if s:lint_timer != -1 call timer_stop(s:lint_timer) let s:lint_timer = -1 endif if a:delay > 0 let s:lint_timer = timer_start( a:delay, function('s:Lint', [l:buffer, l:should_lint_file])) else call s:Lint(l:buffer, l:should_lint_file, 0) endif FUNCTION 58_AllowedToCompleteInBuffer() Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim line 435 Called 21 times Total time: 0.001111 Self time: 0.001016 count total (s) self (s) 21 0.000118 let buftype = getbufvar( a:buffer, '&buftype' ) 21 0.000051 if has_key( s:buftype_blacklist, buftype ) return 0 21 0.000013 endif 21 0.000058 let filetype = getbufvar( a:buffer, '&filetype' ) 21 0.000392 0.000297 if empty( filetype ) || s:DisableOnLargeFile( a:buffer ) return 0 21 0.000005 endif 21 0.000149 let whitelist_allows = type( g:ycm_filetype_whitelist ) != type( {} ) || has_key( g:ycm_filetype_whitelist, '*' ) || has_key( g:ycm_filetype_whitelist, filetype ) 21 0.000104 let blacklist_allows = type( g:ycm_filetype_blacklist ) != type( {} ) || !has_key( g:ycm_filetype_blacklist, filetype ) 21 0.000034 let allowed = whitelist_allows && blacklist_allows 21 0.000015 if allowed let s:previous_allowed_buffer_number = bufnr( a:buffer ) 21 0.000009 endif 21 0.000012 return allowed FUNCTION fugitive#head() Defined: ~/.vim/bundle/vim-fugitive/autoload/fugitive.vim line 4595 Called 38 times Total time: 0.005470 Self time: 0.000814 count total (s) self (s) 38 0.000937 0.000358 if empty(s:Dir()) return '' 38 0.000025 endif 38 0.004452 0.000375 return fugitive#Head(a:0 ? a:1 : 0) FUNCTION MarkdownFold() Defined: /usr/local/Cellar/vim/8.1.1850/share/vim/vim81/ftplugin/markdown.vim line 22 Called 1962 times Total time: 9.375625 Self time: 9.375625 count total (s) self (s) 1962 0.003422 let line = getline(v:lnum) " Regular headers 1962 9.175347 let depth = match(line, '\(^#\+\)\@<=\( .*$\)\@=') 1962 0.002006 if depth > 0 18 0.000028 return ">" . depth 1944 0.000922 endif " Setext style headings 1944 0.004781 let nextline = getline(v:lnum + 1) 1944 0.090001 if (line =~ '^.\+$') && (nextline =~ '^=\+$') return ">1" 1944 0.000728 endif 1944 0.087685 if (line =~ '^.\+$') && (nextline =~ '^-\+$') return ">2" 1944 0.000646 endif 1944 0.001203 return "=" FUNCTION ModeName() Defined: ~/.vimrc line 217 Called 19 times Total time: 0.063672 Self time: 0.063672 count total (s) self (s) 19 0.000044 if a:mode == 'i' 4 0.000004 return 'I' 15 0.000027 elseif a:mode == 'v' hi User1 ctermbg=202 ctermfg=blue hi User2 ctermbg=215 ctermfg=202 hi User3 ctermbg=215 ctermfg=white hi User4 ctermbg=none ctermfg=215 hi User5 ctermbg=none ctermfg=202 redrawstatus return 'V' 15 0.000007 else 15 0.000081 hi User1 ctermbg=none ctermfg=33 15 0.000028 hi User2 ctermbg=none ctermfg=33 15 0.000028 hi User3 ctermbg=none ctermfg=33 15 0.000027 hi User4 ctermbg=none ctermfg=33 15 0.000026 hi User5 ctermbg=none ctermfg=232 15 0.063262 redrawstatus 15 0.000016 return 'N' endif FUNCTION UpdateStatusBar() Defined: ~/.vimrc line 273 Called 7 times Total time: 0.000170 Self time: 0.000170 count total (s) self (s) 7 0.000157 execute 'let &ro = &ro' FUNCTION 58_AllowedToCompleteInCurrentBuffer() Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim line 462 Called 21 times Total time: 0.001452 Self time: 0.000341 count total (s) self (s) 21 0.001443 0.000332 return s:AllowedToCompleteInBuffer( '%' ) FUNCTION FugitiveGitDir() Defined: ~/.vim/bundle/vim-fugitive/plugin/fugitive.vim line 11 Called 76 times Total time: 0.000312 Self time: 0.000312 count total (s) self (s) 76 0.000080 if !a:0 || a:1 ==# -1 76 0.000199 return get(b:, 'git_dir', '') elseif type(a:1) == type(0) return getbufvar(a:1, 'git_dir') elseif type(a:1) == type('') return substitute(s:Slash(a:1), '/$', '', '') else return '' endif FUNCTION 58_OnCursorMovedNormalMode() Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim line 693 Called 1 time Total time: 0.000083 Self time: 0.000019 count total (s) self (s) 1 0.000082 0.000018 if !s:AllowedToCompleteInCurrentBuffer() 1 0.000001 return endif exec s:python_command "ycm_state.OnCursorMoved()" FUNCTION 58_OnInsertChar() Defined: ~/.vim/bundle/YouCompleteMe/autoload/youcompleteme.vim line 660 Called 17 times Total time: 0.001501 Self time: 0.000325 count total (s) self (s) 17 0.001480 0.000304 if !s:AllowedToCompleteInCurrentBuffer() 17 0.000006 return endif call timer_stop( s:pollers.completion.id ) call s:CloseCompletionMenu() FUNCTION InsertStatuslineColor() Defined: ~/.vimrc line 201 Called 1 time Total time: 0.000022 Self time: 0.000022 count total (s) self (s) 1 0.000001 if a:mode == 'i' 1 0.000007 hi User1 ctermbg=37 ctermfg=black 1 0.000002 hi User2 ctermbg=44 ctermfg=37 1 0.000002 hi User3 ctermbg=44 ctermfg=white 1 0.000001 hi User4 ctermbg=none ctermfg=44 1 0.000001 hi User5 ctermbg=none ctermfg=51 elseif a:mode == 'r' hi User5 ctermbg=none ctermfg=240 elseif a:mode == 'v' hi User5 ctermbg=none ctermfg=240 else hi User5 ctermbg=Red ctermfg=240 1 0.000001 endif FUNCTION ale#ShouldDoNothing() Defined: ~/.vim/bundle/ale/autoload/ale.vim line 25 Called 1 time Total time: 0.000008 Self time: 0.000008 count total (s) self (s) " The checks are split into separate if statements to make it possible to " profile each check individually with Vim's profiling tools. " " Do nothing if ALE is disabled. 1 0.000004 if !getbufvar(a:buffer, 'ale_enabled', get(g:, 'ale_enabled', 0)) 1 0.000000 return 1 endif " Don't perform any checks when newer NeoVim versions are exiting. if get(v:, 'exiting', v:null) isnot v:null return 1 endif let l:filetype = getbufvar(a:buffer, '&filetype') " Do nothing when there's no filetype. if l:filetype is# '' return 1 endif " Do nothing for diff buffers. if getbufvar(a:buffer, '&diff') return 1 endif " Do nothing for blacklisted files. if index(get(g:, 'ale_filetype_blacklist', []), l:filetype) >= 0 return 1 endif " Do nothing if running from command mode. if s:getcmdwintype_exists && !empty(getcmdwintype()) return 1 endif let l:filename = fnamemodify(bufname(a:buffer), ':t') " Do nothing for directories. if l:filename is# '.' return 1 endif " Don't start linting and so on when an operator is pending. if ale#util#Mode(1) is# 'no' return 1 endif " Do nothing if running in the sandbox. if ale#util#InSandbox() return 1 endif " Do nothing if the file is too large. if ale#FileTooLarge(a:buffer) return 1 endif " Do nothing from CtrlP buffers with CtrlP-funky. if exists(':CtrlPFunky') is 2&& getbufvar(a:buffer, '&l:statusline') =~# 'CtrlPMode.*funky' return 1 endif return 0 FUNCTION 55_Dir() Defined: ~/.vim/bundle/vim-fugitive/autoload/fugitive.vim line 225 Called 76 times Total time: 0.001054 Self time: 0.000742 count total (s) self (s) 76 0.001031 0.000719 return a:0 ? FugitiveGitDir(a:1) : FugitiveGitDir() FUNCTIONS SORTED ON TOTAL TIME count total (s) self (s) function 1962 9.375625 MarkdownFold() 19 0.063672 ModeName() 38 0.005470 0.000814 fugitive#head() 38 0.004077 0.003602 fugitive#Head() 17 0.001501 0.000325 58_OnInsertChar() 21 0.001452 0.000341 58_AllowedToCompleteInCurrentBuffer() 21 0.001111 0.001016 58_AllowedToCompleteInBuffer() 76 0.001054 0.000742 55_Dir() 19 0.000844 ActiveStatus() 5 0.000380 32_Highlight_Matching_Pair() 76 0.000312 FugitiveGitDir() 2 0.000178 0.000040 58_OnTextChangedInsertMode() 7 0.000170 UpdateStatusBar() 21 0.000095 58_DisableOnLargeFile() 1 0.000094 0.000020 58_OnInsertLeave() 1 0.000083 0.000019 58_OnCursorMovedNormalMode() 1 0.000050 0.000042 ale#Queue() 1 0.000022 InsertStatuslineColor() 1 0.000021 ale#Var() 1 0.000008 ale#ShouldDoNothing() FUNCTIONS SORTED ON SELF TIME count total (s) self (s) function 1962 9.375625 MarkdownFold() 19 0.063672 ModeName() 38 0.004077 0.003602 fugitive#Head() 21 0.001111 0.001016 58_AllowedToCompleteInBuffer() 19 0.000844 ActiveStatus() 38 0.005470 0.000814 fugitive#head() 76 0.001054 0.000742 55_Dir() 5 0.000380 32_Highlight_Matching_Pair() 21 0.001452 0.000341 58_AllowedToCompleteInCurrentBuffer() 17 0.001501 0.000325 58_OnInsertChar() 76 0.000312 FugitiveGitDir() 7 0.000170 UpdateStatusBar() 21 0.000095 58_DisableOnLargeFile() 1 0.000050 0.000042 ale#Queue() 2 0.000178 0.000040 58_OnTextChangedInsertMode() 1 0.000022 InsertStatuslineColor() 1 0.000021 ale#Var() 1 0.000094 0.000020 58_OnInsertLeave() 1 0.000083 0.000019 58_OnCursorMovedNormalMode() 1 0.000008 ale#ShouldDoNothing()