Last active
September 14, 2020 12:11
-
-
Save quyleanh/68cfbd9cb7f5932893258db533a5ff08 to your computer and use it in GitHub Desktop.
SpaceVim Profile Log
This file contains hidden or 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 SpaceVim#plugins#enable_plug() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/plugins.vim line 268 | |
Called 1 time | |
Total time: 0.000002 | |
Self time: 0.000002 | |
count total (s) self (s) | |
1 0.000002 return g:_spacevim_neobundle_installed || g:_spacevim_dein_installed || g:_spacevim_vim_plug_installed | |
FUNCTION <SNR>198_filereadable() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vital/_vimfiler/System/Cache/Deprecated.vim line 35 | |
Called 3 times | |
Total time: 0.000105 | |
Self time: 0.000029 | |
count total (s) self (s) | |
3 0.000090 0.000013 let cache_name = s:_encode_name(a:cache_dir, a:filename) | |
3 0.000015 return filereadable(cache_name) | |
FUNCTION vimfiler#custom#get() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/custom.vim line 7 | |
Called 3 times | |
Total time: 0.000015 | |
Self time: 0.000015 | |
count total (s) self (s) | |
3 0.000005 if !exists('s:custom') | |
1 0.000001 let s:custom = {} | |
1 0.000001 let s:custom.profiles = {} | |
3 0.000001 endif | |
3 0.000002 return s:custom | |
FUNCTION SpaceVim#api#vim#get() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/vim.vim line 220 | |
Called 1 time | |
Total time: 0.000010 | |
Self time: 0.000010 | |
count total (s) self (s) | |
1 0.000010 return deepcopy(s:self) | |
FUNCTION dein#util#_redir() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/util.vim line 610 | |
Called 2 times | |
Total time: 0.000049 | |
Self time: 0.000049 | |
count total (s) self (s) | |
2 0.000003 if exists('*execute') | |
2 0.000045 return execute(a:cmd) | |
else | |
let [save_verbose, save_verbosefile] = [&verbose, &verbosefile] | |
set verbose=0 verbosefile= | |
redir => res | |
silent! execute a:cmd | |
redir END | |
let [&verbose, &verbosefile] = [save_verbose, save_verbosefile] | |
return res | |
endif | |
FUNCTION dein#util#_call_hook() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/util.vim line 504 | |
Called 3 times | |
Total time: 0.156539 | |
Self time: 0.000238 | |
count total (s) self (s) | |
3 0.000005 let hook = 'hook_' . a:hook_name | |
3 0.000172 0.000122 let plugins = filter(dein#util#_get_plugins((a:0 ? a:1 : [])), "((a:hook_name !=# 'source' && a:hook_name !=# 'post_source') || v:val.sourced) && has_key(v:val, hook) && isdirectory(v:val.path)") | |
13 0.000186 0.000033 for plugin in filter(dein#util#_tsort(plugins), 'has_key(v:val, hook)') | |
10 0.156162 0.000064 call dein#util#_execute_hook(plugin, plugin[hook]) | |
13 0.000005 endfor | |
FUNCTION <SNR>5_unify_path() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/file.vim line 234 | |
Called 8 times | |
Total time: 0.000155 | |
Self time: 0.000155 | |
count total (s) self (s) | |
8 0.000013 let mod = a:0 > 0 ? a:1 : ':p' | |
8 0.000107 let path = resolve(fnamemodify(a:path, mod . ':gs?[\\/]?/?')) | |
8 0.000022 if isdirectory(path) && path[-1:] !=# '/' | |
7 0.000006 return path . '/' | |
1 0.000001 elseif a:path[-1:] ==# '/' && path[-1:] !=# '/' | |
return path . '/' | |
1 0.000000 else | |
1 0.000000 return path | |
endif | |
FUNCTION provider#pythonx#DetectByModule() | |
Defined: /usr/share/nvim/runtime/autoload/provider/pythonx.vim line 42 | |
Called 2 times | |
Total time: 0.022439 | |
Self time: 0.000065 | |
count total (s) self (s) | |
2 0.000026 0.000014 let python_exe = s:get_python_executable_from_host_var(a:major_version) | |
2 0.000002 if !empty(python_exe) | |
return [python_exe, ''] | |
2 0.000001 endif | |
2 0.000020 0.000009 let candidates = s:get_python_candidates(a:major_version) | |
2 0.000002 let errors = [] | |
2 0.000003 for exe in candidates | |
2 0.022372 0.000019 let [result, error] = provider#pythonx#CheckForModule(exe, a:module, a:major_version) | |
2 0.000003 if result | |
2 0.000004 return [exe, error] | |
endif | |
" Accumulate errors in case we don't find any suitable Python executable. | |
call add(errors, error) | |
endfor | |
" No suitable Python executable found. | |
return ['', 'provider/pythonx: Could not load Python '.a:major_version.":\n".join(errors, "\n")] | |
FUNCTION SpaceVim#layers#load() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers.vim line 26 | |
Called 11 times | |
Total time: 0.003630 | |
Self time: 0.000658 | |
count total (s) self (s) | |
11 0.000011 if a:layer ==# '-l' | |
call s:list_layers() | |
return | |
11 0.000003 endif | |
11 0.000010 let loadable = 1 | |
11 0.000004 try | |
11 0.003215 0.000266 let loadable = SpaceVim#layers#{a:layer}#loadable() | |
11 0.000132 catch /^Vim\%((\a\+)\)\=:E117/ | |
11 0.000009 endtry | |
11 0.000026 if index(s:enabled_layers, a:layer) == -1 | |
10 0.000006 if loadable | |
10 0.000017 call add(s:enabled_layers, a:layer) | |
else | |
call SpaceVim#logger#warn('Failed to load ' . a:layer . ' layer, read :h SpaceVim-layer-' . a:layer . ' for more info!', 0) | |
10 0.000003 endif | |
11 0.000003 endif | |
11 0.000013 if a:0 == 1 && type(a:1) == 4 | |
2 0.000001 try | |
2 0.000038 0.000015 call SpaceVim#layers#{a:layer}#set_variable(a:1) | |
2 0.000004 let s:layers_vars[a:layer] = a:1 | |
catch /^Vim\%((\a\+)\)\=:E117/ | |
2 0.000001 endtry | |
11 0.000003 endif | |
11 0.000011 if a:0 > 0 && type(a:1) == 1 | |
for l in a:000 | |
call SpaceVim#layers#load(l) | |
endfor | |
11 0.000003 endif | |
FUNCTION SpaceVim#layers#ui#plugins() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/ui.vim line 10 | |
Called 1 time | |
Total time: 0.000026 | |
Self time: 0.000020 | |
count total (s) self (s) | |
1 0.000009 let plugins = [ [g:_spacevim_root_dir . 'bundle/indentLine', {'merged' : 0}], [g:_spacevim_root_dir . 'bundle/tagbar', {'loadconf' : 1, 'merged' : 0}], [g:_spacevim_root_dir . 'bundle/tagbar-makefile.vim', {'merged': 0}], [g:_spacevim_root_dir . 'bundle/tagbar-proto.vim', {'merged': 0}], [g:_spacevim_root_dir . 'bundle/vim-choosewin', {'merged' : 0}], [g:_spacevim_root_dir . 'bundle/vim-startify', {'loadconf' : 1, 'merged' : 0}], ] | |
1 0.000011 0.000005 if !SpaceVim#layers#isLoaded('core#statusline') | |
call add(plugins, [g:_spacevim_root_dir . 'bundle/vim-airline', { 'merged' : 0, 'loadconf' : 1}]) | |
call add(plugins, [g:_spacevim_root_dir . 'bundle/vim-airline-themes', { 'merged' : 0}]) | |
1 0.000000 endif | |
1 0.000001 return plugins | |
FUNCTION SpaceVim#layers#edit#plugins() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/edit.vim line 16 | |
Called 1 time | |
Total time: 0.029180 | |
Self time: 0.022122 | |
count total (s) self (s) | |
1 0.007118 0.000060 let plugins = [ [g:_spacevim_root_dir . 'bundle/vim-surround'], [g:_spacevim_root_dir . 'bundle/vim-repeat'], [g:_spacevim_root_dir . 'bundle/vim-emoji'], [g:_spacevim_root_dir . 'bundle/vim-expand-region', { 'loadconf' : 1}], [g:_spacevim_root_dir . 'bundle/vim-textobj-user'], [g:_spacevim_root_dir . 'bundle/vim-textobj-indent'], [g:_spacevim_root_dir . 'bundle/vim-textobj-line'], [g:_spacevim_root_dir . 'bundle/vim-table-mode'], [g:_spacevim_root_dir . 'bundle/vim-textobj-entire'], [g:_spacevim_root_dir . 'bundle/wildfire.vim',{'on_map' : '<Plug>(wildfire-'}], [g:_spacevim_root_dir . 'bundle/vim-easymotion'], [g:_spacevim_root_dir . 'bundle/vim-easyoperator-line'], [g:_spacevim_root_dir . 'bundle/editorconfig-vim', { 'merged' : 0, 'if' : has('python') || has('python3')}], [g:_spacevim_root_dir . 'bundle/vim-jplus', { 'on_map' : '<Plug>(jplus' }], [g:_spacevim_root_dir . 'bundle/tabular', { 'merged' : 0}], [g:_spacevim_root_dir . 'bundle/vim-better-whitespace', { 'on_cmd' : ['StripWhitespace', 'ToggleWhitespace', 'DisableWhitespace', 'EnableWhitespace']}], ] | |
1 0.022045 if executable('fcitx') | |
call add(plugins,[g:_spacevim_root_dir . 'bundle/fcitx.vim', { 'on_event' : 'InsertEnter'}]) | |
1 0.000001 endif | |
1 0.000002 if g:spacevim_enable_bepo_layout | |
call add(plugins,[g:_spacevim_root_dir . 'bundle/vim-bepo', { 'merged' : 0}]) | |
1 0.000000 endif | |
1 0.000004 return plugins | |
FUNCTION <SNR>190__function() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vital/vimfiler.vim line 11 | |
Called 9 times | |
Total time: 0.000018 | |
Self time: 0.000018 | |
count total (s) self (s) | |
9 0.000016 return function(a:fstr) | |
FUNCTION <SNR>59__function() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/mapping/space.vim line 728 | |
Called 1 time | |
Total time: 0.000003 | |
Self time: 0.000003 | |
count total (s) self (s) | |
1 0.000002 return function(a:fstr) | |
FUNCTION <SNR>137_append() | |
Defined: ~/.SpaceVim/bundle/unite.vim/plugin/unite/window.vim line 24 | |
Called 2 times | |
Total time: 0.000015 | |
Self time: 0.000015 | |
count total (s) self (s) | |
2 0.000002 if &filetype == 'unite' | |
" Ignore unite window. | |
return | |
2 0.000000 endif | |
" Save unite window information. | |
2 0.000009 let w:unite_window = { 'time' : localtime(), 'cwd' : getcwd(),} | |
FUNCTION SpaceVim#api#vim#message#get() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/vim/message.vim line 59 | |
Called 1 time | |
Total time: 0.000003 | |
Self time: 0.000003 | |
count total (s) self (s) | |
1 0.000003 return deepcopy(s:self) | |
FUNCTION SpaceVim#plugins#add() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/plugins.vim line 224 | |
Called 47 times | |
Total time: 0.018605 | |
Self time: 0.001929 | |
count total (s) self (s) | |
47 0.000054 let g:spacevim_plugin_name = '' | |
47 0.000044 if g:spacevim_plugin_manager ==# 'neobundle' | |
exec 'NeoBundle "'.a:repo.'"'.','.join(a:000,',') | |
let g:spacevim_plugin_name = split(a:repo, '/')[-1] | |
47 0.000037 elseif g:spacevim_plugin_manager ==# 'dein' | |
47 0.000045 if len(a:000) > 0 | |
36 0.013278 0.000202 call dein#add(a:repo,s:parser(a:000[0])) | |
11 0.000003 else | |
11 0.003633 0.000033 call dein#add(a:repo) | |
47 0.000014 endif | |
47 0.000054 let g:spacevim_plugin_name = g:dein#name | |
47 0.000080 call add(g:_spacevim_plugins, g:dein#name) | |
elseif g:spacevim_plugin_manager ==# 'vim-plug' | |
if len(a:000) > 0 | |
exec "Plug '".a:repo."', ".join(a:000,',') | |
else | |
exec "Plug '".a:repo."'" | |
endif | |
let g:spacevim_plugin_name = split(a:repo, '/')[-1] | |
47 0.000012 endif | |
47 0.000084 let str = get(g:,'_spacevim_plugin_layer', 'custom plugin') | |
47 0.000055 let str = '[' . str . ']' | |
47 0.000108 let str = str . repeat(' ', 25 - len(str)) | |
47 0.000543 exec 'call add(g:unite_source_menu_menus' . '.AddedPlugins.command_candidates, ["'. str . '[' . a:repo . (len(a:000) > 0 ? (']' . repeat(' ', 40 - len(a:repo)) . '[lazy loaded] [' . string(a:000[0])) : '') . ']","OpenBrowser https://github.com/' . a:repo . '"])' | |
47 0.000063 call add(s:plugins, a:repo) | |
FUNCTION <SNR>197_nowait_nmap() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/mappings.vim line 363 | |
Called 68 times | |
Total time: 0.000142 | |
Self time: 0.000142 | |
count total (s) self (s) | |
68 0.000132 return 'nmap <buffer>' . ((v:version > 703 || (v:version == 703 && has('patch1261'))) ? '<nowait>' : '') | |
FUNCTION SpaceVim#api#password#get() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/password.vim line 114 | |
Called 1 time | |
Total time: 0.000003 | |
Self time: 0.000003 | |
count total (s) self (s) | |
1 0.000002 return deepcopy(s:self) | |
FUNCTION <SNR>94_set() | |
Defined: ~/.SpaceVim/bundle/neomake/autoload/neomake/config.vim line 152 | |
Called 2 times | |
Total time: 0.000071 | |
Self time: 0.000017 | |
count total (s) self (s) | |
2 0.000067 0.000012 let [c, k] = s:resolve_name(a:dict, a:name, 1, a:validate) | |
2 0.000003 let c[k] = a:value | |
2 0.000001 return c | |
FUNCTION <SNR>36_percentage() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/core/statusline.vim line 167 | |
Called 1 time | |
Total time: 0.000001 | |
Self time: 0.000001 | |
count total (s) self (s) | |
1 0.000001 return ' %P ' | |
FUNCTION <SNR>36_buffer_name() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/core/statusline.vim line 321 | |
Called 1 time | |
Total time: 0.000007 | |
Self time: 0.000007 | |
count total (s) self (s) | |
1 0.000004 if get(b:, '_spacevim_statusline_showbfname', 0) == 1 || g:spacevim_enable_statusline_bfpath | |
return ' ' . bufname('%') | |
1 0.000000 else | |
1 0.000000 return '' | |
endif | |
FUNCTION SpaceVim#layers#core#plugins() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/core.vim line 11 | |
Called 1 time | |
Total time: 0.022306 | |
Self time: 0.022306 | |
count total (s) self (s) | |
1 0.000001 let plugins = [] | |
1 0.000001 if g:spacevim_filemanager ==# 'nerdtree' | |
call add(plugins, [g:_spacevim_root_dir . 'bundle/nerdtree', { 'merged' : 0, 'loadconf' : 1}]) | |
1 0.000001 elseif g:spacevim_filemanager ==# 'vimfiler' | |
1 0.000004 call add(plugins, [g:_spacevim_root_dir . 'bundle/vimfiler.vim',{ 'merged' : 0, 'loadconf' : 1 , 'loadconf_before' : 1, 'on_cmd' : ['VimFiler', 'VimFilerBufferDir'] }]) | |
1 0.000002 call add(plugins, [g:_spacevim_root_dir . 'bundle/unite.vim',{ 'merged' : 0, 'loadconf' : 1 }]) | |
1 0.022260 call add(plugins, [g:_spacevim_root_dir . 'bundle/vimproc.vim', {'build' : [(executable('gmake') ? 'gmake' : 'make')]}]) | |
elseif g:spacevim_filemanager ==# 'defx' | |
call add(plugins, [g:_spacevim_root_dir . 'bundle/defx.nvim',{'merged' : 0, 'loadconf' : 1 , 'loadconf_before' : 1}]) | |
call add(plugins, [g:_spacevim_root_dir . 'bundle/defx-git',{'merged' : 0, 'loadconf' : 1}]) | |
call add(plugins, [g:_spacevim_root_dir . 'bundle/defx-icons',{'merged' : 0}]) | |
1 0.000001 endif | |
1 0.000001 if !g:spacevim_vimcompatible | |
1 0.000004 call add(plugins, [g:_spacevim_root_dir . 'bundle/clever-f.vim', {'merged' : 0}]) | |
1 0.000000 endif | |
1 0.000003 call add(plugins, [g:_spacevim_root_dir . 'bundle/nerdcommenter', { 'loadconf' : 1, 'merged' : 0}]) | |
1 0.000002 if exists('*matchaddpos') | |
1 0.000002 call add(plugins, [g:_spacevim_root_dir . 'bundle/vim-matchup', {'merged' : 0}]) | |
1 0.000000 endif | |
1 0.000002 call add(plugins, [g:_spacevim_root_dir . 'bundle/gruvbox', {'loadconf' : 1, 'merged' : 0}]) | |
1 0.000002 call add(plugins, [g:_spacevim_root_dir . 'bundle/open-browser.vim', { 'merged' : 0, 'loadconf' : 1,}]) | |
1 0.000003 call add(plugins, [g:_spacevim_root_dir . 'bundle/vim-grepper' , { 'on_cmd' : 'Grepper', 'loadconf' : 1} ]) | |
1 0.000001 return plugins | |
FUNCTION delimitMate#Get() | |
Defined: ~/.SpaceVim/bundle/delimitMate/autoload/delimitMate.vim line 274 | |
Called 178 times | |
Total time: 0.001967 | |
Self time: 0.000532 | |
count total (s) self (s) | |
178 0.001942 0.000507 return call('s:get', a:000) | |
FUNCTION vital#_vimfiler#Prelude#import() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vital/_vimfiler/Prelude.vim line 5 | |
Called 1 time | |
Total time: 0.000050 | |
Self time: 0.000050 | |
count total (s) self (s) | |
1 0.000049 return map({'escape_pattern': '', 'is_funcref': '', 'path2directory': '', 'wcswidth': '', 'is_string': '', 'input_helper': '', 'is_number': '', 'is_cygwin': '', 'path2project_directory': '', 'strwidthpart_reverse': '', 'input_safe': '', 'is_list': '', 'truncate_skipping': '', 'glob': '', 'truncate': '', 'is_dict': '', 'set_default': '', 'is_numeric': '', 'getchar_safe': '', 'substitute_path_separator': '', 'is_mac': '', 'strwidthpart': '', 'getchar': '', 'is_unix': '', 'is_windows': '', 'globpath': '', 'escape_file_searching': '', 'is_float': '', 'smart_execute_command': ''}, 'function("s:" . v:key)') | |
FUNCTION unite#filters#matcher_vimfiler_mask#define() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/unite/filters/matcher_vimfiler_mask.vim line 7 | |
Called 5 times | |
Total time: 0.000005 | |
Self time: 0.000005 | |
count total (s) self (s) | |
5 0.000004 return s:matcher | |
FUNCTION dein#util#_join_rtp() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/util.vim line 573 | |
Called 3 times | |
Total time: 0.000028 | |
Self time: 0.000028 | |
count total (s) self (s) | |
3 0.000027 return (stridx(a:runtimepath, '\,') < 0 && stridx(a:rtp, ',') < 0) ? join(a:list, ',') : join(map(copy(a:list), 's:escape(v:val)'), ',') | |
FUNCTION dein#config() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein.vim line 191 | |
Called 13 times | |
Total time: 0.005213 | |
Self time: 0.000092 | |
count total (s) self (s) | |
13 0.005208 0.000088 return type(a:arg) != 3 ? dein#util#_config(a:arg, get(a:000, 0, {})) : map(copy(a:arg), 'dein#util#_config(v:val, a:1)') | |
FUNCTION expand_region#use_select_mode() | |
Defined: ~/.SpaceVim/bundle/vim-expand-region/autoload/expand_region.vim line 61 | |
Called 1 time | |
Total time: 0.000005 | |
Self time: 0.000005 | |
count total (s) self (s) | |
1 0.000005 return g:expand_region_use_select_mode || index(split(s:saved_selectmode, ','), 'cmd') != -1 | |
FUNCTION <SNR>154_InitVariable() | |
Defined: ~/.SpaceVim/bundle/nerdcommenter/plugin/NERD_commenter.vim line 21 | |
Called 18 times | |
Total time: 0.000068 | |
Self time: 0.000068 | |
count total (s) self (s) | |
18 0.000021 if !exists(a:var) | |
11 0.000027 execute 'let ' . a:var . ' = ' . "'" . a:value . "'" | |
11 0.000005 return 1 | |
7 0.000002 endif | |
7 0.000002 return 0 | |
FUNCTION unite#init#_loaded_sources() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/init.vim line 576 | |
Called 4 times | |
Total time: 0.005294 | |
Self time: 0.000377 | |
count total (s) self (s) | |
4 0.004930 0.000035 let all_sources = unite#init#_sources( unite#helper#get_source_names(a:sources)) | |
4 0.000003 let sources = [] | |
4 0.000003 let number = 0 | |
8 0.000050 0.000029 for [source, args] in unite#helper#get_source_args(a:sources) | |
4 0.000005 if type(source) == type('') | |
4 0.000004 let source_name = source | |
4 0.000003 unlet source | |
4 0.000005 if !has_key(all_sources, source_name) | |
if a:context.unite__is_vimfiler || a:context.unite__is_complete | |
" Ignore error. | |
continue | |
endif | |
if source_name =~ '^-' | |
call unite#util#print_error( 'Invalid option "' . source_name . '" is detected.') | |
throw 'unite.vim: Invalid option' | |
else | |
call unite#util#print_error( 'Invalid source name "' . source_name . '" is detected.') | |
if source_name ==# 'file_mru' || source_name ==# 'directory_mru' | |
call unite#util#print_error( 'To use MRU features, you must install neomru from ' . 'https://github.com/Shougo/neomru.vim.') | |
endif | |
throw 'unite.vim: Invalid source' | |
endif | |
4 0.000002 endif | |
4 0.000040 let source = deepcopy(all_sources[source_name]) | |
else | |
" Use source dictionary. | |
call unite#init#_sources(source) | |
4 0.000001 endif | |
4 0.000004 let source.args = args | |
4 0.000004 let source.unite__is_invalidate = 1 | |
4 0.000062 let source.unite__context = deepcopy(a:context) | |
4 0.000007 let source.unite__context.is_async = has_key(source, 'async_gather_candidates') | |
4 0.000004 let source.unite__context.source = source | |
4 0.000003 let source.unite__candidates = [] | |
4 0.000003 let source.unite__cached_candidates = [] | |
4 0.000003 let source.unite__cached_change_candidates = [] | |
4 0.000003 let source.unite__number = number | |
4 0.000004 let number += 1 | |
4 0.000006 call add(sources, source) | |
4 0.000002 unlet source | |
8 0.000006 endfor | |
4 0.000003 return sources | |
FUNCTION <SNR>23_neomake_cursor_move_delay() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/checkers.vim line 128 | |
Called 1 time | |
Total time: 0.000019 | |
Self time: 0.000010 | |
count total (s) self (s) | |
1 0.000013 0.000004 call s:neomake_signatures_clear() | |
1 0.000005 let s:neomake_cursormoved_timer = timer_start(g:neomake_cursormoved_delay, function('s:neomake_signatures_current_error')) | |
FUNCTION vimfiler#helper#_parse_path() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/helper.vim line 47 | |
Called 4 times | |
Total time: 0.000161 | |
Self time: 0.000144 | |
count total (s) self (s) | |
4 0.000005 let path = a:path | |
4 0.000038 let source_name = matchstr(path, '^\h[^:]*\ze:') | |
4 0.000028 0.000023 if (vimfiler#util#is_windows() && len(source_name) == 1) || source_name == '' | |
" Default source. | |
2 0.000002 let source_name = 'file' | |
2 0.000002 let source_arg = path | |
2 0.000019 0.000007 if vimfiler#util#is_win_path(source_arg) | |
let source_arg = vimfiler#util#substitute_path_separator( fnamemodify(expand(source_arg), ':p')) | |
2 0.000001 endif | |
2 0.000001 else | |
2 0.000004 let source_arg = path[len(source_name)+1 :] | |
4 0.000001 endif | |
4 0.000032 let source_args = source_arg == '' ? [] : map(split(source_arg, '\\\@<!:', 1), 'substitute(v:val, ''\\\(.\)'', "\\1", "g")') | |
4 0.000006 return insert(source_args, source_name) | |
FUNCTION <SNR>190__dot_to_sharp() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vital/vimfiler.vim line 235 | |
Called 7 times | |
Total time: 0.000025 | |
Self time: 0.000025 | |
count total (s) self (s) | |
7 0.000024 return substitute(a:name, '\.', '#', 'g') | |
FUNCTION dein#util#_get_runtime_path() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/util.vim line 33 | |
Called 2 times | |
Total time: 0.000043 | |
Self time: 0.000014 | |
count total (s) self (s) | |
2 0.000002 if g:dein#_runtime_path !=# '' | |
1 0.000001 return g:dein#_runtime_path | |
1 0.000000 endif | |
1 0.000034 0.000005 let g:dein#_runtime_path = dein#util#_get_cache_path() . '/.dein' | |
1 0.000002 if !isdirectory(g:dein#_runtime_path) | |
call mkdir(g:dein#_runtime_path, 'p') | |
1 0.000000 endif | |
1 0.000000 return g:dein#_runtime_path | |
FUNCTION <SNR>122_reltimefloat() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup/perf.vim line 103 | |
Called 17 times | |
Total time: 0.000029 | |
Self time: 0.000029 | |
count total (s) self (s) | |
17 0.000025 return reltimefloat(a:time) | |
FUNCTION SpaceVim#plugins#defind_hooks() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/plugins.vim line 196 | |
Called 13 times | |
Total time: 0.005382 | |
Self time: 0.000170 | |
count total (s) self (s) | |
13 0.000013 if g:spacevim_plugin_manager ==# 'neobundle' | |
let s:hooks = neobundle#get_hooks(a:bundle) | |
func! s:hooks.on_source(bundle) abort | |
call SpaceVim#util#loadConfig('plugins/' . split(a:bundle['name'],'\.')[0] . '.vim') | |
endf | |
13 0.000011 elseif g:spacevim_plugin_manager ==# 'dein' | |
13 0.005307 0.000095 call dein#config(g:dein#name, { 'hook_source' : "call SpaceVim#util#loadConfig('plugins/" . split(g:dein#name,'\.')[0] . ".vim')" }) | |
13 0.000003 endif | |
FUNCTION <SNR>140_Unmap() | |
Defined: ~/.SpaceVim/bundle/delimitMate/plugin/delimitMate.vim line 183 | |
Called 4 times | |
Total time: 0.001978 | |
Self time: 0.001743 | |
count total (s) self (s) | |
4 0.000342 0.000111 let imaps = s:get('right_delims', []) + s:get('left_delims', []) + s:get('quotes_list', []) + s:get('apostrophes_list', []) + ['<BS>', '<C-h>', '<S-BS>', '<Del>', '<CR>', '<Space>', '<S-Tab>', '<Esc>'] + ['<Up>', '<Down>', '<Left>', '<Right>', '<LeftMouse>', '<RightMouse>'] + ['<C-Left>', '<C-Right>'] + ['<Home>', '<End>', '<PageUp>', '<PageDown>', '<S-Down>', '<S-Up>', '<C-G>g'] | |
126 0.000057 for map in imaps | |
122 0.001160 if maparg(map, "i") =~# '^<Plug>delimitMate' | |
43 0.000023 if map == '|' | |
let map = '<Bar>' | |
43 0.000009 endif | |
43 0.000137 exec 'silent! iunmap <buffer> ' . map | |
122 0.000026 endif | |
126 0.000034 endfor | |
4 0.000026 0.000022 silent! doautocmd <nomodeline> User delimitMate_unmap | |
4 0.000005 let b:delimitMate_enabled = 0 | |
FUNCTION <SNR>68_generate_dummy_mappings() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/parse.vim line 329 | |
Called 2 times | |
Total time: 0.000250 | |
Self time: 0.000250 | |
count total (s) self (s) | |
2 0.000002 let a:plugin.dummy_mappings = [] | |
2 0.000015 let items = type(a:plugin.on_map) == 4 ? map(items(a:plugin.on_map), "[split(v:val[0], '\\zs'), dein#util#_convert2list(v:val[1])]") : map(copy(a:plugin.on_map), "type(v:val) == 3 ? [split(v:val[0], '\\zs'), v:val[1:]] : [['n', 'x'], [v:val]]") | |
4 0.000004 for [modes, mappings] in items | |
2 0.000026 if mappings ==# ['<Plug>'] | |
" Use plugin name. | |
let mappings = ['<Plug>(' . a:plugin.normalized_name] | |
if stridx(a:plugin.normalized_name, '-') >= 0 | |
" The plugin mappings may use "_" instead of "-". | |
call add(mappings, '<Plug>(' . substitute(a:plugin.normalized_name, '-', '_', 'g')) | |
endif | |
2 0.000000 endif | |
4 0.000004 for mapping in mappings | |
" Define dummy mappings. | |
2 0.000015 let prefix = printf('dein#autoload#_on_map(%s, %s,', string(substitute(mapping, '<', '<lt>', 'g')), string(a:plugin.name)) | |
6 0.000004 for mode in modes | |
4 0.000021 let raw_map = mode.'noremap <unique><silent> '.mapping . (mode ==# 'c' ? " \<C-r>=" : mode ==# 'i' ? " \<C-o>:call " : " :\<C-u>call ") . prefix . string(mode) . ')<CR>' | |
4 0.000009 call add(a:plugin.dummy_mappings, [mode, mapping, raw_map]) | |
4 0.000083 silent! execute raw_map | |
6 0.000003 endfor | |
4 0.000001 endfor | |
4 0.000002 endfor | |
FUNCTION <SNR>81_get_process() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/util.vim line 53 | |
Called 2 times | |
Total time: 0.000318 | |
Self time: 0.000013 | |
count total (s) self (s) | |
2 0.000003 if !exists('s:Process') | |
1 0.000312 0.000007 let s:Process = unite#util#get_vital().import('Process') | |
2 0.000001 endif | |
2 0.000001 return s:Process | |
FUNCTION AddTabularPattern() | |
Defined: ~/.SpaceVim/bundle/tabular/plugin/Tabular.vim line 172 | |
Called 6 times | |
Total time: 0.000657 | |
Self time: 0.000220 | |
count total (s) self (s) | |
6 0.000003 try | |
6 0.000089 0.000032 let [ commandmap, rest ] = s:ChooseCommandMap(a:command) | |
6 0.000033 let name = matchstr(rest, '.\{-}\ze\s*/') | |
6 0.000027 let pattern = substitute(rest, '.\{-}\s*\ze/', '', '') | |
6 0.000406 0.000025 let [ pattern, format ] = s:ParsePattern(pattern) | |
6 0.000007 if empty(name) || empty(pattern) | |
throw "Invalid arguments!" | |
6 0.000002 endif | |
6 0.000007 if !a:force && has_key(commandmap, name) | |
throw string(name) . " is already defined, use ! to overwrite." | |
6 0.000002 endif | |
6 0.000011 let command = "tabular#TabularizeStrings(a:lines, " . string(pattern) | |
6 0.000005 if !empty(format) | |
6 0.000010 let command .= ", " . string(format) | |
6 0.000002 endif | |
6 0.000005 let command .= ")" | |
6 0.000016 let commandmap[name] = { 'pattern' : pattern, 'commands' : [ command ] } | |
catch | |
echohl ErrorMsg | |
echomsg "AddTabularPattern: " . v:exception | |
echohl None | |
6 0.000003 endtry | |
FUNCTION SpaceVim#mapping#menu() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/mapping.vim line 253 | |
Called 316 times | |
Total time: 0.001953 | |
Self time: 0.001953 | |
count total (s) self (s) | |
316 0.001165 let description = '➤ '. a:desc. repeat(' ', 80 - len(a:desc) - len(a:key)). a:key | |
316 0.000684 call add(g:unite_source_menu_menus.CustomKeyMaps.command_candidates, [description , a:cmd]) | |
FUNCTION <SNR>121_motion_init_module() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup.vim line 227 | |
Called 1 time | |
Total time: 0.000236 | |
Self time: 0.000211 | |
count total (s) self (s) | |
1 0.000002 if !g:matchup_motion_enabled | return | endif | |
1 0.000006 0.000003 call matchup#perf#tic('loading_module') | |
" gets the current forced motion type | |
1 0.000016 nnoremap <silent><expr> <sid>(wise) empty(g:v_motion_force) ? 'v' : g:v_motion_force | |
" the basic motions % and g% | |
1 0.000013 nnoremap <silent> <plug>(matchup-%) :<c-u>call matchup#motion#find_matching_pair(0, 1)<cr> | |
1 0.000011 nnoremap <silent> <plug>(matchup-g%) :<c-u>call matchup#motion#find_matching_pair(0, 0)<cr> | |
" visual and operator-pending | |
1 0.000010 xnoremap <silent> <sid>(matchup-%) :<c-u>call matchup#motion#find_matching_pair(1, 1)<cr> | |
1 0.000008 xmap <silent> <plug>(matchup-%) <sid>(matchup-%) | |
1 0.000009 onoremap <silent> <plug>(matchup-%) :<c-u>call matchup#motion#op('%')<cr> | |
1 0.000009 xnoremap <silent> <sid>(matchup-g%) :<c-u>call matchup#motion#find_matching_pair(1, 0)<cr> | |
1 0.000007 xmap <silent> <plug>(matchup-g%) <sid>(matchup-g%) | |
1 0.000008 onoremap <silent> <plug>(matchup-g%) :<c-u>call matchup#motion#op('g%')<cr> | |
" ]% and [% | |
1 0.000011 nnoremap <silent> <plug>(matchup-]%) :<c-u>call matchup#motion#find_unmatched(0, 1)<cr> | |
1 0.000010 nnoremap <silent> <plug>(matchup-[%) :<c-u>call matchup#motion#find_unmatched(0, 0)<cr> | |
1 0.000009 xnoremap <silent> <sid>(matchup-]%) :<c-u>call matchup#motion#find_unmatched(1, 1)<cr> | |
1 0.000008 xnoremap <silent> <sid>(matchup-[%) :<c-u>call matchup#motion#find_unmatched(1, 0)<cr> | |
1 0.000007 xmap <plug>(matchup-]%) <sid>(matchup-]%) | |
1 0.000006 xmap <plug>(matchup-[%) <sid>(matchup-[%) | |
1 0.000008 onoremap <silent> <plug>(matchup-]%) :<c-u>call matchup#motion#op(']%')<cr> | |
1 0.000007 onoremap <silent> <plug>(matchup-[%) :<c-u>call matchup#motion#op('[%')<cr> | |
" jump inside z% | |
1 0.000010 nnoremap <silent> <plug>(matchup-z%) :<c-u>call matchup#motion#jump_inside(0)<cr> | |
1 0.000008 xnoremap <silent> <sid>(matchup-z%) :<c-u>call matchup#motion#jump_inside(1)<cr> | |
1 0.000007 xmap <silent> <plug>(matchup-z%) <sid>(matchup-z%) | |
1 0.000007 onoremap <silent> <plug>(matchup-z%) :<c-u>call matchup#motion#op('z%')<cr> | |
1 0.000009 inoremap <silent> <plug>(matchup-c_g%) <c-\><c-o>:call matchup#motion#insert_mode()<cr> | |
1 0.000027 0.000005 call matchup#perf#toc('loading_module', 'motion') | |
FUNCTION startify#open_buffers() | |
Defined: ~/.SpaceVim/bundle/vim-startify/autoload/startify.vim line 400 | |
Called 1 time | |
Total time: 0.000000 | |
Self time: 0.000000 | |
count total (s) self (s) | |
1 0.000003 if exists('a:1') " used in mappings | |
1 0.000004 let entry = b:startify.entries[a:1] | |
1 0.000003 if !empty(s:batchmode) && entry.type == 'file' | |
call startify#set_mark(s:batchmode, a:1) | |
1 0.000001 else | |
call s:open_buffer(entry) | |
endif | |
return | |
endif | |
let marked = filter(copy(b:startify.entries), 'v:val.marked') | |
if empty(marked) " open current entry | |
call s:open_buffer(b:startify.entries[line('.')]) | |
return | |
endif | |
enew | |
setlocal nobuflisted | |
" Open all marked entries. | |
for entry in sort(values(marked), 's:sort_by_tick') | |
call s:open_buffer(entry) | |
endfor | |
wincmd = | |
if exists('#User#StartifyAllBuffersOpened') | |
doautocmd <nomodeline> User StartifyAllBuffersOpened | |
endif | |
FUNCTION <SNR>194_sort() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vital/_vimfiler/Data/List.vim line 105 | |
Called 1 time | |
Total time: 0.000006 | |
Self time: 0.000006 | |
count total (s) self (s) | |
1 0.000003 if type(a:expr) == type(function('function')) | |
return sort(a:list, a:expr) | |
1 0.000000 endif | |
1 0.000001 let s:expr = a:expr | |
1 0.000001 return sort(a:list, 's:_compare') | |
FUNCTION <SNR>140_setup() | |
Defined: ~/.SpaceVim/bundle/delimitMate/plugin/delimitMate.vim line 219 | |
Called 6 times | |
Total time: 0.013648 | |
Self time: 0.000209 | |
count total (s) self (s) | |
6 0.000010 let swap = a:0 && a:1 == 2 | |
6 0.000006 let enable = a:0 && a:1 | |
6 0.000005 let disable = a:0 && !a:1 | |
" First, remove all magic, if needed: | |
6 0.000009 if get(b:, 'delimitMate_enabled', 0) | |
4 0.001999 0.000021 call s:Unmap() | |
" Switch | |
4 0.000002 if swap | |
echo "delimitMate is disabled." | |
return | |
4 0.000001 endif | |
6 0.000002 endif | |
6 0.000003 if disable | |
" Just disable the mappings. | |
return | |
6 0.000002 endif | |
6 0.000003 if !a:0 | |
" Check if this file type is excluded: | |
6 0.000018 if exists("g:delimitMate_excluded_ft") && index(split(g:delimitMate_excluded_ft, ','), &filetype, 0, 1) >= 0 | |
" Finish here: | |
return 1 | |
6 0.000001 endif | |
" Check if user tried to disable using b:loaded_delimitMate | |
6 0.000007 if exists("b:loaded_delimitMate") | |
return 1 | |
6 0.000001 endif | |
6 0.000002 endif | |
" Initialize settings: | |
6 0.006152 0.000029 if ! s:init() | |
" Something went wrong. | |
return | |
6 0.000001 endif | |
6 0.000012 if enable || swap || !get(g:, 'delimitMate_offByDefault', 0) | |
" Now, add magic: | |
6 0.005360 0.000022 call s:Map() | |
6 0.000003 if a:0 | |
echo "delimitMate is enabled." | |
6 0.000002 endif | |
6 0.000002 endif | |
FUNCTION SpaceVim#layers#core#tabline#config() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/core/tabline.vim line 442 | |
Called 1 time | |
Total time: 0.000740 | |
Self time: 0.000127 | |
count total (s) self (s) | |
1 0.000005 let [s:lsep , s:rsep] = get(s:separators, g:spacevim_statusline_separator, s:separators['arrow']) | |
1 0.000003 let [s:ilsep , s:irsep] = get(s:i_separators, g:spacevim_statusline_iseparator, s:separators['arrow']) | |
1 0.000005 set tabline=%!SpaceVim#layers#core#tabline#get() | |
1 0.000002 augroup SpaceVim_tabline | |
1 0.000003 autocmd! | |
1 0.000004 autocmd ColorScheme * call SpaceVim#layers#core#tabline#def_colors() | |
1 0.000000 augroup END | |
10 0.000008 for i in range(1, 9) | |
9 0.000701 0.000088 exe "call SpaceVim#mapping#def('nmap <silent>', '<leader>" . i . "', ':call SpaceVim#layers#core#tabline#jump(" . i . ")<cr>', 'Switch to airline tab " . i . "', '', 'tabline index " . i . "')" | |
10 0.000004 endfor | |
FUNCTION <SNR>123_init_delim_lists() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup/loader.vim line 86 | |
Called 4 times | |
Total time: 0.000467 | |
Self time: 0.000152 | |
count total (s) self (s) | |
4 0.000014 let l:lists = { 'delim_tex': { 'regex': [], 'regex_capture': [], 'midmap': {}, },} | |
" very tricky examples: | |
" good: let b:match_words = '\(\(foo\)\(bar\)\):\3\2:end\1' | |
" bad: let b:match_words = '\(foo\)\(bar\):more\1:and\2:end\1\2' | |
" *subtlety*: there is a huge assumption in matchit: | |
" ``It should be possible to resolve back references | |
" from any pattern in the group.'' | |
" we don't explicitly check this, but the behavior might | |
" be unpredictable if such groups are encountered.. (ref-1) | |
4 0.000008 if exists('g:matchup_hotfix') && has_key(g:matchup_hotfix, &filetype) | |
call call(g:matchup_hotfix[&filetype], []) | |
4 0.000008 elseif exists('g:matchup_hotfix_'.&filetype) | |
call call(g:matchup_hotfix_{&filetype}, []) | |
4 0.000005 elseif exists('b:matchup_hotfix') | |
call call(b:matchup_hotfix, []) | |
4 0.000001 endif | |
" parse matchpairs and b:match_words | |
4 0.000010 let l:match_words = a:0 ? a:1 : get(b:, 'match_words', '') | |
4 0.000006 if !empty(l:match_words) && l:match_words !~# ':' | |
if a:0 | |
echohl ErrorMsg | |
echo 'match-up: function b:match_words error' | |
echohl None | |
let l:match_words = '' | |
else | |
execute 'let l:match_words =' b:match_words | |
" echohl ErrorMsg | |
" echo 'match-up: function b:match_words not supported' | |
" echohl None | |
" let l:match_words = '' | |
endif | |
4 0.000001 endif | |
4 0.000005 let l:simple = empty(l:match_words) | |
4 0.000007 let l:mps = escape(&matchpairs, '[$^.*~\\/?]') | |
4 0.000008 if !get(b:, 'matchup_delim_nomatchpairs', 0) && !empty(l:mps) | |
2 0.000004 let l:match_words .= (l:simple ? '' : ',').l:mps | |
4 0.000001 endif | |
4 0.000002 if l:simple | |
4 0.000339 0.000025 return s:init_delim_lists_fast(l:match_words) | |
endif | |
let l:sets = split(l:match_words, g:matchup#re#not_bslash.',') | |
" do not duplicate whole groups of match words | |
let l:seen = {} | |
for l:s in l:sets | |
" very special case, escape bare [:] | |
" TODO: the bare [] bug might show up in other places too | |
if l:s ==# '[:]' || l:s ==# '\[:\]' | |
let l:s = '\[:]' | |
endif | |
if has_key(l:seen, l:s) | continue | endif | |
let l:seen[l:s] = 1 | |
if l:s =~# '^\s*$' | continue | endif | |
let l:words = split(l:s, g:matchup#re#not_bslash.':') | |
if len(l:words) < 2 | continue | endif | |
" stores series-level information | |
let l:extra_info = {} | |
" stores information for each word | |
let l:extra_list = map(range(len(l:words)), '{}') | |
" pre-process various \g{special} instructions | |
let l:replacement = { 'hlend': '\%(hlend\)\{0}', 'syn': ''} | |
for l:i in range(len(l:words)) | |
let l:special_flags = [] | |
let l:words[l:i] = substitute(l:words[l:i], g:matchup#re#gspec, '\=[get(l:replacement,submatch(1),""),' . 'add(l:special_flags,' . '[submatch(1),submatch(2)])][0]', 'g') | |
for [l:f, l:a] in l:special_flags | |
let l:extra_list[l:i][l:f] = len(l:a) ? l:a : 1 | |
endfor | |
endfor | |
" we will resolve backrefs to produce two sets of words, | |
" one with \(foo\)s and one with \1s, along with a set of | |
" bookkeeping structures | |
let l:words_backref = copy(l:words) | |
" *subtlety*: backref numbers refer to the capture groups | |
" in the 'open' pattern so we have to carefully keep track | |
" of the group renumbering | |
let l:group_renumber = {} | |
let l:augment_comp = {} | |
let l:all_needed_groups = {} | |
" *subtlety*: when replacing things like \1 with \(...\) | |
" the insertion could possibly contain back references of | |
" its own; this poses a very difficult bookkeeping problem, | |
" so we just disallow it.. (ref-2) | |
" get the groups like \(foo\) in the 'open' pattern | |
let l:cg = matchup#loader#get_capture_groups(l:words[0]) | |
" if any of these contain \d raise a warning | |
" and substitute it out (ref-2) | |
for l:cg_i in keys(l:cg) | |
if l:cg[l:cg_i].str =~# g:matchup#re#backref | |
echohl WarningMsg | |
echom 'match-up: capture group' l:cg[l:cg_i].str 'should not contain backrefs (ref-2)' | |
echohl None | |
let l:cg[l:cg_i].str = substitute(l:cg[l:cg_i].str, g:matchup#re#backref, '', 'g') | |
endif | |
endfor | |
" for the 'open' pattern, create a series of replacements | |
" of the capture groups with \9, \8, ..., \1 | |
" this must be done deepest to shallowest | |
let l:augments = {} | |
let l:order = matchup#loader#capture_group_replacement_order(l:cg) | |
let l:curaug = l:words[0] | |
" TODO: \0 should match the whole pattern.. | |
" augments[0] is the original words[0] with original capture groups | |
let l:augments[0] = l:curaug " XXX does putting this in 0 make sense? | |
for l:j in l:order | |
" these indexes are not invalid because we work backwards | |
let l:curaug = strpart(l:curaug, 0, l:cg[l:j].pos[0]) .('\'.l:j).strpart(l:curaug, l:cg[l:j].pos[1]) | |
let l:augments[l:j] = l:curaug | |
endfor | |
" TODO this logic might be bad BADLOGIC | |
" should we not fill groups that aren't needed? | |
" dragons: create the augmentation operators from the | |
" open pattern- this is all super tricky!! | |
" TODO we should be building the augment later, so | |
" we can remove augments that can never be filled | |
" now for the rest of the words... | |
for l:i in range(1, len(l:words)-1) | |
" first get rid of the capture groups in this pattern | |
let l:words_backref[l:i] = matchup#loader#remove_capture_groups( l:words_backref[l:i]) | |
" get the necessary \1, \2, etc back-references | |
let l:needed_groups = [] | |
call substitute(l:words_backref[l:i], g:matchup#re#backref, '\=len(add(l:needed_groups, submatch(1)))', 'g') | |
call filter(l:needed_groups, 'index(l:needed_groups, v:val) == v:key') | |
" warn if the back-referenced groups don't actually exist | |
for l:ng in l:needed_groups | |
if has_key(l:cg, l:ng) | |
let l:all_needed_groups[l:ng] = 1 | |
else | |
echohl WarningMsg | |
echom 'match-up: backref \' . l:ng 'requested but no ' . 'matching capture group provided' | |
echohl None | |
endif | |
endfor | |
" substitute capture groups into the backrefs and keep | |
" track of the mapping to the original backref number | |
let l:group_renumber[l:i] = {} | |
let l:cg2 = {} | |
for l:bref in l:needed_groups | |
" turn things like \1 into \(...\) | |
" replacement is guaranteed to exist and not contain \d | |
let l:words_backref[l:i] = substitute(l:words_backref[l:i], g:matchup#re#backref, '\='''.l:cg[l:bref].str."'", '') " not global!! | |
" complicated: need to count the number of inserted groups | |
let l:prev_max = max(keys(l:cg2)) | |
let l:cg2 = matchup#loader#get_capture_groups(l:words_backref[l:i]) | |
for l:cg2_i in sort(keys(l:cg2), s:Nsort) | |
if l:cg2_i > l:prev_max | |
" maps capture groups to 'open' back reference numbers | |
let l:group_renumber[l:i][l:cg2_i] = l:bref + (l:cg2_i - 1 - l:prev_max) | |
endif | |
endfor | |
" if any backrefs remain, replace with re-numbered versions | |
let l:words_backref[l:i] = substitute(l:words_backref[l:i], g:matchup#re#not_bslash.'\\'.l:bref, '\\\=l:group_renumber[l:i][submatch(1)]', 'g') | |
endfor | |
" mostly a sanity check | |
if matchup#util#has_duplicate_str(values(l:group_renumber[l:i])) | |
echohl ErrorMsg | |
echom 'match-up: duplicate bref in set ' l:s ':' l:i | |
echohl None | |
endif | |
" compile the augment list for this set of backrefs, going | |
" deepest first and combining as many steps as possible | |
let l:resolvable = {} | |
let l:dependency = {} | |
let l:instruct = [] | |
for l:j in l:order | |
" the in group is the local number from this word pattern | |
let l:in_grp_l = keys(filter( deepcopy(l:group_renumber[l:i]), 'v:val == l:j')) | |
if empty(l:in_grp_l) | continue | endif | |
let l:in_grp = l:in_grp_l[0] | |
" if anything depends on this, flush out the current resolvable | |
if has_key(l:dependency, l:j) | |
call add(l:instruct, copy(l:resolvable)) | |
let l:dependency = {} | |
endif | |
" walk up the tree marking any new dependency | |
let l:node = l:j | |
for l:dummy in range(11) | |
let l:node = l:cg[l:node].parent | |
if l:node == 0 | break | endif | |
let l:dependency[l:node] = 1 | |
endfor | |
" mark l:j as resolvable | |
let l:resolvable[l:j] = l:in_grp | |
endfor | |
if !empty(l:resolvable) | |
call add(l:instruct, copy(l:resolvable)) | |
endif | |
" *note*: recall that l:augments[2] is the result of augments | |
" up to and including 2 | |
" this is a set of instructions of which brefs to resolve | |
let l:augment_comp[l:i] = [] | |
for l:instr in l:instruct | |
" the smallest key is the greediest, due to l:order | |
let l:minkey = min(keys(l:instr)) | |
call insert(l:augment_comp[l:i], { 'inputmap': {}, 'outputmap': {}, 'str': l:augments[l:minkey],}) | |
let l:remaining_out = {} | |
for l:out_grp in keys(l:cg) | |
let l:remaining_out[l:out_grp] = 1 | |
endfor | |
" input map turns this word pattern numbers into 'open' numbers | |
for [l:out_grp, l:in_grp] in items(l:instr) | |
let l:augment_comp[l:i][0].inputmap[l:in_grp] = l:out_grp | |
if has_key(l:remaining_out, l:out_grp) | |
call remove(l:remaining_out, l:out_grp) | |
endif | |
endfor | |
" output map turns remaining group numbers into 'open' numbers | |
let l:counter = 1 | |
for l:out_grp in sort(keys(l:remaining_out), s:Nsort) | |
let l:augment_comp[l:i][0].outputmap[l:counter] = l:out_grp | |
let l:counter += 1 | |
endfor | |
endfor | |
" if l:instruct was empty, there are no constraints | |
if empty(l:instruct) && !empty(l:augments) | |
let l:augment_comp[l:i] = [{ 'inputmap': {}, 'outputmap': {}, 'str': l:augments[0],}] | |
for l:cg_i in keys(l:cg) | |
let l:augment_comp[l:i][0].outputmap[l:cg_i] = l:cg_i | |
endfor | |
endif | |
endfor | |
" strip out unneeded groups in output maps | |
for l:i in keys(l:augment_comp) | |
for l:aug in l:augment_comp[l:i] | |
call filter(l:aug.outputmap, 'has_key(l:all_needed_groups, v:key)') | |
endfor | |
endfor | |
" TODO should l:words[0] actually be used? BADLOGIC | |
" the last element in the order gives the most augmented string | |
" this includes groups that might not actually be needed elsewhere | |
" as a concrete example, | |
" l:augments = { '0': '\<\(wh\%[ile]\|for\)\>', '1': '\<\1\>'} | |
" l:words[0] = \<\1\> (bad) | |
" instead, get the furthest out needed augment.. Heuristic TODO | |
for l:g in add(reverse(copy(l:order)), 0) | |
if has_key(l:all_needed_groups, l:g) | |
let l:words[0] = l:augments[l:g] | |
break | |
endif | |
endfor | |
" check whether any of these patterns has \zs | |
let l:extra_info.has_zs = match(l:words_backref, g:matchup#re#zs) >= 0 | |
if !empty(filter(copy(l:extra_list[1:-2]), 'get(v:val, "hlend")')) | |
let l:extra_info.mid_hlend = 1 | |
endif | |
" this is the original set of words plus the set of augments | |
" TODO this should probably be renamed | |
" (also called regexone) | |
call add(l:lists.delim_tex.regex, { 'open' : l:words[0], 'close' : l:words[-1], 'mid' : join(l:words[1:-2], '\|'), 'mid_list' : l:words[1:-2], 'augments' : l:augments,}) | |
" this list has \(groups\) and we also stuff recapture data | |
" TODO this should probably be renamed | |
" (also called regextwo) | |
call add(l:lists.delim_tex.regex_capture, { 'open' : l:words_backref[0], 'close' : l:words_backref[-1], 'mid' : join(l:words_backref[1:-2], '\|'), 'mid_list' : l:words_backref[1:-2], 'need_grp' : l:all_needed_groups, 'grp_renu' : l:group_renumber, 'aug_comp' : l:augment_comp, 'extra_list' : l:extra_list, 'extra_info' : l:extra_info,}) | |
endfor | |
" load info for advanced mid-mapper | |
if exists('b:match_midmap') && type(b:match_midmap) == type([]) | |
let l:elems = deepcopy(b:match_midmap) | |
let l:lists.delim_tex.midmap = { 'elements': l:elems, 'strike': '\%(' . join(map(range(len(l:elems)), '"\\(".l:elems[v:val][1]."\\)"'), '\|') . '\)'} | |
endif | |
" generate combined lists | |
let l:lists.delim_all = {} | |
let l:lists.all = {} | |
for l:k in ['regex', 'regex_capture', 'midmap'] | |
let l:lists.delim_all[l:k] = l:lists.delim_tex[l:k] | |
let l:lists.all[l:k] = l:lists.delim_all[l:k] | |
endfor | |
return l:lists | |
FUNCTION <SNR>216_define_column_regions() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/view.vim line 385 | |
Called 5 times | |
Total time: 0.000133 | |
Self time: 0.000133 | |
count total (s) self (s) | |
" Column regions. | |
5 0.000006 let start = a:max_len + 1 | |
5 0.000034 let syntaxes = [ [strwidth(g:vimfiler_tree_opened_icon), 'vimfilerOpenedFile'], [strwidth(g:vimfiler_tree_closed_icon), 'vimfilerClosedFile'], [strwidth(g:vimfiler_readonly_file_icon), 'vimfilerROFile'], [strwidth(g:vimfiler_file_icon), 'vimfilerNormalFile'], [strwidth(g:vimfiler_marked_file_icon), 'vimfilerMarkedFile'], ] | |
5 0.000031 if empty(filter(copy(syntaxes), 'v:val[0] != '. strwidth(g:vimfiler_file_icon))) | |
" Optimize if columns are same. | |
let syntaxes = [[strwidth(g:vimfiler_file_icon), 'vimfilerNormalFile,vimfilerOpenedFile,'. 'vimfilerClosedFile,vimfilerROFile']] | |
5 0.000002 endif | |
5 0.000005 for column in a:columns | |
if get(column, 'syntax', '') != '' && a:max_len > 0 | |
for [offset, syntax] in syntaxes | |
execute 'syntax region' column.syntax 'start=''\%'.(start+offset). 'v'' end=''\%'.(start + column.vimfiler__length+offset). 'v'' keepend oneline containedin=' . syntax | |
endfor | |
call add(b:vimfiler.syntaxes, column.syntax) | |
endif | |
let start += column.vimfiler__length + 1 | |
5 0.000004 endfor | |
FUNCTION SpaceVim#api#data#json#get() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/data/json.vim line 113 | |
Called 1 time | |
Total time: 0.000010 | |
Self time: 0.000010 | |
count total (s) self (s) | |
1 0.000010 return deepcopy(s:self) | |
FUNCTION SpaceVim#mapping#leader#defindWindowsLeader() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/mapping/leader.vim line 11 | |
Called 1 time | |
Total time: 0.000114 | |
Self time: 0.000114 | |
count total (s) self (s) | |
1 0.000002 if !empty(a:key) | |
1 0.000015 exe 'nnoremap <silent><nowait> [Window] :<c-u>LeaderGuide "' . a:key . '"<CR>' | |
1 0.000004 exe 'nmap ' .a:key . ' [Window]' | |
1 0.000002 let g:_spacevim_mappings_windows = {} | |
1 0.000003 nnoremap <silent> [Window]v :<C-u>split<CR> | |
1 0.000003 let lnum = expand('<slnum>') + s:lnum - 4 | |
1 0.000004 let g:_spacevim_mappings_windows.v = ['split', 'split-window', [ '[WIN v] is to split windows, switch to the new window', '', 'Definition: ' . s:file . ':' . lnum, ] ] | |
1 0.000003 nnoremap <silent> [Window]V :<C-u>split +bp<CR> | |
1 0.000002 let lnum = expand('<slnum>') + s:lnum - 4 | |
1 0.000003 let g:_spacevim_mappings_windows.V = ['split +bp', 'split-previous-buffer', [ '[WIN V] is to split previous buffer, switch to the new window', '', 'Definition: ' . s:file . ':' . lnum, ] ] | |
1 0.000003 nnoremap <silent> [Window]g :<C-u>vsplit<CR> | |
1 0.000002 let lnum = expand('<slnum>') + s:lnum - 4 | |
1 0.000003 let g:_spacevim_mappings_windows.g = ['vsplit', 'vsplit-window', [ '[WIN g] is to split previous buffer vertically, switch to the new window', '', 'Definition: ' . s:file . ':' . lnum, ] ] | |
1 0.000003 nnoremap <silent> [Window]G :<C-u>vsplit +bp<CR> | |
1 0.000001 let lnum = expand('<slnum>') + s:lnum - 4 | |
1 0.000003 let g:_spacevim_mappings_windows.G = ['vsplit +bp', 'vsplit-previous-buffer', [ '[WIN G] is to split windows vertically, switch to the new window', '', 'Definition: ' . s:file . ':' . lnum, ] ] | |
1 0.000003 nnoremap <silent> [Window]t :<C-u>tabnew<CR> | |
1 0.000001 let lnum = expand('<slnum>') + s:lnum - 4 | |
1 0.000003 let g:_spacevim_mappings_windows.t = ['tabnew', 'create-new-tab', [ '[WIN t] is to create new tab', '', 'Definition: ' . s:file . ':' . lnum, ] ] | |
1 0.000004 nnoremap <silent> [Window]o :<C-u>only<Space><Bar><Space>doautocmd WinEnter<CR> | |
1 0.000002 let lnum = expand('<slnum>') + s:lnum - 4 | |
1 0.000003 let g:_spacevim_mappings_windows.o = ['only | doautocmd WinEnter', 'close-other-windows', [ '[WIN o] is to close all other windows', '', 'Definition: ' . s:file . ':' . lnum, ] ] | |
1 0.000004 nnoremap <silent> [Window]x :<C-u>call SpaceVim#mapping#BufferEmpty()<CR> | |
1 0.000002 let lnum = expand('<slnum>') + s:lnum - 4 | |
1 0.000003 let g:_spacevim_mappings_windows.x = ['call SpaceVim#mapping#BufferEmpty()', 'empty-current-buffer', [ '[WIN x] is to empty current buffer', '', 'Definition: ' . s:file . ':' . lnum, ] ] | |
1 0.000003 nnoremap <silent> [Window]\ :<C-u>b#<CR> | |
1 0.000001 let lnum = expand('<slnum>') + s:lnum - 4 | |
1 0.000003 let g:_spacevim_mappings_windows['\'] = ['b#', 'switch-to-the-last-buffer', [ '[WIN \] is to switch to the last buffer', '', 'Definition: ' . s:file . ':' . lnum, ] ] | |
1 0.000003 nnoremap <silent> [Window]Q :<C-u>close<CR> | |
1 0.000001 let lnum = expand('<slnum>') + s:lnum - 4 | |
1 0.000003 let g:_spacevim_mappings_windows.Q = ['close', 'close-current-windows', [ '[WIN Q] is to close current windows', '', 'Definition: ' . s:file . ':' . lnum, ] ] | |
1 0.000004 nnoremap <silent> [Window]q :<C-u>call SpaceVim#mapping#close_current_buffer()<CR> | |
1 0.000001 let lnum = expand('<slnum>') + s:lnum - 4 | |
1 0.000003 let g:_spacevim_mappings_windows.q = ['call SpaceVim#mapping#close_current_buffer()', 'delete-current-windows', [ '[WIN q] is to delete current windows', '', 'Definition: ' . s:file . ':' . lnum, ] ] | |
1 0.000003 nnoremap <silent> [Window]c :<C-u>call SpaceVim#mapping#clear_buffers()<CR> | |
1 0.000001 let lnum = expand('<slnum>') + s:lnum - 4 | |
1 0.000003 let g:_spacevim_mappings_windows.c = ['call SpaceVim#mapping#clear_buffers()', 'clear-all-the-buffers', [ '[WIN c] is to clear all the buffers', '', 'Definition: ' . s:file . ':' . lnum, ] ] | |
1 0.000000 endif | |
FUNCTION neomake#statusline#DefineHighlights() | |
Defined: ~/.SpaceVim/bundle/neomake/autoload/neomake/statusline.vim line 392 | |
Called 1 time | |
Total time: 0.000579 | |
Self time: 0.000211 | |
count total (s) self (s) | |
3 0.000005 for suffix in ['', 'NC'] | |
2 0.000004 let hl = 'StatusLine'.suffix | |
" Highlight used for resetting color (used after counts). | |
2 0.000027 exe 'hi default link NeomakeStatReset'.suffix.' StatusLine'.suffix | |
" Uses "green" for NeomakeStatusGood, but the default with | |
" NeomakeStatusGoodNC (since it might be underlined there, and should | |
" not stand out in general there). | |
2 0.000492 0.000124 exe 'hi default NeomakeStatusGood'.suffix . ' ctermfg=' . (suffix ? neomake#utils#GetHighlight(hl, 'fg') : 'green') . ' guifg=' . (suffix ? neomake#utils#GetHighlight(hl, 'fg#') : 'green') . ' ctermbg='.neomake#utils#GetHighlight(hl, 'bg') . ' guifg='.neomake#utils#GetHighlight(hl, 'bg#') . (neomake#utils#GetHighlight(hl, 'underline') ? ' cterm=underline' : '') . (neomake#utils#GetHighlight(hl, 'underline#') ? ' gui=underline' : '') . (neomake#utils#GetHighlight(hl, 'reverse') ? ' cterm=reverse' : '') . (neomake#utils#GetHighlight(hl, 'reverse#') ? ' gui=reverse' : '') | |
3 0.000004 endfor | |
" Default highlight for type counts. | |
1 0.000008 exe 'hi default NeomakeStatColorDefault cterm=NONE ctermfg=white ctermbg=blue' | |
1 0.000004 hi link NeomakeStatColorQuickfixDefault NeomakeStatColorDefault | |
" Specific highlights for types. Only used if defined. | |
1 0.000006 exe 'hi default NeomakeStatColorTypeE cterm=NONE ctermfg=white ctermbg=red' | |
1 0.000003 hi link NeomakeStatColorQuickfixTypeE NeomakeStatColorTypeE | |
1 0.000009 exe 'hi default NeomakeStatColorTypeW cterm=NONE ctermfg=white ctermbg=yellow' | |
1 0.000004 hi link NeomakeStatColorQuickfixTypeW NeomakeStatColorTypeW | |
FUNCTION SpaceVim#end() | |
Defined: ~/.SpaceVim/autoload/SpaceVim.vim line 1218 | |
Called 1 time | |
Total time: 0.331538 | |
Self time: 0.001743 | |
count total (s) self (s) | |
1 0.000001 if !g:spacevim_vimcompatible | |
1 0.000057 0.000006 call SpaceVim#mapping#def('nnoremap <silent>', '<Tab>', ':wincmd w<CR>', 'Switch to next window or tab','wincmd w') | |
1 0.000052 0.000005 call SpaceVim#mapping#def('nnoremap <silent>', '<S-Tab>', ':wincmd p<CR>', 'Switch to previous window or tab','wincmd p') | |
1 0.000000 endif | |
1 0.000001 if g:spacevim_vimcompatible | |
let g:spacevim_windows_leader = '' | |
let g:spacevim_windows_smartclose = '' | |
1 0.000000 endif | |
1 0.000001 if !g:spacevim_vimcompatible | |
1 0.000003 cnoremap <C-f> <Right> | |
" Navigation in command line | |
1 0.000002 cnoremap <C-a> <Home> | |
1 0.000002 cnoremap <C-b> <Left> | |
" @bug_vim with <silent> command line can not be cleared | |
1 0.000005 cnoremap <expr> <C-k> repeat('<Delete>', strchars(getcmdline()) - getcmdpos() + 1) | |
"Use escape_key_binding switch to normal mode | |
1 0.000001 if !empty(g:spacevim_escape_key_binding) | |
1 0.000005 exe printf('inoremap %s <esc>', g:spacevim_escape_key_binding) | |
1 0.000000 endif | |
1 0.000000 endif | |
1 0.000182 0.000027 call SpaceVim#server#connect() | |
1 0.000001 if g:spacevim_enable_neocomplcache | |
let g:spacevim_autocomplete_method = 'neocomplcache' | |
1 0.000000 endif | |
1 0.000001 if g:spacevim_enable_ycm | |
if has('python') || has('python3') | |
let g:spacevim_autocomplete_method = 'ycm' | |
else | |
call SpaceVim#logger#warn('YCM need +python or +python3 support, force to using ' . g:spacevim_autocomplete_method) | |
endif | |
1 0.000000 endif | |
1 0.000001 if g:spacevim_keep_server_alive | |
1 0.020291 0.000005 call SpaceVim#server#export_server() | |
1 0.000001 endif | |
1 0.000003 if !empty(g:spacevim_windows_leader) | |
1 0.000243 0.000056 call SpaceVim#mapping#leader#defindWindowsLeader(g:spacevim_windows_leader) | |
1 0.000000 endif | |
1 0.000334 0.000042 call SpaceVim#mapping#g#init() | |
1 0.000248 0.000025 call SpaceVim#mapping#z#init() | |
1 0.000052 0.000007 call SpaceVim#mapping#leader#defindKEYs() | |
1 0.009513 0.000031 call SpaceVim#mapping#space#init() | |
1 0.000789 0.000032 if !SpaceVim#mapping#guide#has_configuration() | |
let g:leaderGuide_map = {} | |
call SpaceVim#mapping#guide#register_prefix_descriptions('', 'g:leaderGuide_map') | |
1 0.000000 endif | |
1 0.000001 if g:spacevim_vim_help_language ==# 'cn' | |
let &helplang = 'cn' | |
1 0.000001 elseif g:spacevim_vim_help_language ==# 'ja' | |
let &helplang = 'jp' | |
1 0.000000 endif | |
"" | |
" generate tags for SpaceVim | |
1 0.000006 let help = fnamemodify(g:_spacevim_root_dir, ':p:h') . '/doc' | |
1 0.000001 try | |
1 0.000861 exe 'helptags ' . help | |
catch | |
call SpaceVim#logger#warn('Failed to generate helptags for SpaceVim') | |
1 0.000001 endtry | |
"" | |
" set language | |
1 0.000002 if !empty(g:spacevim_language) | |
silent exec 'lan ' . g:spacevim_language | |
1 0.000000 endif | |
1 0.000013 0.000009 if SpaceVim#layers#isLoaded('core#statusline') | |
1 0.000025 0.000005 call SpaceVim#layers#core#statusline#init() | |
1 0.000000 endif | |
" tab options: | |
1 0.000002 set smarttab | |
1 0.000002 let &expandtab = g:spacevim_expand_tab | |
1 0.000003 let &tabstop = g:spacevim_default_indent | |
1 0.000001 let &softtabstop = g:spacevim_default_indent | |
1 0.000001 let &shiftwidth = g:spacevim_default_indent | |
1 0.000003 let g:unite_source_menu_menus = get(g:,'unite_source_menu_menus',{}) | |
1 0.000023 let g:unite_source_menu_menus.CustomKeyMaps = {'description': 'Custom mapped keyboard shortcuts [unite]<SPACE>'} | |
1 0.000003 let g:unite_source_menu_menus.CustomKeyMaps.command_candidates = get(g:unite_source_menu_menus.CustomKeyMaps,'command_candidates', []) | |
1 0.000002 let g:unite_source_menu_menus.MyStarredrepos = {'description': 'All github repos starred by me <leader>ls'} | |
1 0.000002 let g:unite_source_menu_menus.MyStarredrepos.command_candidates = get(g:unite_source_menu_menus.MyStarredrepos,'command_candidates', []) | |
1 0.000002 let g:unite_source_menu_menus.MpvPlayer = {'description': 'Musics list <leader>lm'} | |
1 0.000002 let g:unite_source_menu_menus.MpvPlayer.command_candidates = get(g:unite_source_menu_menus.MpvPlayer,'command_candidates', []) | |
1 0.000001 if g:spacevim_realtime_leader_guide | |
1 0.000010 nnoremap <silent><nowait> <leader> :<c-u>LeaderGuide get(g:, 'mapleader', '\')<CR> | |
1 0.000007 vnoremap <silent> <leader> :<c-u>LeaderGuideVisual get(g:, 'mapleader', '\')<CR> | |
1 0.000000 endif | |
1 0.000001 let g:leaderGuide_max_size = 15 | |
1 0.255318 0.000042 call SpaceVim#plugins#load() | |
1 0.000277 0.000029 call SpaceVim#plugins#projectmanager#RootchandgeCallback() | |
1 0.009235 0.000004 call SpaceVim#util#loadConfig('general.vim') | |
1 0.020985 0.000033 call SpaceVim#autocmds#init() | |
1 0.000004 if has('nvim') | |
1 0.000154 0.000013 call SpaceVim#util#loadConfig('neovim.vim') | |
1 0.000000 endif | |
1 0.000015 0.000007 call SpaceVim#util#loadConfig('commands.vim') | |
1 0.004375 0.000349 filetype plugin indent on | |
1 0.008380 0.000014 syntax on | |
FUNCTION <SNR>190__import() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vital/vimfiler.vim line 158 | |
Called 12 times | |
Total time: 0.006533 | |
Self time: 0.001248 | |
count total (s) self (s) | |
12 0.000017 if has_key(s:loaded, a:name) | |
5 0.000057 return copy(s:loaded[a:name]) | |
7 0.000002 endif | |
7 0.002447 0.000033 let module = self._get_module(a:name) | |
7 0.000010 if has_key(module, '_vital_created') | |
2 0.000033 0.000012 call module._vital_created(module) | |
7 0.000002 endif | |
7 0.000233 let export_module = filter(copy(module), 'v:key =~# "^\\a"') | |
" Cache module before calling module.vital_loaded() to avoid cyclic | |
" dependences but remove the cache if module._vital_loaded() fails. | |
" let s:loaded[a:name] = export_module | |
7 0.000013 let s:loaded[a:name] = export_module | |
7 0.000008 if has_key(module, '_vital_loaded') | |
4 0.000002 try | |
4 0.000125 0.000087 call module._vital_loaded(vital#{s:plugin_name}#new()) | |
catch | |
unlet s:loaded[a:name] | |
throw 'vital: fail to call ._vital_loaded(): ' . v:exception | |
4 0.000002 endtry | |
7 0.000002 endif | |
7 0.000042 return copy(s:loaded[a:name]) | |
FUNCTION unite#view#_get_status_string() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/view.vim line 898 | |
Called 4 times | |
Total time: 0.000262 | |
Self time: 0.000262 | |
count total (s) self (s) | |
4 0.000006 let statusline = "%#uniteStatusHead# %{unite#view#_get_status_head_string()}%*" | |
4 0.000003 let cnt = 0 | |
4 0.000005 if empty(a:unite.sources) | |
let statusline .= "%#uniteStatusSourceNames#interactive%*" | |
let statusline .= "%#uniteStatusSourceCandidates#%{" | |
let statusline .= "unite#view#_get_source_candidates_string(" | |
let statusline .= "unite#loaded_sources_list()[0])} %*" | |
4 0.000002 else | |
8 0.000012 for cnt in range(0, len(a:unite.sources)-1) | |
4 0.000006 let statusline .= "%#uniteStatusSourceNames#%{" | |
4 0.000005 let statusline .= "unite#view#_get_source_name_string(" | |
4 0.000007 let statusline .= "b:unite.sources[".cnt."])}" | |
4 0.000138 let statusline .= "%#uniteStatusSourceCandidates#%{" | |
4 0.000008 let statusline .= "unite#view#_get_source_candidates_string(" | |
4 0.000008 let statusline .= "b:unite.sources[".cnt."])} %*" | |
8 0.000005 endfor | |
4 0.000002 endif | |
4 0.000006 let statusline .= "%=%#uniteStatusMessage# %{unite#view#_get_status_tail_string()} %*" | |
4 0.000006 let statusline .= "%#uniteStatusLineNR#%{printf('%'.len(b:unite.candidates_len" | |
4 0.000005 let statusline .= "+b:unite.prompt_linenr).'d/%d',line('.')," | |
4 0.000005 let statusline .= "b:unite.candidates_len+b:unite.prompt_linenr)}%*" | |
4 0.000004 return statusline | |
FUNCTION dein#util#_config() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/util.vim line 486 | |
Called 13 times | |
Total time: 0.005121 | |
Self time: 0.000262 | |
count total (s) self (s) | |
13 0.000026 let name = type(a:arg) == 4 ? g:dein#name : a:arg | |
13 0.000019 let dict = type(a:arg) == 4 ? a:arg : a:dict | |
13 0.000027 if !has_key(g:dein#_plugins, name) || g:dein#_plugins[name].sourced | |
return {} | |
13 0.000003 endif | |
13 0.000014 let plugin = g:dein#_plugins[name] | |
13 0.000041 let options = extend({'repo': plugin.repo}, dict) | |
13 0.000014 if has_key(plugin, 'orig_opts') | |
13 0.000045 call extend(options, copy(plugin.orig_opts), 'keep') | |
13 0.000004 endif | |
13 0.004908 0.000048 return dein#parse#_add(options.repo, options) | |
FUNCTION <SNR>199__vital_created() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vital/_vimfiler/Data/String.vim line 30 | |
Called 1 time | |
Total time: 0.000008 | |
Self time: 0.000008 | |
count total (s) self (s) | |
" Expose script-local funcref | |
1 0.000002 if exists('s:strchars') | |
1 0.000002 let a:module.strchars = s:strchars | |
1 0.000000 endif | |
1 0.000001 if exists('s:wcswidth') | |
1 0.000002 let a:module.wcswidth = s:wcswidth | |
1 0.000000 endif | |
FUNCTION <SNR>124_close_floating_win() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup/matchparen.vim line 678 | |
Called 5 times | |
Total time: 0.000010 | |
Self time: 0.000010 | |
count total (s) self (s) | |
5 0.000006 if !exists('s:float_id') | |
5 0.000002 return | |
endif | |
if win_id2win(s:float_id) > 0 | |
call nvim_win_close(s:float_id, 0) | |
endif | |
let s:float_id = 0 | |
FUNCTION vimfiler#custom#get_profile() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/custom.vim line 22 | |
Called 3 times | |
Total time: 0.000055 | |
Self time: 0.000039 | |
count total (s) self (s) | |
3 0.000027 0.000012 let custom = vimfiler#custom#get() | |
3 0.000008 let profile_name = has_key(custom.profiles, a:profile_name) ? a:profile_name : 'default' | |
3 0.000004 if !has_key(custom.profiles, profile_name) | |
1 0.000006 0.000005 let custom.profiles[profile_name] = s:init_profile() | |
3 0.000001 endif | |
3 0.000005 return custom.profiles[profile_name][a:option_name] | |
FUNCTION <SNR>190_import() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vital/vimfiler.vim line 53 | |
Called 12 times | |
Total time: 0.006874 | |
Self time: 0.000260 | |
count total (s) self (s) | |
12 0.000011 let target = {} | |
12 0.000010 let functions = [] | |
12 0.000014 for a in a:000 | |
if type(a) == type({}) | |
let target = a | |
elseif type(a) == type([]) | |
let functions = a | |
endif | |
unlet a | |
12 0.000007 endfor | |
12 0.003021 0.001670 let module = self._import(a:name) | |
12 0.000013 if empty(functions) | |
12 0.000111 call extend(target, module, 'keep') | |
else | |
for f in functions | |
if has_key(module, f) && !has_key(target, f) | |
let target[f] = module[f] | |
endif | |
endfor | |
12 0.000003 endif | |
12 0.000007 return target | |
FUNCTION <SNR>171_Filter() | |
Defined: ~/.SpaceVim/bundle/indentLine/after/plugin/indentLine.vim line 286 | |
Called 5 times | |
Total time: 0.000041 | |
Self time: 0.000041 | |
count total (s) self (s) | |
5 0.000014 if index(g:indentLine_fileTypeExclude, &filetype) != -1 | |
3 0.000002 return 0 | |
2 0.000000 endif | |
2 0.000004 if index(g:indentLine_bufTypeExclude, &buftype) != -1 | |
return 0 | |
2 0.000000 endif | |
2 0.000005 if len(g:indentLine_fileType) != 0 && index(g:indentLine_fileType, &filetype) == -1 | |
return 0 | |
2 0.000000 endif | |
2 0.000003 for name in g:indentLine_bufNameExclude | |
if matchstr(bufname(''), name) == bufname('') | |
return 0 | |
endif | |
2 0.000001 endfor | |
2 0.000001 return 1 | |
FUNCTION <SNR>162_GetManifestPath() | |
Defined: /usr/share/nvim/runtime/plugin/rplugin.vim line 7 | |
Called 1 time | |
Total time: 0.000019 | |
Self time: 0.000019 | |
count total (s) self (s) | |
1 0.000001 let manifest_base = '' | |
1 0.000004 if exists('$NVIM_RPLUGIN_MANIFEST') | |
return fnamemodify($NVIM_RPLUGIN_MANIFEST, ':p') | |
1 0.000000 endif | |
1 0.000002 let dest = stdpath('data') | |
1 0.000001 if !empty(dest) | |
1 0.000003 if !isdirectory(dest) | |
call mkdir(dest, 'p', 0700) | |
1 0.000000 endif | |
1 0.000001 let manifest_base = dest | |
1 0.000000 endif | |
1 0.000001 return manifest_base.'/rplugin.vim' | |
FUNCTION unite#util#glob() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/util.vim line 286 | |
Called 2 times | |
Total time: 0.003608 | |
Self time: 0.001681 | |
count total (s) self (s) | |
2 0.000004 let is_force_glob = get(a:000, 0, 1) | |
2 0.001147 0.000014 if !is_force_glob && (a:pattern =~ '\*$' || a:pattern == '*') && unite#util#has_vimproc() && exists('*vimproc#readdir') | |
return vimproc#readdir(a:pattern[: -2]) | |
2 0.000001 else | |
" Escape [. | |
2 0.000004 let glob = escape(a:pattern, '?={}[]') | |
2 0.000015 let glob2 = escape(substitute(a:pattern, '[^/]*$', '', '') . '.*', '?={}[]') | |
2 0.002433 0.001638 return unite#util#uniq(split(unite#util#substitute_path_separator(glob(glob)), '\n') + split(unite#util#substitute_path_separator(glob(glob2)), '\n')) | |
endif | |
FUNCTION vimfiler#handler#_event_handler() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/handler.vim line 7 | |
Called 1 time | |
Total time: 0.046456 | |
Self time: 0.000039 | |
count total (s) self (s) | |
1 0.000003 let user_context = get(a:000, 0, {}) | |
1 0.000140 0.000005 let context = vimfiler#initialize_context(user_context) | |
1 0.000025 0.000009 let path = vimfiler#util#substitute_path_separator( get(user_context, 'path', expand('<afile>'))) | |
1 0.000003 if filereadable(path) | |
let source_name = 'file' | |
let source_args = [path] | |
1 0.000000 else | |
1 0.000050 0.000004 let ret = vimfiler#parse_path(path) | |
1 0.000001 let source_name = ret[0] | |
1 0.000001 let source_args = ret[1:] | |
1 0.000000 endif | |
1 0.046228 0.000008 return s:on_{a:event_name}(source_name, source_args, context) | |
FUNCTION <SNR>82_new() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/vital/unite.vim line 37 | |
Called 2 times | |
Total time: 0.000012 | |
Self time: 0.000012 | |
count total (s) self (s) | |
2 0.000007 let base = deepcopy(s:Vital) | |
2 0.000003 let base._plugin_name = a:plugin_name | |
2 0.000001 return base | |
FUNCTION unite#custom#get_profile() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/custom.vim line 93 | |
Called 16 times | |
Total time: 0.000308 | |
Self time: 0.000213 | |
count total (s) self (s) | |
16 0.000150 0.000054 let custom = unite#custom#get() | |
16 0.000053 let profile_name = (a:profile_name == '' || !has_key(custom.profiles, a:profile_name)) ? 'default' : a:profile_name | |
16 0.000020 if !has_key(custom.profiles, profile_name) | |
let custom.profiles[profile_name] = { 'substitute_patterns' : {}, 'matchers' : [], 'sorters' : [], 'converters' : [], 'context' : {}, 'unite__save_pos' : {}, 'unite__inputs' : {}, } | |
16 0.000004 endif | |
16 0.000035 return custom.profiles[profile_name][a:option_name] | |
FUNCTION SpaceVim#layers#shell#set_variable() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/shell.vim line 117 | |
Called 1 time | |
Total time: 0.000008 | |
Self time: 0.000008 | |
count total (s) self (s) | |
1 0.000002 let s:default_shell = get(a:var, 'default_shell', 'terminal') | |
1 0.000002 let s:default_position = get(a:var, 'default_position', 'top') | |
1 0.000002 let s:default_height = get(a:var, 'default_height', 30) | |
1 0.000002 let s:enable_project_shell = get(a:var, 'enable_project_shell', 1) | |
FUNCTION vimfiler#custom#profile() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/custom.vim line 16 | |
Called 1 time | |
Total time: 0.000045 | |
Self time: 0.000021 | |
count total (s) self (s) | |
2 0.000006 for key in split(a:profile_name, '\s*,\s*') | |
1 0.000030 0.000006 let profile = vimfiler#custom#get_profile(key, a:option_name) | |
1 0.000005 call extend(profile, a:value) | |
2 0.000001 endfor | |
FUNCTION vimproc#util#termencoding() | |
Defined: ~/.SpaceVim/bundle/vimproc.vim/autoload/vimproc/util.vim line 55 | |
Called 1 time | |
Total time: 0.000001 | |
Self time: 0.000001 | |
count total (s) self (s) | |
1 0.000000 return 'char' | |
FUNCTION <SNR>79_custom_base() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/custom.vim line 131 | |
Called 5 times | |
Total time: 0.000133 | |
Self time: 0.000100 | |
count total (s) self (s) | |
5 0.000055 0.000022 let custom = unite#custom#get()[a:key] | |
11 0.000029 for key in split(a:kind, '\s*,\s*') | |
6 0.000008 if !has_key(custom, key) | |
6 0.000008 let custom[key] = {} | |
6 0.000002 endif | |
6 0.000009 let custom[key][a:name] = a:value | |
11 0.000005 endfor | |
FUNCTION dein#parse#_dict() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/parse.vim line 55 | |
Called 61 times | |
Total time: 0.006923 | |
Self time: 0.005747 | |
count total (s) self (s) | |
61 0.000102 let plugin = { 'rtp': '', 'sourced': 0, } | |
61 0.000176 call extend(plugin, a:plugin) | |
61 0.000071 if !has_key(plugin, 'name') | |
61 0.000774 0.000272 let plugin.name = dein#parse#_name_conversion(plugin.repo) | |
61 0.000019 endif | |
61 0.000095 if !has_key(plugin, 'normalized_name') | |
61 0.000439 let plugin.normalized_name = substitute( fnamemodify(plugin.name, ':r'), '\c^n\?vim[_-]\|[_-]n\?vim$', '', 'g') | |
61 0.000018 endif | |
61 0.000101 if !has_key(a:plugin, 'name') && g:dein#enable_name_conversion | |
" Use normalized name. | |
let plugin.name = plugin.normalized_name | |
61 0.000015 endif | |
61 0.000052 if !has_key(plugin, 'path') | |
let plugin.path = (plugin.repo =~# '^/\|^\a:[/\\]') ? plugin.repo : dein#util#_get_base_path().'/repos/'.plugin.name | |
61 0.000014 endif | |
61 0.000926 0.000380 let plugin.path = dein#util#_chomp(dein#util#_expand(plugin.path)) | |
61 0.000077 if get(plugin, 'rev', '') !=# '' | |
" Add revision path | |
let plugin.path .= '_' . substitute( plugin.rev, '[^[:alnum:].-]', '_', 'g') | |
61 0.000015 endif | |
" Check relative path | |
61 0.000262 if (!has_key(a:plugin, 'rtp') || a:plugin.rtp !=# '') && plugin.rtp !~# '^\%([~/]\|\a\+:\)' | |
61 0.000102 let plugin.rtp = plugin.path.'/'.plugin.rtp | |
61 0.000015 endif | |
61 0.000052 if plugin.rtp[0:] ==# '~' | |
let plugin.rtp = dein#util#_expand(plugin.rtp) | |
61 0.000015 endif | |
61 0.000322 0.000195 let plugin.rtp = dein#util#_chomp(plugin.rtp) | |
61 0.000077 if g:dein#_is_sudo && !get(plugin, 'trusted', 0) | |
let plugin.rtp = '' | |
61 0.000014 endif | |
61 0.000061 if has_key(plugin, 'script_type') | |
" Add script_type. | |
let plugin.path .= '/' . plugin.script_type | |
61 0.000013 endif | |
61 0.000088 if has_key(plugin, 'depends') && type(plugin.depends) != 3 | |
let plugin.depends = [plugin.depends] | |
61 0.000013 endif | |
" Deprecated check. | |
61 0.000296 for key in filter(['directory', 'base'], 'has_key(plugin, v:val)') | |
call dein#util#_error('plugin name = ' . plugin.name) | |
call dein#util#_error(string(key) . ' is deprecated.') | |
61 0.000031 endfor | |
61 0.000110 if !has_key(plugin, 'lazy') | |
61 0.000369 let plugin.lazy = has_key(plugin, 'on_i') || has_key(plugin, 'on_idle') || has_key(plugin, 'on_ft') || has_key(plugin, 'on_cmd') || has_key(plugin, 'on_func') || has_key(plugin, 'on_map') || has_key(plugin, 'on_path') || has_key(plugin, 'on_if') || has_key(plugin, 'on_event') || has_key(plugin, 'on_source') | |
61 0.000016 endif | |
61 0.000057 if !has_key(a:plugin, 'merged') | |
30 0.000118 0.000117 let plugin.merged = !plugin.lazy && plugin.normalized_name !=# 'dein' && !has_key(plugin, 'local') && !has_key(plugin, 'build') && !has_key(plugin, 'if') && stridx(plugin.rtp, dein#util#_get_base_path()) == 0 | |
61 0.000014 endif | |
61 0.000078 if has_key(plugin, 'if') && type(plugin.if) == 1 | |
let plugin.if = eval(a:plugin.if) | |
61 0.000014 endif | |
" Hooks | |
74 0.000516 for hook in filter([ 'hook_add', 'hook_source', 'hook_post_source', 'hook_post_update', ], 'has_key(plugin, v:val) && type(plugin[v:val]) == 1') | |
13 0.000136 let plugin[hook] = substitute(plugin[hook], '\n\s*\\\|\%(^\|\n\)\s*"[^\n]*', '', 'g') | |
74 0.000032 endfor | |
61 0.000035 return plugin | |
FUNCTION dein#parse#_add() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/parse.vim line 14 | |
Called 61 times | |
Total time: 0.021843 | |
Self time: 0.001539 | |
count total (s) self (s) | |
61 0.018898 0.000481 let plugin = dein#parse#_dict(dein#parse#_init(a:repo, a:options)) | |
61 0.000179 if (has_key(g:dein#_plugins, plugin.name) && g:dein#_plugins[plugin.name].sourced) || !get(plugin, 'if', 1) | |
" Skip already loaded or not enabled plugin. | |
return {} | |
61 0.000015 endif | |
61 0.000051 if plugin.lazy && plugin.rtp !=# '' | |
18 0.001969 0.000081 call s:parse_lazy(plugin) | |
61 0.000015 endif | |
61 0.000104 if has_key(g:dein#_plugins, plugin.name) && g:dein#_plugins[plugin.name].sourced | |
let plugin.sourced = 1 | |
61 0.000013 endif | |
61 0.000100 let g:dein#_plugins[plugin.name] = plugin | |
61 0.000054 if has_key(plugin, 'hook_add') | |
call dein#util#_execute_hook(plugin, plugin.hook_add) | |
61 0.000014 endif | |
61 0.000048 if has_key(plugin, 'ftplugin') | |
call s:merge_ftplugin(plugin.ftplugin) | |
61 0.000013 endif | |
61 0.000032 return plugin | |
FUNCTION <SNR>104_after_ftplugin() | |
Defined: ~/.cache/vimfiles/.cache/init.vim/.dein/ftplugin.vim line 30 | |
Called 3 times | |
Total time: 0.000001 | |
Self time: 0.000001 | |
count total (s) self (s) | |
FUNCTION <SNR>2_resolve() | |
Defined: ~/.SpaceVim/config/main.vim line 47 | |
Called 1 time | |
Total time: 0.000007 | |
Self time: 0.000007 | |
count total (s) self (s) | |
1 0.000006 return resolve(a:path) | |
FUNCTION matchup#loader#bufwinenter() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup/loader.vim line 42 | |
Called 1 time | |
Total time: 0.000723 | |
Self time: 0.000008 | |
count total (s) self (s) | |
1 0.000002 if get(b:, 'matchup_delim_enabled', 0) | |
return | |
1 0.000000 endif | |
1 0.000720 0.000004 call matchup#loader#init_buffer() | |
FUNCTION <SNR>116_init_var() | |
Defined: ~/.SpaceVim/bundle/tagbar/plugin/tagbar.vim line 45 | |
Called 43 times | |
Total time: 0.000184 | |
Self time: 0.000184 | |
count total (s) self (s) | |
43 0.000060 if !exists('g:tagbar_' . a:var) | |
38 0.000100 execute 'let g:tagbar_' . a:var . ' = ' . string(a:value) | |
43 0.000011 endif | |
FUNCTION SpaceVim#plugins#end() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/plugins.vim line 165 | |
Called 1 time | |
Total time: 0.156561 | |
Self time: 0.000055 | |
count total (s) self (s) | |
1 0.000001 if g:spacevim_plugin_manager ==# 'neobundle' | |
call neobundle#end() | |
if g:spacevim_checkinstall == 1 | |
silent! let g:_spacevim_checking_flag = neobundle#exists_not_installed_bundles() | |
if g:_spacevim_checking_flag | |
augroup SpaceVimCheckInstall | |
au! | |
au VimEnter * SPInstall | |
augroup END | |
endif | |
endif | |
1 0.000001 elseif g:spacevim_plugin_manager ==# 'dein' | |
1 0.000477 0.000003 call dein#end() | |
" dein do not include the after dir of SpaceVim by default | |
1 0.000007 let &rtp .= ',' . g:_spacevim_root_dir . 'after' | |
1 0.000001 if g:spacevim_checkinstall == 1 | |
1 0.000150 0.000024 silent! let g:_spacevim_checking_flag = dein#check_install() | |
1 0.000001 if g:_spacevim_checking_flag | |
augroup SpaceVimCheckInstall | |
au! | |
au VimEnter * SPInstall | |
augroup END | |
1 0.000000 endif | |
1 0.000000 endif | |
1 0.155913 0.000005 call dein#call_hook('source') | |
elseif g:spacevim_plugin_manager ==# 'vim-plug' | |
call plug#end() | |
1 0.000000 endif | |
FUNCTION SpaceVim#api#data#string#get() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/data/string.vim line 228 | |
Called 1 time | |
Total time: 0.000005 | |
Self time: 0.000005 | |
count total (s) self (s) | |
1 0.000004 return deepcopy(s:self) | |
FUNCTION remote#host#Register() | |
Defined: /usr/share/nvim/runtime/autoload/remote/host.vim line 6 | |
Called 4 times | |
Total time: 0.000029 | |
Self time: 0.000029 | |
count total (s) self (s) | |
4 0.000011 let s:hosts[a:name] = {'factory': a:factory, 'channel': 0, 'initialized': 0} | |
4 0.000005 let s:plugin_patterns[a:name] = a:pattern | |
4 0.000006 if type(a:factory) == type(1) && a:factory | |
" Passed a channel directly | |
let s:hosts[a:name].channel = a:factory | |
4 0.000001 endif | |
FUNCTION unite#init#_candidates_source() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/init.vim line 455 | |
Called 2 times | |
Total time: 0.000525 | |
Self time: 0.000491 | |
count total (s) self (s) | |
2 0.000044 0.000010 let source = unite#variables#loaded_sources(a:source_name) | |
2 0.000002 if empty(source) | |
return [] | |
2 0.000000 endif | |
2 0.000006 let default_candidate = { 'kind' : source.default_kind, 'is_dummy' : 0, 'is_matched' : 1, 'is_multiline' : 0, 'unite__is_marked' : 0, } | |
2 0.000002 let candidates = [] | |
92 0.000039 for candidate in a:candidates | |
90 0.000193 let candidate = extend(candidate, default_candidate, 'keep') | |
90 0.000091 let candidate.source = a:source_name | |
90 0.000089 call add(candidates, candidate) | |
92 0.000024 endfor | |
2 0.000002 return candidates | |
FUNCTION SpaceVim#layers#shell#plugins() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/shell.vim line 28 | |
Called 1 time | |
Total time: 0.000008 | |
Self time: 0.000008 | |
count total (s) self (s) | |
1 0.000001 let plugins = [] | |
1 0.000002 if has('nvim') | |
1 0.000002 call add(plugins,['Shougo/deol.nvim']) | |
1 0.000000 endif | |
1 0.000002 call add(plugins,['Shougo/vimshell.vim', { 'on_cmd':['VimShell']}]) | |
1 0.000001 return plugins | |
FUNCTION matchup#matchparen#init_module() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup/matchparen.vim line 12 | |
Called 1 time | |
Total time: 0.000107 | |
Self time: 0.000027 | |
count total (s) self (s) | |
1 0.000003 if !g:matchup_matchparen_enabled | return | endif | |
1 0.000084 0.000005 call matchup#matchparen#enable() | |
1 0.000018 nnoremap <silent> <plug>(matchup-hi-surround) :<c-u>call matchup#matchparen#highlight_surrounding()<cr> | |
FUNCTION <SNR>3_parser_argv() | |
Defined: ~/.SpaceVim/autoload/SpaceVim.vim line 1342 | |
Called 1 time | |
Total time: 0.000003 | |
Self time: 0.000003 | |
count total (s) self (s) | |
1 0.000001 if !argc() | |
1 0.000001 return [0] | |
elseif argv(0) =~# '/$' | |
let f = fnamemodify(expand(argv(0)), ':p') | |
if isdirectory(f) | |
return [1, f] | |
else | |
return [1, getcwd()] | |
endif | |
elseif argv(0) ==# '.' | |
return [1, getcwd()] | |
elseif isdirectory(expand(argv(0))) | |
return [1, fnamemodify(expand(argv(0)), ':p')] | |
else | |
return [2, argv()] | |
endif | |
FUNCTION dein#util#_get_cache_path() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/util.vim line 44 | |
Called 2 times | |
Total time: 0.000031 | |
Self time: 0.000019 | |
count total (s) self (s) | |
2 0.000002 if g:dein#_cache_path !=# '' | |
1 0.000001 return g:dein#_cache_path | |
1 0.000000 endif | |
1 0.000019 0.000007 let g:dein#_cache_path = get(g:, 'dein#cache_directory', g:dein#_base_path) . '/.cache/' . fnamemodify(dein#util#_get_myvimrc(), ':t') | |
1 0.000006 if !isdirectory(g:dein#_cache_path) | |
call mkdir(g:dein#_cache_path, 'p') | |
1 0.000000 endif | |
1 0.000001 return g:dein#_cache_path | |
FUNCTION SpaceVim#api#data#list#get() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/data/list.vim line 8 | |
Called 1 time | |
Total time: 0.000023 | |
Self time: 0.000023 | |
count total (s) self (s) | |
1 0.000023 return map({'pop' : '', 'push' : '', 'shift' : '', 'unshift' : '', 'uniq' : '', 'uniq_by' : '', 'uniq_by_func' : '', 'clear' : '', 'char_range' : '', 'has' : '', 'has_index' : '', 'listpart' : '', 'replace' : '', }, "function('s:' . v:key)" ) | |
FUNCTION <SNR>205_sort() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/vital/_unite/Data/List.vim line 105 | |
Called 2 times | |
Total time: 0.000014 | |
Self time: 0.000014 | |
count total (s) self (s) | |
2 0.000006 if type(a:expr) == type(function('function')) | |
return sort(a:list, a:expr) | |
2 0.000000 endif | |
2 0.000002 let s:expr = a:expr | |
2 0.000002 return sort(a:list, 's:_compare') | |
FUNCTION SpaceVim#plugins#load() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/plugins.vim line 10 | |
Called 1 time | |
Total time: 0.255150 | |
Self time: 0.000033 | |
count total (s) self (s) | |
1 0.000008 0.000005 if SpaceVim#plugins#enable_plug() | |
1 0.001072 0.000004 call SpaceVim#plugins#begin(g:spacevim_plugin_bundle_dir) | |
1 0.001406 0.000004 call SpaceVim#plugins#fetch() | |
1 0.096085 0.000008 call s:load_plugins() | |
1 0.000013 0.000005 call s:disable_plugins(g:spacevim_disabled_plugins) | |
1 0.156565 0.000004 call SpaceVim#plugins#end() | |
1 0.000000 endif | |
FUNCTION SpaceVim#api#vim#window#get() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/vim/window.vim line 101 | |
Called 1 time | |
Total time: 0.000003 | |
Self time: 0.000003 | |
count total (s) self (s) | |
1 0.000003 return deepcopy(s:self) | |
FUNCTION unite#util#is_mac() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/util.vim line 88 | |
Called 2 times | |
Total time: 0.000027 | |
Self time: 0.000017 | |
count total (s) self (s) | |
2 0.000026 0.000016 return call(s:get_prelude().is_mac, a:000) | |
FUNCTION 204() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup/matchparen.vim line 195 | |
Called 3 times | |
Total time: 0.000099 | |
Self time: 0.000023 | |
count total (s) self (s) | |
"" | |
" fade feature: remove highlights after a certain time | |
" {level} | |
" = 0: prepare for possible loss of cursor support | |
" = 1: new highlights are coming (cancel prior fade) | |
" = 2: end of new highlights | |
" {pos} [lnum, column] of current match | |
" {token} in/out saves state between calls | |
" | |
" returns 1 if highlighting should be canceled | |
3 0.000004 if !g:matchup_matchparen_deferred || !exists('w:matchup_fade_timer') | |
3 0.000002 if a:level <= 0 | |
3 0.000084 0.000008 call s:matchparen.clear() | |
3 0.000001 endif | |
3 0.000001 return 0 | |
endif | |
" jumping between windows | |
if a:level == 0 && win_getid() != get(s:, 'save_win') | |
call timer_pause(w:matchup_fade_timer, 1) | |
if exists('w:matchup_fade_pos') | |
unlet w:matchup_fade_pos | |
endif | |
call s:matchparen.clear() | |
let s:save_win = win_getid() | |
endif | |
" highlighting might be stale | |
if a:level == 0 | |
if exists('w:matchup_fade_pos') | |
let a:token.save_pos = w:matchup_fade_pos | |
unlet w:matchup_fade_pos | |
endif | |
if !w:matchup_need_clear | |
call timer_pause(w:matchup_fade_timer, 1) | |
endif | |
return 0 | |
endif | |
" prepare for new highlighting | |
if a:level == 1 | |
" if token has no save_pos, cursor was previously off of a match | |
if !has_key(a:token, 'save_pos') || a:pos != a:token.save_pos | |
" clear immediately | |
call timer_pause(w:matchup_fade_timer, 1) | |
call s:matchparen.clear() | |
return 0 | |
endif | |
let w:matchup_fade_pos = a:token.save_pos | |
return 1 | |
endif | |
" new highlighting is active | |
if a:level == 2 && a:pos != get(w:, 'matchup_fade_pos', []) | |
" init fade request | |
let w:matchup_fade_pos = a:pos | |
let w:matchup_fade_start = reltime() | |
call timer_pause(w:matchup_fade_timer, 0) | |
endif | |
return 0 | |
FUNCTION <SNR>10_import_module() | |
Defined: /usr/share/nvim/runtime/autoload/provider/pythonx.vim line 66 | |
Called 2 times | |
Total time: 0.022218 | |
Self time: 0.000081 | |
count total (s) self (s) | |
2 0.022199 0.000062 let prog_version = system([a:prog, '-c' , printf( 'import sys; ' . 'sys.path.remove(""); ' . 'sys.stdout.write(str(sys.version_info[0]) + "." + str(sys.version_info[1])); ' . 'import pkgutil; ' . 'exit(2*int(pkgutil.get_loader("%s") is None))', a:module)]) | |
2 0.000016 return [v:shell_error, prog_version] | |
FUNCTION SpaceVim#server#connect() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/server.vim line 15 | |
Called 1 time | |
Total time: 0.000116 | |
Self time: 0.000086 | |
count total (s) self (s) | |
1 0.000001 if s:flag == 0 | |
1 0.000004 if empty($SPACEVIM_SERVER_ADDRESS) | |
" in windows pipe server is used. | |
" call serverstart('\\.\pipe\nvim-pipe-1234') | |
1 0.000001 if s:SYS.isWindows | |
let $SPACEVIM_SERVER_ADDRESS = fnamemodify('\\.\pipe\' . (has('nvim') ? 'spacevim-nvim-' : 'spacevim-vim-') . 'server', ':p') | |
1 0.000000 else | |
1 0.000018 let $SPACEVIM_SERVER_ADDRESS = fnamemodify('/tmp/' . (has('nvim') ? 'spacevim_nvim_' : 'spacevim_vim_') . 'server', ':p') | |
1 0.000000 endif | |
1 0.000000 endif | |
1 0.000002 if has('nvim') | |
1 0.000001 try | |
1 0.000040 call serverstart($SPACEVIM_SERVER_ADDRESS) | |
1 0.000036 0.000006 call SpaceVim#logger#info('SpaceVim server startup at:' . $SPACEVIM_SERVER_ADDRESS) | |
catch | |
1 0.000000 endtry | |
elseif has('clientserver') && exists('*remote_startserver') | |
if index(split(serverlist(), "\n"), $SPACEVIM_SERVER_ADDRESS) == -1 | |
try | |
call remote_startserver($SPACEVIM_SERVER_ADDRESS) | |
call SpaceVim#logger#info('SpaceVim server startup at:' . $SPACEVIM_SERVER_ADDRESS) | |
catch | |
endtry | |
endif | |
1 0.000000 endif | |
1 0.000001 let s:flag = 1 | |
1 0.000000 endif | |
FUNCTION provider#pythonx#Detect() | |
Defined: /usr/share/nvim/runtime/autoload/provider/pythonx.vim line 37 | |
Called 2 times | |
Total time: 0.022462 | |
Self time: 0.000023 | |
count total (s) self (s) | |
2 0.022461 0.000022 return provider#pythonx#DetectByModule('neovim', a:major_version) | |
FUNCTION <SNR>111__map() | |
Defined: ~/.SpaceVim/bundle/vim-textobj-user/autoload/textobj/user.vim line 632 | |
Called 16 times | |
Total time: 0.000720 | |
Self time: 0.000720 | |
count total (s) self (s) | |
48 0.000040 for _ in a:map_commands | |
32 0.000613 execute 'silent!' (_) (a:forced_p ? '' : '<unique>') a:lhs substitute(a:rhs, '<mode>', _[0], 'g') | |
48 0.000023 endfor | |
FUNCTION unite#init#_context() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/init.vim line 30 | |
Called 4 times | |
Total time: 0.001188 | |
Self time: 0.000462 | |
count total (s) self (s) | |
4 0.000008 let source_names = get(a:000, 0, []) | |
4 0.000700 0.000177 let default_context = extend(copy(unite#variables#default_context()), unite#custom#get_context('default')) | |
4 0.000005 if len(source_names) == 1 | |
" Overwrite source context by profile. | |
4 0.000244 0.000040 call extend(default_context, unite#custom#get_context( 'source/' . source_names[0])) | |
4 0.000001 endif | |
4 0.000005 if get(a:context, 'script', 0) | |
" Set profile-name automatically. | |
let a:context.profile_name = 'script/' . join(source_names, ':') | |
4 0.000001 endif | |
4 0.000010 let profile_name = get(a:context, 'profile_name', get(a:context, 'buffer_name', 'default')) | |
4 0.000003 if profile_name !=# 'default' | |
" Overwrite context by profile. | |
call extend(default_context, unite#custom#get_context(profile_name)) | |
4 0.000001 endif | |
" Generic no. | |
4 0.000017 for option in map(filter(items(a:context), "stridx(v:val[0], 'no_') == 0 && v:val[1]"), 'v:val[0]') | |
let a:context[option[3:]] = 0 | |
4 0.000002 endfor | |
4 0.000008 let context = extend(default_context, a:context) | |
4 0.000004 if context.temporary || context.script | |
" User can overwrite context by profile context. | |
let context = extend(context, unite#custom#get_context(profile_name)) | |
4 0.000001 endif | |
" Complex initializer. | |
4 0.000002 if context.complete | |
let context.start_insert = 1 | |
4 0.000001 endif | |
4 0.000002 if context.horizontal | |
" Disable vertically. | |
let context.vertical = 0 | |
4 0.000001 endif | |
4 0.000002 if context.immediately | |
" Ignore empty unite buffer. | |
let context.empty = 0 | |
4 0.000001 endif | |
4 0.000002 if context.tab | |
let context.split = 0 | |
4 0.000001 endif | |
4 0.000002 if context.here | |
" Set direction. | |
let context.horizontal = 1 | |
let context.direction = 'botright' | |
4 0.000001 endif | |
4 0.000043 if (!&l:hidden && &l:modified) || (&l:hidden && &l:bufhidden =~# 'unload\|delete\|wipe') | |
" Split automatically. | |
1 0.000001 let context.split = 1 | |
4 0.000001 endif | |
4 0.000003 if context.prompt_direction == '' | |
4 0.000016 let context.prompt_direction = (context.direction =~# 'bel\|bot') && !context.vertical && !context.log ? 'below' : 'top' | |
4 0.000001 endif | |
4 0.000007 if context.prompt_direction ==# 'below' && !get(context, 'no_auto_resize', 0) | |
let context.auto_resize = 1 | |
4 0.000001 endif | |
4 0.000003 if context.path != '' | |
" Expand "~". | |
let context.path = unite#util#expand(context.path) | |
if context.path !~ '/$' | |
let context.path .= '/' | |
endif | |
4 0.000001 endif | |
4 0.000008 if len(source_names) == 1 && !get(context, 'no_hide_source_names', 0) | |
4 0.000003 let context.hide_source_names = 1 | |
4 0.000001 endif | |
4 0.000004 let context.is_changed = 0 | |
4 0.000003 return context | |
FUNCTION vimfiler#get_line_number() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler.vim line 113 | |
Called 2 times | |
Total time: 0.000011 | |
Self time: 0.000009 | |
count total (s) self (s) | |
2 0.000010 0.000008 return a:index + vimfiler#get_file_offset(a:vimfiler) + 1 | |
FUNCTION SpaceVim#api#unicode#icon#get() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/unicode/icon.vim line 26 | |
Called 1 time | |
Total time: 0.000003 | |
Self time: 0.000003 | |
count total (s) self (s) | |
1 0.000002 return deepcopy(s:self) | |
FUNCTION unite#variables#set_current_unite() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/variables.vim line 22 | |
Called 8 times | |
Total time: 0.000048 | |
Self time: 0.000048 | |
count total (s) self (s) | |
8 0.000046 let s:current_unite = a:unite | |
FUNCTION vimfiler#helper#_sort_files() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/helper.vim line 34 | |
Called 2 times | |
Total time: 0.009999 | |
Self time: 0.000105 | |
count total (s) self (s) | |
2 0.000002 let files = a:files | |
2 0.000032 let dirs = filter(copy(a:files), 'v:val.vimfiler__is_directory') | |
2 0.000031 let files = filter(copy(a:files), '!v:val.vimfiler__is_directory') | |
2 0.000002 if g:vimfiler_directory_display_top | |
2 0.009923 0.000029 let files = s:sort(dirs, b:vimfiler.local_sort_type)+ s:sort(files, b:vimfiler.local_sort_type) | |
else | |
let files = s:sort(files + dirs, b:vimfiler.local_sort_type) | |
2 0.000001 endif | |
2 0.000001 return files | |
FUNCTION SpaceVim#layers#autocomplete#plugins() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/autocomplete.vim line 41 | |
Called 1 time | |
Total time: 0.000060 | |
Self time: 0.000060 | |
count total (s) self (s) | |
1 0.000010 let plugins = [ [g:_spacevim_root_dir . 'bundle/vim-snippets', { 'on_event' : 'InsertEnter', 'loadconf_before' : 1}], [g:_spacevim_root_dir . 'bundle/neco-syntax', { 'on_event' : 'InsertEnter'}], [g:_spacevim_root_dir . 'bundle/context_filetype.vim', { 'on_event' : 'InsertEnter'}], [g:_spacevim_root_dir . 'bundle/neoinclude.vim', { 'on_event' : 'InsertEnter'}], [g:_spacevim_root_dir . 'bundle/neosnippet-snippets', { 'merged' : 0}], [g:_spacevim_root_dir . 'bundle/neopairs.vim', { 'on_event' : 'InsertEnter'}], ] | |
1 0.000003 call add(plugins, [g:_spacevim_root_dir . 'bundle/deoplete-dictionary', { 'merged' : 0}]) | |
1 0.000001 if g:spacevim_autocomplete_parens | |
1 0.000002 call add(plugins, [g:_spacevim_root_dir . 'bundle/delimitMate', { 'merged' : 0}]) | |
1 0.000000 endif | |
" snippet | |
1 0.000001 if g:spacevim_snippet_engine ==# 'neosnippet' | |
1 0.000003 call add(plugins, [g:_spacevim_root_dir . 'bundle/neosnippet.vim', { 'on_event' : 'InsertEnter', 'on_ft' : 'neosnippet', 'loadconf' : 1, 'on_cmd' : 'NeoSnippetEdit'}]) | |
elseif g:spacevim_snippet_engine ==# 'ultisnips' | |
call add(plugins, ['SirVer/ultisnips',{ 'loadconf_before' : 1, 'merged' : 0}]) | |
1 0.000000 endif | |
1 0.000001 if g:spacevim_autocomplete_method ==# 'ycm' | |
call add(plugins, ['Valloric/YouCompleteMe', { 'loadconf_before' : 1, 'merged' : 0}]) | |
1 0.000001 elseif g:spacevim_autocomplete_method ==# 'neocomplete' | |
call add(plugins, ['Shougo/neocomplete', { 'on_event' : 'InsertEnter', 'loadconf' : 1, }]) | |
1 0.000001 elseif g:spacevim_autocomplete_method ==# 'neocomplcache' "{{{ | |
call add(plugins, ['Shougo/neocomplcache.vim', { 'on_event' : 'InsertEnter', 'loadconf' : 1, }]) | |
1 0.000001 elseif g:spacevim_autocomplete_method ==# 'coc' | |
if executable('yarn') | |
call add(plugins, ['neoclide/coc.nvim', {'merged': 0, 'build': 'yarn install --frozen-lockfile'}]) | |
else | |
call add(plugins, ['neoclide/coc.nvim', {'merged': 0, 'rev': 'release'}]) | |
endif | |
1 0.000001 elseif g:spacevim_autocomplete_method ==# 'deoplete' | |
1 0.000002 call add(plugins, [g:_spacevim_root_dir . 'bundle/deoplete.nvim', { 'on_event' : 'InsertEnter', 'loadconf' : 1, }]) | |
1 0.000002 if !has('nvim') | |
call add(plugins, [g:_spacevim_root_dir . 'bundle/nvim-yarp', {'merged': 0}]) | |
call add(plugins, [g:_spacevim_root_dir . 'bundle/vim-hug-neovim-rpc', {'merged': 0}]) | |
1 0.000000 endif | |
elseif g:spacevim_autocomplete_method ==# 'asyncomplete' | |
call add(plugins, ['prabirshrestha/asyncomplete.vim', { 'loadconf' : 1, 'merged' : 0, }]) | |
call add(plugins, ['prabirshrestha/asyncomplete-buffer.vim', { 'loadconf' : 1, 'merged' : 0, }]) | |
call add(plugins, ['yami-beta/asyncomplete-omni.vim', { 'loadconf' : 1, 'merged' : 0, }]) | |
elseif g:spacevim_autocomplete_method ==# 'completor' | |
call add(plugins, ['maralla/completor.vim', { 'loadconf' : 1, 'merged' : 0, }]) | |
if g:spacevim_snippet_engine ==# 'neosnippet' | |
call add(plugins, ['maralla/completor-neosnippet', { 'loadconf' : 1, 'merged' : 0, }]) | |
endif | |
1 0.000000 endif | |
1 0.000002 if has('patch-7.4.774') | |
" both echodoc and CompleteParameter requires | |
" vim patch-7.4.744 | |
" v:completed_item | |
1 0.000003 call add(plugins, ['Shougo/echodoc.vim', { 'on_cmd' : ['EchoDocEnable', 'EchoDocDisable'], 'on_event' : 'CompleteDone', 'loadconf_before' : 1, }]) | |
1 0.000002 call add(plugins, [g:_spacevim_root_dir . 'bundle/CompleteParameter.vim', { 'merged' : 0}]) | |
1 0.000000 endif | |
1 0.000001 return plugins | |
FUNCTION vimfiler#view#_define_syntax() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/view.vim line 336 | |
Called 1 time | |
Total time: 0.000005 | |
Self time: 0.000005 | |
count total (s) self (s) | |
1 0.000003 for column in filter( copy(b:vimfiler.columns), "get(v:val, 'syntax', '') != ''") | |
call column.define_syntax(b:vimfiler.context) | |
1 0.000000 endfor | |
FUNCTION <SNR>205_uniq_by() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/vital/_unite/Data/List.vim line 52 | |
Called 4 times | |
Total time: 0.000819 | |
Self time: 0.000819 | |
count total (s) self (s) | |
4 0.000107 let list = map(copy(a:list), printf('[v:val, %s]', a:f)) | |
4 0.000003 let i = 0 | |
4 0.000003 let seen = {} | |
104 0.000080 while i < len(list) | |
100 0.000124 let key = string(list[i][1]) | |
100 0.000099 if has_key(seen, key) | |
2 0.000003 call remove(list, i) | |
98 0.000021 else | |
98 0.000123 let seen[key] = 1 | |
98 0.000048 let i += 1 | |
100 0.000022 endif | |
104 0.000032 endwhile | |
4 0.000044 return map(list, 'v:val[0]') | |
FUNCTION <SNR>146_ParsePattern() | |
Defined: ~/.SpaceVim/bundle/tabular/plugin/Tabular.vim line 94 | |
Called 6 times | |
Total time: 0.000381 | |
Self time: 0.000224 | |
count total (s) self (s) | |
6 0.000006 if a:string[0] != '/' | |
return ['',''] | |
6 0.000002 endif | |
6 0.000263 0.000106 let pat = '\\\@<!\%(\\\\\)\{-}\zs/' . tabular#ElementFormatPattern() . '*$' | |
6 0.000061 let format = matchstr(a:string[1:-1], pat) | |
6 0.000006 if !empty(format) | |
6 0.000006 let format = format[1 : -1] | |
6 0.000010 let pattern = a:string[1 : -len(format) - 2] | |
else | |
let pattern = a:string[1 : -1] | |
6 0.000002 endif | |
6 0.000006 return [pattern, format] | |
FUNCTION <SNR>68_generate_dummy_commands() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/parse.vim line 314 | |
Called 9 times | |
Total time: 0.000416 | |
Self time: 0.000416 | |
count total (s) self (s) | |
9 0.000013 let a:plugin.dummy_commands = [] | |
24 0.000018 for name in a:plugin.on_cmd | |
" Define dummy commands. | |
15 0.000088 let raw_cmd = 'command ' . '-complete=customlist,dein#autoload#_dummy_complete' . ' -bang -bar -range -nargs=* '. name . printf(" call dein#autoload#_on_cmd(%s, %s, <q-args>, expand('<bang>'), expand('<line1>'), expand('<line2>'))", string(name), string(a:plugin.name)) | |
15 0.000028 call add(a:plugin.dummy_commands, [name, raw_cmd]) | |
15 0.000202 silent! execute raw_cmd | |
24 0.000011 endfor | |
FUNCTION <SNR>181_show_files() | |
Defined: ~/.SpaceVim/bundle/vim-startify/autoload/startify.vim line 681 | |
Called 1 time | |
Total time: 0.001428 | |
Self time: 0.000007 | |
count total (s) self (s) | |
1 0.001428 0.000007 return s:display_by_path('', s:relative_path, get(g:, 'startify_use_env')) | |
FUNCTION unite#helper#call_hook() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/helper.vim line 10 | |
Called 8 times | |
Total time: 0.000506 | |
Self time: 0.000316 | |
count total (s) self (s) | |
8 0.000169 0.000029 let context = unite#get_context() | |
8 0.000007 if context.unite__disable_hooks | |
return | |
8 0.000002 endif | |
8 0.000078 0.000029 let custom = unite#custom#get() | |
16 0.000015 for source in a:sources | |
8 0.000021 let custom_source = get(custom.sources, source.name, {}) | |
8 0.000004 try | |
8 0.000013 if has_key(source.hooks, a:hook_name) | |
call call(source.hooks[a:hook_name], [source.args, source.unite__context], source.hooks) | |
8 0.000002 endif | |
8 0.000010 if has_key(custom_source, a:hook_name) | |
call call(custom_source[a:hook_name], [source.args, source.unite__context]) | |
8 0.000002 endif | |
catch | |
call unite#print_error(v:throwpoint) | |
call unite#print_error(v:exception) | |
call unite#print_error( 'Error occurred in calling hook "' . a:hook_name . '"!') | |
call unite#print_error( 'Source name is ' . source.name) | |
8 0.000004 endtry | |
16 0.000009 endfor | |
FUNCTION remote#host#IsRunning() | |
Defined: /usr/share/nvim/runtime/autoload/remote/host.vim line 49 | |
Called 3 times | |
Total time: 0.000013 | |
Self time: 0.000013 | |
count total (s) self (s) | |
3 0.000005 if !has_key(s:hosts, a:name) | |
throw 'No host named "'.a:name.'" is registered' | |
3 0.000001 endif | |
3 0.000004 return s:hosts[a:name].channel != 0 | |
FUNCTION dein#util#_is_windows() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/util.vim line 21 | |
Called 1 time | |
Total time: 0.000001 | |
Self time: 0.000001 | |
count total (s) self (s) | |
1 0.000001 return s:is_windows | |
FUNCTION SpaceVim#api#iconv#get() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/iconv.vim line 133 | |
Called 1 time | |
Total time: 0.000003 | |
Self time: 0.000003 | |
count total (s) self (s) | |
1 0.000002 return deepcopy(s:self) | |
FUNCTION <SNR>36_major_mode() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/core/statusline.vim line 146 | |
Called 1 time | |
Total time: 0.000001 | |
Self time: 0.000001 | |
count total (s) self (s) | |
1 0.000001 return '%{empty(&ft)? "" : " " . &ft . " "}' | |
FUNCTION unite#helper#get_substitute_input_loop() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/helper.vim line 69 | |
Called 2 times | |
Total time: 0.000005 | |
Self time: 0.000005 | |
count total (s) self (s) | |
2 0.000002 if empty(a:substitute_patterns) | |
2 0.000002 return [a:input] | |
endif | |
let inputs = [a:input] | |
for pattern in a:substitute_patterns | |
let cnt = 0 | |
for input in inputs | |
if input =~ pattern.pattern | |
if type(pattern.subst) == type([]) | |
if len(inputs) == 1 | |
" List substitute. | |
let inputs = [] | |
for subst in pattern.subst | |
call add(inputs, substitute(input, pattern.pattern, subst, 'g')) | |
endfor | |
endif | |
else | |
let inputs[cnt] = substitute( input, pattern.pattern, pattern.subst, 'g') | |
endif | |
endif | |
let cnt += 1 | |
endfor | |
endfor | |
return inputs | |
FUNCTION <SNR>140_option_init() | |
Defined: ~/.SpaceVim/bundle/delimitMate/plugin/delimitMate.vim line 31 | |
Called 138 times | |
Total time: 0.004145 | |
Self time: 0.001409 | |
count total (s) self (s) | |
138 0.000254 let b = exists("b:delimitMate_" . a:name) | |
138 0.000215 let g = exists("g:delimitMate_" . a:name) | |
" Find value to use. | |
138 0.000075 if !b && !g | |
138 0.000102 let value = a:default | |
elseif b | |
exec "let value = b:delimitMate_" . a:name | |
else | |
exec "let value = g:delimitMate_" . a:name | |
138 0.000032 endif | |
138 0.003159 0.000423 call s:set(a:name, value) | |
FUNCTION SpaceVim#layers#core#statusline#def_colors() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/core/statusline.vim line 600 | |
Called 3 times | |
Total time: 0.002865 | |
Self time: 0.000447 | |
count total (s) self (s) | |
3 0.000006 if !empty(g:spacevim_custom_color_palette) | |
let t = g:spacevim_custom_color_palette | |
3 0.000001 else | |
3 0.000007 let name = get(g:, 'colors_name', 'gruvbox') | |
3 0.000002 try | |
3 0.000039 0.000019 let t = SpaceVim#mapping#guide#theme#{name}#palette() | |
catch /^Vim\%((\a\+)\)\=:E117/ | |
let t = SpaceVim#mapping#guide#theme#gruvbox#palette() | |
3 0.000002 endtry | |
3 0.000001 endif | |
3 0.000015 let s:colors_template = t | |
3 0.000025 exe 'hi! SpaceVim_statusline_a ctermbg=' . t[0][2] . ' ctermfg=' . t[0][3] . ' guibg=' . t[0][1] . ' guifg=' . t[0][0] | |
3 0.000042 exe 'hi! SpaceVim_statusline_a_bold cterm=bold gui=bold ctermbg=' . t[0][2] . ' ctermfg=' . t[0][3] . ' guibg=' . t[0][1] . ' guifg=' . t[0][0] | |
3 0.000026 exe 'hi! SpaceVim_statusline_ia gui=bold cterm=bold ctermbg=' . t[0][2] . ' ctermfg=' . t[0][3] . ' guibg=' . t[0][1] . ' guifg=' . t[0][0] | |
3 0.000018 exe 'hi! SpaceVim_statusline_b ctermbg=' . t[1][2] . ' ctermfg=' . t[1][3] . ' guibg=' . t[1][1] . ' guifg=' . t[1][0] | |
3 0.000036 exe 'hi! SpaceVim_statusline_c ctermbg=' . t[2][2] . ' ctermfg=' . t[2][3] . ' guibg=' . t[2][1] . ' guifg=' . t[2][0] | |
3 0.000040 exe 'hi! SpaceVim_statusline_z ctermbg=' . t[3][1] . ' ctermfg=' . t[2][2] . ' guibg=' . t[3][0] . ' guifg=' . t[2][0] | |
3 0.000053 hi! SpaceVim_statusline_error ctermbg=003 ctermfg=Black guibg=#504945 guifg=#fb4934 gui=bold | |
3 0.000015 hi! SpaceVim_statusline_warn ctermbg=003 ctermfg=Black guibg=#504945 guifg=#fabd2f gui=bold | |
3 0.000464 0.000026 call s:HI.hi_separator('SpaceVim_statusline_a', 'SpaceVim_statusline_b') | |
3 0.000400 0.000021 call s:HI.hi_separator('SpaceVim_statusline_a_bold', 'SpaceVim_statusline_b') | |
3 0.000379 0.000017 call s:HI.hi_separator('SpaceVim_statusline_ia', 'SpaceVim_statusline_b') | |
3 0.000420 0.000017 call s:HI.hi_separator('SpaceVim_statusline_b', 'SpaceVim_statusline_c') | |
3 0.000429 0.000019 call s:HI.hi_separator('SpaceVim_statusline_b', 'SpaceVim_statusline_z') | |
3 0.000427 0.000019 call s:HI.hi_separator('SpaceVim_statusline_c', 'SpaceVim_statusline_z') | |
FUNCTION SpaceVim#layers#checkers#config() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/checkers.vim line 54 | |
Called 1 time | |
Total time: 0.001070 | |
Self time: 0.000179 | |
count total (s) self (s) | |
"" neomake/neomake {{{ | |
" This setting will echo the error for the line your cursor is on, if any. | |
1 0.000004 let g:neomake_echo_current_error = get(g:, 'neomake_echo_current_error', !s:show_cursor_error) | |
1 0.000005 let g:neomake_cursormoved_delay = get(g:, 'neomake_cursormoved_delay', 300) | |
"" }}} | |
1 0.000005 let g:neomake_virtualtext_current_error = get(g:, 'neomake_virtualtext_current_error', !s:show_cursor_error) | |
"" w0rp/ale {{{ | |
1 0.000004 let g:ale_echo_delay = get(g:, 'ale_echo_delay', 300) | |
"" }}} | |
1 0.000090 0.000010 call SpaceVim#mapping#space#def('nnoremap', ['e', 'c'], 'call call(' . string(s:_function('s:clear_errors')) . ', [])', 'clear-all-errors', 1) | |
1 0.000073 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['e', 'h'], '', 'describe-a-syntax-checker', 1) | |
1 0.000069 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['e', 'v'], '', 'verify-syntax-checker-setup', 1) | |
1 0.000079 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['e', 'n'], 'call call(' . string(s:_function('s:jump_to_next_error')) . ', [])', 'next-error', 1) | |
1 0.000078 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['e', 'l'], 'call call(' . string(s:_function('s:toggle_show_error')) . ', [0])', 'toggle-showing-the-error-list', 1) | |
1 0.000077 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['e', 'L'], 'call call(' . string(s:_function('s:toggle_show_error')) . ', [1])', 'toggle-showing-the-error-list', 1) | |
1 0.000077 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['e', 'p'], 'call call(' . string(s:_function('s:jump_to_previous_error')) . ', [])', 'previous-error', 1) | |
1 0.000076 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['e', 'N'], 'call call(' . string(s:_function('s:jump_to_previous_error')) . ', [])', 'previous-error', 1) | |
1 0.000092 0.000010 call SpaceVim#mapping#space#def('nnoremap', ['e', 'v'], 'call call(' . string(s:_function('s:verify_syntax_setup')) . ', [])', 'verify-syntax-setup', 1) | |
1 0.000154 0.000036 call SpaceVim#mapping#space#def('nnoremap', ['e', '.'], 'call call(' . string(s:_function('s:error_transient_state')) . ', [])', 'error-transient-state', 1) | |
1 0.000076 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['t', 's'], 'call call(' . string(s:_function('s:toggle_syntax_checker')) . ', [])', 'toggle-syntax-checker', 1) | |
1 0.000077 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['e', 'e'], 'call call(' . string(s:_function('s:explain_the_error')) . ', [])', 'explain-the-error', 1) | |
1 0.000001 augroup SpaceVim_layer_checker | |
1 0.000002 autocmd! | |
1 0.000001 if g:spacevim_enable_neomake | |
1 0.000006 0.000004 if SpaceVim#layers#isLoaded('core#statusline') | |
1 0.000004 autocmd User NeomakeFinished nested let &l:statusline = SpaceVim#layers#core#statusline#get(1) | |
1 0.000000 endif | |
1 0.000001 if s:show_cursor_error | |
" when move cursor, the error message will be shown below current line | |
" after a delay | |
1 0.000003 autocmd CursorMoved * call <SID>neomake_cursor_move_delay() | |
" when switch to Insert mode, stop timer and clear the signature | |
1 0.000001 if exists('##CmdLineEnter') | |
1 0.000004 autocmd InsertEnter,WinLeave * call <SID>neomake_signatures_clear() | |
1 0.000002 autocmd CmdLineEnter * call <SID>neomake_signatures_clear() | |
else | |
autocmd InsertEnter,WinLeave * call <SID>neomake_signatures_clear() | |
1 0.000000 endif | |
1 0.000000 endif | |
elseif g:spacevim_enable_ale && SpaceVim#layers#isLoaded('core#statusline') | |
autocmd User ALELint let &l:statusline = SpaceVim#layers#core#statusline#get(1) | |
1 0.000000 endif | |
1 0.000000 augroup END | |
FUNCTION dein#types#raw#define() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/types/raw.vim line 7 | |
Called 1 time | |
Total time: 0.000001 | |
Self time: 0.000001 | |
count total (s) self (s) | |
1 0.000001 return s:type | |
FUNCTION <SNR>181_show_lists() | |
Defined: ~/.SpaceVim/bundle/vim-startify/autoload/startify.vim line 477 | |
Called 1 time | |
Total time: 0.003165 | |
Self time: 0.000160 | |
count total (s) self (s) | |
5 0.000003 for list in a:lists | |
4 0.000005 if !has_key(list, 'type') | |
continue | |
4 0.000001 endif | |
4 0.000010 let b:startify.indices = copy(get(list, 'indices', [])) | |
4 0.000005 if type(list.type) == type('') | |
4 0.000003 if has_key(list, 'header') | |
4 0.000005 let s:last_message = list.header | |
4 0.000001 endif | |
4 0.003027 0.000022 call s:show_{list.type}() | |
elseif type(list.type) == type(function('tr')) | |
try | |
let entries = list.type() | |
catch | |
call s:warn(v:exception) | |
continue | |
endtry | |
if empty(entries) | |
unlet! s:last_message | |
continue | |
endif | |
if has_key(list, 'header') | |
let s:last_message = list.header | |
call s:print_section_header() | |
endif | |
for entry in entries | |
let cmd = get(entry, 'cmd', 'edit') | |
let path = get(entry, 'path', '') | |
let type = get(entry, 'type', empty(path) ? 'special' : 'file') | |
let index = s:get_index_as_string() | |
call append('$', s:padding_left .'['. index .']'. repeat(' ', (3 - strlen(index))) . entry.line) | |
call s:register(line('$'), index, type, cmd, path) | |
endfor | |
call append('$', '') | |
else | |
call s:warn('Wrong format for g:startify_lists: '. string(list)) | |
4 0.000001 endif | |
5 0.000002 endfor | |
FUNCTION unite#set_context() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite.vim line 168 | |
Called 6 times | |
Total time: 0.000181 | |
Self time: 0.000074 | |
count total (s) self (s) | |
6 0.000108 0.000018 let old_context = unite#get_context() | |
6 0.000009 if exists('b:unite') && !unite#variables#use_current_unite() | |
let b:unite.context = a:context | |
6 0.000002 else | |
6 0.000041 0.000024 let current_unite = unite#variables#current_unite() | |
6 0.000006 let current_unite.context = a:context | |
6 0.000002 endif | |
6 0.000004 return old_context | |
FUNCTION <SNR>200_get_words() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/helper.vim line 325 | |
Called 468 times | |
Total time: 0.005608 | |
Self time: 0.005608 | |
count total (s) self (s) | |
468 0.000313 let words = [] | |
958 0.001429 for split in split(a:filename, '\d\+\zs\ze') | |
490 0.001319 let words += split(split, '\D\zs\ze\d\+') | |
958 0.000307 endfor | |
468 0.001647 return map(words, "v:val =~ '^\\d\\+$' ? str2nr(v:val) : v:val") | |
FUNCTION unite#util#has_vimproc() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/util.vim line 141 | |
Called 2 times | |
Total time: 0.001133 | |
Self time: 0.000017 | |
count total (s) self (s) | |
2 0.001132 0.000016 return call(s:get_process().has_vimproc, a:000) | |
FUNCTION <SNR>181_open_buffer() | |
Defined: ~/.SpaceVim/bundle/vim-startify/autoload/startify.vim line 523 | |
Called 1 time | |
Total time: 0.000000 | |
Self time: 0.000000 | |
count total (s) self (s) | |
1 0.000002 if a:entry.type == 'special' | |
execute a:entry.cmd | |
elseif a:entry.type == 'session' | |
execute a:entry.cmd a:entry.path | |
elseif a:entry.type == 'file' | |
if line2byte('$') == -1 | |
execute 'edit' a:entry.path | |
else | |
if a:entry.cmd == 'tabnew' | |
wincmd = | |
endif | |
execute a:entry.cmd a:entry.path | |
endif | |
call s:check_user_options(a:entry.path) | |
endif | |
if exists('#User#StartifyBufferOpened') | |
doautocmd <nomodeline> User StartifyBufferOpened | |
endif | |
FUNCTION unite#variables#static() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/variables.vim line 38 | |
Called 8 times | |
Total time: 0.000035 | |
Self time: 0.000035 | |
count total (s) self (s) | |
8 0.000009 if !exists('s:static') | |
1 0.000001 let s:static = {} | |
1 0.000001 let s:static.sources = {} | |
1 0.000001 let s:static.kinds = {} | |
1 0.000001 let s:static.filters = {} | |
8 0.000002 endif | |
8 0.000004 return s:static | |
FUNCTION <SNR>225_get_delim() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup/delim.vim line 269 | |
Called 3 times | |
Total time: 0.000412 | |
Self time: 0.000293 | |
count total (s) self (s) | |
" arguments: {{{2 | |
" opts = { | |
" 'direction' : 'next' | 'prev' | 'current' | |
" 'type' : 'delim_tex' | |
" | 'delim_all' | |
" | 'all' | |
" 'side' : 'open' | 'close' | |
" | 'both' | 'mid' | |
" | 'both_all' | 'open_mid' | |
" } | |
" | |
" }}}2 | |
" returns: {{{2 | |
" delim = { | |
" type : 'delim' | |
" lnum : line number | |
" cnum : column number | |
" match : the actual text match | |
" augment : how to match a corresponding open | |
" groups : dict of captured groups | |
" side : 'open' | 'close' | 'mid' | |
" class : [ c1, c2 ] identifies the kind of match_words | |
" regexone : the regex item, like \1foo | |
" regextwo : the regex_capture item, like \(group\)foo | |
" } | |
" | |
" }}}2 | |
3 0.000004 if !get(b:, 'matchup_delim_enabled', 0) | |
1 0.000001 return {} | |
2 0.000000 endif | |
2 0.000012 0.000007 call matchup#perf#tic('s:get_delim') | |
2 0.000009 0.000006 let l:save_pos = matchup#pos#get_cursor() | |
2 0.000044 0.000007 call matchup#loader#refresh_match_words() | |
" this contains all the patterns for the specified type and side | |
2 0.000005 let l:re = b:matchup_delim_re[a:opts.type][a:opts.side] | |
2 0.000003 let l:cursorpos = col('.') | |
2 0.000003 let l:insertmode = get(a:opts, 'insertmode', 0) | |
2 0.000002 if l:cursorpos > 1 && l:insertmode | |
let l:cursorpos -= 1 | |
2 0.000000 endif | |
2 0.000005 if l:cursorpos > strlen(getline('.')) && stridx("vV\<c-v>", mode()) > -1 | |
let l:cursorpos -= 1 | |
2 0.000000 endif | |
2 0.000002 let s:invert_skip = 0 | |
2 0.000002 if a:opts.direction ==# 'current' | |
2 0.000007 let l:check_skip = get(a:opts, 'check_skip', g:matchup_delim_noskips >= 2 || g:matchup_delim_noskips >= 1 && getline(line('.'))[l:cursorpos-1] =~ '[^[:punct:]]') | |
2 0.000003 if l:check_skip && matchup#delim#skip(line('.'), l:cursorpos) | |
return {} | |
2 0.000000 endif | |
else | |
" check skip if cursor is not currently in skip | |
let l:check_skip = get(a:opts, 'check_skip', !matchup#delim#skip(line('.'), l:cursorpos) || g:matchup_delim_noskips >= 2) | |
2 0.000000 endif | |
2 0.000002 let a:opts.cursorpos = l:cursorpos | |
" for current, we want to find matches that end after the cursor | |
" note: we expect this to give false-positives with \ze | |
2 0.000001 if a:opts.direction ==# 'current' | |
2 0.000004 let l:re .= '\%>'.(l:cursorpos).'c' | |
" let l:re = '\%<'.(l:cursorpos+1).'c' . l:re | |
2 0.000001 endif | |
" allow overlapping delimiters | |
" without this, the > in <tag> would not be found | |
2 0.000003 if b:matchup_delim_re[a:opts.type]._engine_info.has_zs[a:opts.side] | |
let l:save_cpo = &cpo | |
noautocmd set cpo-=c | |
2 0.000001 else | |
" faster than changing cpo but doesn't work right with \zs | |
2 0.000002 let l:re .= '\&' | |
2 0.000000 endif | |
" move cursor one left for searchpos if necessary | |
2 0.000002 let l:need_restore_cursor = 0 | |
2 0.000001 if l:insertmode | |
call matchup#pos#set_cursor(line('.'), col('.')-1) | |
let l:need_restore_cursor = 1 | |
2 0.000000 endif | |
" stopline may depend on the current action | |
2 0.000003 let l:stopline = get(a:opts, 'stopline', s:stopline) | |
" in the first pass, we get matching line and column numbers | |
" this is intended to be as fast as possible, with no capture groups | |
" we look for a match on this line (if direction == current) | |
" or forwards or backwards (if direction == next or prev) | |
" for current, we actually search leftwards from the cursor | |
2 0.000002 while 1 | |
2 0.000010 0.000007 let l:to = matchup#perf#timeout() | |
2 0.000095 let [l:lnum, l:cnum] = a:opts.direction ==# 'next' ? searchpos(l:re, 'cnW', line('.') + l:stopline, l:to) : a:opts.direction ==# 'prev' ? searchpos(l:re, 'bcnW', max([line('.') - l:stopline, 1]), l:to) : searchpos(l:re, 'bcnW', line('.'), l:to) | |
2 0.000004 if l:lnum == 0 | break | endif | |
" note: the skip here should not be needed | |
" in 'current' mode, but be explicit | |
if a:opts.direction !=# 'current' && (l:check_skip || g:matchup_delim_noskips == 1 && getline(l:lnum)[l:cnum-1] =~ '[^[:punct:]]') && matchup#delim#skip(l:lnum, l:cnum) && (a:opts.direction ==# 'prev' ? (l:lnum > 1 || l:cnum > 1) : (l:lnum < line('$') || l:cnum < len(getline('$')))) | |
" invalid match, move cursor and keep looking | |
call matchup#pos#set_cursor(a:opts.direction ==# 'next' ? matchup#pos#next(l:lnum, l:cnum) : matchup#pos#prev(l:lnum, l:cnum)) | |
let l:need_restore_cursor = 1 | |
continue | |
endif | |
break | |
2 0.000001 endwhile | |
" restore cpo if necessary | |
" note: this messes with cursor position | |
2 0.000002 if exists('l:save_cpo') | |
noautocmd let &cpo = l:save_cpo | |
let l:need_restore_cursor = 1 | |
2 0.000000 endif | |
" restore cursor | |
2 0.000001 if l:need_restore_cursor | |
call matchup#pos#set_cursor(l:save_pos) | |
2 0.000000 endif | |
2 0.000048 0.000009 call matchup#perf#toc('s:get_delim', 'first_pass') | |
" nothing found, leave now | |
2 0.000001 if l:lnum == 0 | |
2 0.000038 0.000007 call matchup#perf#toc('s:get_delim', 'nothing_found') | |
2 0.000001 return {} | |
endif | |
if matchup#perf#timeout_check() | |
return {} | |
endif | |
let l:skip_state = 0 | |
if !l:check_skip && (!&synmaxcol || l:cnum <= &synmaxcol) | |
" XXX: workaround an apparent obscure vim bug where the | |
" reported syntax id is incorrect on the first synID() call | |
call matchup#delim#skip(l:lnum, l:cnum) | |
if matchup#perf#timeout_check() | |
return {} | |
endif | |
let l:skip_state = matchup#delim#skip(l:lnum, l:cnum) | |
endif | |
" now we get more data about the match in this position | |
" there may be capture groups which need to be stored | |
" result stub, to be filled by the parser when there is a match | |
let l:result = { 'lnum' : l:lnum, 'cnum' : l:cnum, 'type' : '', 'match' : '', 'augment' : '', 'groups' : '', 'side' : '', 'class' : [], 'regexone' : '', 'regextwo' : '', 'skip' : l:skip_state,} | |
for l:type in s:types[a:opts.type] | |
let l:parser_result = l:type.parser(l:lnum, l:cnum, a:opts) | |
if !empty(l:parser_result) | |
let l:result = extend(l:parser_result, l:result, 'keep') | |
break | |
endif | |
endfor | |
call matchup#perf#toc('s:get_delim', 'got_results') | |
return empty(l:result.type) ? {} : l:result | |
FUNCTION <SNR>121_init_options() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup.vim line 20 | |
Called 1 time | |
Total time: 0.000228 | |
Self time: 0.000108 | |
count total (s) self (s) | |
1 0.000011 0.000005 call s:init_option('matchup_matchparen_enabled', !(&t_Co < 8 && !has('gui_running'))) | |
1 0.000002 let l:offs = {'method': 'status'} | |
1 0.000002 if !get(g:, 'matchup_matchparen_status_offscreen', 1) | |
1 0.000001 let l:offs = {} | |
1 0.000000 endif | |
1 0.000001 if get(g:, 'matchup_matchparen_status_offscreen_manual', 0) | |
let l:offs.method = 'status_manual' | |
1 0.000000 endif | |
1 0.000001 if exists('g:matchup_matchparen_scrolloff') | |
let l:offs.scrolloff = g:matchup_matchparen_scrolloff | |
1 0.000000 endif | |
1 0.000008 0.000004 call s:init_option('matchup_matchparen_offscreen', l:offs) | |
1 0.000007 0.000003 call s:init_option('matchup_matchparen_singleton', 0) | |
1 0.000007 0.000003 call s:init_option('matchup_matchparen_deferred', 0) | |
1 0.000007 0.000003 call s:init_option('matchup_matchparen_deferred_show_delay', 50) | |
1 0.000007 0.000003 call s:init_option('matchup_matchparen_deferred_hide_delay', 700) | |
1 0.000007 0.000003 call s:init_option('matchup_matchparen_deferred_fade_time', 0) | |
1 0.000007 0.000003 call s:init_option('matchup_matchparen_stopline', 400) | |
1 0.000007 0.000003 call s:init_option('matchup_matchparen_pumvisible', 1) | |
1 0.000007 0.000003 call s:init_option('matchup_matchparen_nomode', '') | |
1 0.000007 0.000003 call s:init_option('matchup_matchparen_hi_surround_always', 0) | |
1 0.000007 0.000003 call s:init_option('matchup_matchparen_hi_background', 0) | |
1 0.000008 0.000004 call s:init_option('matchup_matchparen_timeout', get(g:, 'matchparen_timeout', 300)) | |
1 0.000009 0.000005 call s:init_option('matchup_matchparen_insert_timeout', get(g:, 'matchparen_insert_timeout', 60)) | |
1 0.000007 0.000003 call s:init_option('matchup_delim_count_fail', 0) | |
1 0.000007 0.000003 call s:init_option('matchup_delim_count_max', 8) | |
1 0.000007 0.000003 call s:init_option('matchup_delim_start_plaintext', 1) | |
1 0.000007 0.000003 call s:init_option('matchup_delim_noskips', 0) | |
1 0.000007 0.000003 call s:init_option('matchup_motion_enabled', 1) | |
1 0.000007 0.000003 call s:init_option('matchup_motion_cursor_end', 1) | |
1 0.000007 0.000003 call s:init_option('matchup_motion_override_Npercent', 6) | |
1 0.000007 0.000003 call s:init_option('matchup_text_obj_enabled', 1) | |
1 0.000008 0.000004 call s:init_option('matchup_text_obj_linewise_operators', ['d', 'y']) | |
1 0.000007 0.000003 call s:init_option('matchup_transmute_enabled', 0) | |
1 0.000007 0.000003 call s:init_option('matchup_transmute_breakundo', 0) | |
1 0.000006 0.000003 call s:init_option('matchup_mouse_enabled', 1) | |
1 0.000007 0.000003 call s:init_option('matchup_surround_enabled', 0) | |
1 0.000006 0.000003 call s:init_option('matchup_where_enabled', 1) | |
1 0.000007 0.000004 call s:init_option('matchup_where_separator', '') | |
1 0.000007 0.000003 call s:init_option('matchup_matchpref', {}) | |
FUNCTION provider#pythonx#CheckForModule() | |
Defined: /usr/share/nvim/runtime/autoload/provider/pythonx.vim line 78 | |
Called 2 times | |
Total time: 0.022353 | |
Self time: 0.000134 | |
count total (s) self (s) | |
2 0.000034 let prog_path = exepath(a:prog) | |
2 0.000002 if prog_path ==# '' | |
return [0, a:prog . ' not found in search path or not executable.'] | |
2 0.000001 endif | |
2 0.000003 let min_version = (a:major_version == 2) ? '2.6' : '3.3' | |
" Try to load module, and output Python version. | |
" Exit codes: | |
" 0 module can be loaded. | |
" 2 module cannot be loaded. | |
" Otherwise something else went wrong (e.g. 1 or 127). | |
2 0.022239 0.000021 let [prog_exitcode, prog_version] = s:import_module(a:prog, a:module) | |
2 0.000005 if prog_exitcode == 2 || prog_exitcode == 0 | |
" Check version only for expected return codes. | |
2 0.000028 if prog_version !~ '^' . a:major_version | |
return [0, prog_path . ' is Python ' . prog_version . ' and cannot provide Python ' . a:major_version . '.'] | |
2 0.000007 elseif prog_version =~ '^' . a:major_version && prog_version < min_version | |
return [0, prog_path . ' is Python ' . prog_version . ' and cannot provide Python >= ' . min_version . '.'] | |
2 0.000001 endif | |
2 0.000001 endif | |
2 0.000002 if prog_exitcode == 2 | |
return [0, prog_path.' does not have the "' . a:module . '" module. :help provider-python'] | |
2 0.000001 elseif prog_exitcode == 127 | |
" This can happen with pyenv's shims. | |
return [0, prog_path . ' does not exist: ' . prog_version] | |
2 0.000001 elseif prog_exitcode | |
return [0, 'Checking ' . prog_path . ' caused an unknown error. ' . '(' . prog_exitcode . ', output: ' . prog_version . ')' . ' Report this at https://github.com/neovim/neovim'] | |
2 0.000001 endif | |
2 0.000003 return [1, ''] | |
FUNCTION <SNR>140_set() | |
Defined: ~/.SpaceVim/bundle/delimitMate/plugin/delimitMate.vim line 153 | |
Called 138 times | |
Total time: 0.002736 | |
Self time: 0.000519 | |
count total (s) self (s) | |
138 0.002717 0.000500 return call('delimitMate#Set', a:000) | |
FUNCTION SpaceVim#api#data#number#get() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/data/number.vim line 12 | |
Called 1 time | |
Total time: 0.000008 | |
Self time: 0.000008 | |
count total (s) self (s) | |
1 0.000008 return map({ 'random' : '', }, "function('s:' . v:key)" ) | |
FUNCTION <SNR>181_is_in_skiplist() | |
Defined: ~/.SpaceVim/bundle/vim-startify/autoload/startify.vim line 800 | |
Called 43 times | |
Total time: 0.000869 | |
Self time: 0.000869 | |
count total (s) self (s) | |
172 0.000098 for regexp in s:skiplist | |
129 0.000033 try | |
129 0.000235 if a:arg =~# regexp | |
return 1 | |
129 0.000028 endif | |
catch | |
call s:warn('Pattern '. string(regexp) .' threw an exception. Read :help g:startify_skiplist') | |
129 0.000037 endtry | |
172 0.000050 endfor | |
FUNCTION dein#util#_expand() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/util.vim line 583 | |
Called 136 times | |
Total time: 0.000958 | |
Self time: 0.000958 | |
count total (s) self (s) | |
136 0.000658 let path = (a:path =~# '^\~') ? fnamemodify(a:path, ':p') : (a:path =~# '^\$\h\w*') ? substitute(a:path, '^\$\h\w*', '\=eval(submatch(0))', '') : a:path | |
136 0.000257 return (s:is_windows && path =~# '\\') ? dein#util#_substitute_path(path) : path | |
FUNCTION unite#custom#profile() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/custom.vim line 49 | |
Called 6 times | |
Total time: 0.000362 | |
Self time: 0.000321 | |
count total (s) self (s) | |
6 0.000012 if a:option_name ==# 'smartcase' || a:option_name ==# 'ignorecase' | |
call unite#print_error( printf('You cannot set "%s". ' .'Please set "context.%s" by unite#custom#profile() instead.', a:option_name, a:option_name)) | |
return | |
6 0.000002 endif | |
6 0.000012 let profile_name = (a:profile_name == '' ? 'default' : a:profile_name) | |
6 0.000071 0.000029 let custom = unite#custom#get() | |
14 0.000039 for key in split(profile_name, '\s*,\s*') | |
8 0.000013 if !has_key(custom.profiles, key) | |
7 0.000031 let custom.profiles[key] = { 'substitute_patterns' : {}, 'matchers' : [], 'sorters' : [], 'converters' : [], 'context' : {}, 'unite__save_pos' : {}, 'unite__inputs' : {}, } | |
8 0.000002 endif | |
8 0.000008 if a:option_name ==# 'substitute_patterns' | |
2 0.000003 let substitute_patterns = custom.profiles[key].substitute_patterns | |
2 0.000004 if has_key(substitute_patterns, a:value.pattern) && empty(a:value.subst) | |
call remove(substitute_patterns, a:value.pattern) | |
2 0.000001 else | |
2 0.000006 let substitute_patterns[a:value.pattern] = { 'pattern' : a:value.pattern, 'subst' : a:value.subst, 'priority' : a:value.priority, } | |
2 0.000001 endif | |
6 0.000002 else | |
6 0.000011 let custom.profiles[key][a:option_name] = a:value | |
8 0.000002 endif | |
14 0.000007 endfor | |
FUNCTION SpaceVim#plugins#projectmanager#current_root() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/plugins/projectmanager.vim line 109 | |
Called 3 times | |
Total time: 0.001344 | |
Self time: 0.000131 | |
count total (s) self (s) | |
" @todo skip some plugin buffer | |
3 0.000015 if bufname('%') =~# '\[denite\]' || bufname('%') ==# 'denite-filter' || bufname('%') ==# '\[defx\]' | |
return | |
3 0.000001 endif | |
3 0.000019 if join(g:spacevim_project_rooter_patterns, ':') !=# join(s:spacevim_project_rooter_patterns, ':') | |
call s:LOGGER.info('project_rooter_patterns option has been change, clear b:rootDir') | |
call setbufvar('%', 'rootDir', '') | |
let s:spacevim_project_rooter_patterns = copy(g:spacevim_project_rooter_patterns) | |
call s:update_rooter_patterns() | |
3 0.000001 endif | |
3 0.000007 let rootdir = getbufvar('%', 'rootDir', '') | |
3 0.000003 if empty(rootdir) | |
2 0.000844 0.000010 let rootdir = s:find_root_directory() | |
2 0.000002 if empty(rootdir) | |
1 0.000029 0.000009 let rootdir = s:FILE.unify_path(getcwd()) | |
2 0.000001 endif | |
2 0.000004 call setbufvar('%', 'rootDir', rootdir) | |
3 0.000001 endif | |
3 0.000303 0.000013 call s:change_dir(rootdir) | |
3 0.000087 0.000018 call SpaceVim#plugins#projectmanager#RootchandgeCallback() | |
3 0.000002 return rootdir | |
FUNCTION <SNR>82_import() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/vital/unite.vim line 53 | |
Called 5 times | |
Total time: 0.001972 | |
Self time: 0.000150 | |
count total (s) self (s) | |
5 0.000005 let target = {} | |
5 0.000004 let functions = [] | |
5 0.000006 for a in a:000 | |
if type(a) == type({}) | |
let target = a | |
elseif type(a) == type([]) | |
let functions = a | |
endif | |
unlet a | |
5 0.000003 endfor | |
5 0.001765 0.000612 let module = self._import(a:name) | |
5 0.000005 if empty(functions) | |
5 0.000054 call extend(target, module, 'keep') | |
else | |
for f in functions | |
if has_key(module, f) && !has_key(target, f) | |
let target[f] = module[f] | |
endif | |
endfor | |
5 0.000001 endif | |
5 0.000003 return target | |
FUNCTION <SNR>5_finddir() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/file.vim line 285 | |
Called 6 times | |
Total time: 0.000417 | |
Self time: 0.000417 | |
count total (s) self (s) | |
6 0.000009 let old_suffixesadd = &suffixesadd | |
6 0.000009 let &suffixesadd = '' | |
6 0.000009 let l:count = get(a:000, 0, 0) | |
6 0.000023 if filereadable(a:where) && !isdirectory(a:where) | |
let path = fnamemodify(a:where, ':h') | |
6 0.000002 else | |
6 0.000004 let path = a:where | |
6 0.000002 endif | |
6 0.000003 if l:count > 0 | |
let file = finddir(a:what, escape(path, ' ') . ';', l:count) | |
6 0.000003 elseif a:0 ==# 0 | |
let file = finddir(a:what, escape(path, ' ') . ';') | |
6 0.000003 elseif l:count ==# 0 | |
let file = finddir(a:what, escape(path, ' ') . ';', -1) | |
6 0.000001 else | |
6 0.000300 let file = get(finddir(a:what, escape(path, ' ') . ';', -1), l:count, '') | |
6 0.000002 endif | |
6 0.000010 let &suffixesadd = old_suffixesadd | |
6 0.000004 return file | |
FUNCTION unite#sources#file#define() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/sources/file.vim line 19 | |
Called 1 time | |
Total time: 0.000002 | |
Self time: 0.000002 | |
count total (s) self (s) | |
1 0.000002 return [s:source_file, s:source_file_new, s:source_file_async] | |
FUNCTION unite#helper#get_postfix() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/helper.vim line 262 | |
Called 4 times | |
Total time: 0.000067 | |
Self time: 0.000067 | |
count total (s) self (s) | |
4 0.000019 let prefix = substitute(a:prefix, '@\d\+$', '', '') | |
4 0.000012 let buffers = get(a:000, 0, range(1, bufnr('$'))) | |
4 0.000027 let buflist = sort(filter(map(buffers, 'bufname(v:val)'), 'stridx(v:val, prefix) >= 0'), 's:sort_buffer_name') | |
4 0.000004 if empty(buflist) | |
4 0.000002 return '' | |
endif | |
return a:is_create ? '@'.(matchstr(buflist[-1], '@\zs\d\+$') + 1) : matchstr(buflist[-1], '@\d\+$') | |
FUNCTION SpaceVim#mapping#gd#add() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/mapping/gd.vim line 10 | |
Called 1 time | |
Total time: 0.000005 | |
Self time: 0.000005 | |
count total (s) self (s) | |
1 0.000005 call extend(s:gd,{a:ft : a:func}) | |
FUNCTION vital#_vimfiler#System#Cache#Deprecated#import() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vital/_vimfiler/System/Cache/Deprecated.vim line 5 | |
Called 1 time | |
Total time: 0.000019 | |
Self time: 0.000019 | |
count total (s) self (s) | |
1 0.000018 return map({'filereadable': '', '_vital_depends': '', 'delete': '', 'readfile': '', 'getfilename': '', 'deletefile': '', 'check_old_cache': '', 'writefile': '', '_vital_loaded': ''}, 'function("s:" . v:key)') | |
FUNCTION <SNR>116_setup_options() | |
Defined: ~/.SpaceVim/bundle/tagbar/plugin/tagbar.vim line 51 | |
Called 1 time | |
Total time: 0.000187 | |
Self time: 0.000099 | |
count total (s) self (s) | |
1 0.000002 if !exists('g:tagbar_vertical') || g:tagbar_vertical == 0 | |
1 0.000001 let previewwin_pos = 'topleft' | |
else | |
let previewwin_pos = 'rightbelow vertical' | |
1 0.000000 endif | |
1 0.000009 let options = [ ['autoclose', 0], ['autofocus', 0], ['autopreview', 0], ['autoshowtag', 0], ['case_insensitive', 0], ['compact', 0], ['expand', 0], ['foldlevel', 99], ['hide_nonpublic', 0], ['indent', 2], ['left', 0], ['previewwin_pos', previewwin_pos], ['show_visibility', 1], ['show_linenumbers', 0], ['singleclick', 0], ['sort', 1], ['systemenc', &encoding], ['vertical', 0], ['width', 40], ['zoomwidth', 1], ['silent', 0], ] | |
22 0.000013 for [opt, val] in options | |
21 0.000150 0.000062 call s:init_var(opt, val) | |
22 0.000007 endfor | |
FUNCTION vimfiler#util#get_vimfiler_winnr() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/util.vim line 219 | |
Called 1 time | |
Total time: 0.000015 | |
Self time: 0.000015 | |
count total (s) self (s) | |
1 0.000009 for winnr in filter(range(1, winnr('$')), "getbufvar(winbufnr(v:val), '&filetype') =~# 'vimfiler'") | |
let buffer_context = getbufvar( winbufnr(winnr), 'vimfiler').context | |
if buffer_context.buffer_name ==# a:buffer_name | |
return winnr | |
endif | |
1 0.000000 endfor | |
1 0.000001 return -1 | |
FUNCTION <SNR>154_CreateMaps() | |
Defined: ~/.SpaceVim/bundle/nerdcommenter/plugin/NERD_commenter.vim line 3141 | |
Called 18 times | |
Total time: 0.001754 | |
Self time: 0.001754 | |
count total (s) self (s) | |
" Build up a map command like | |
" 'noremap <silent> <plug>NERDCommenterComment :call NERDComment("n", "Comment")' | |
18 0.000032 let plug = '<plug>NERDCommenter' . a:target | |
18 0.000026 let plug_start = 'noremap <silent> ' . plug . ' :call NERDComment("' | |
18 0.000022 let plug_end = '", "' . a:target . '")<cr>' | |
" Build up a menu command like | |
" 'menu <silent> comment.Comment<Tab>\\cc <plug>NERDCommenterComment' | |
18 0.000054 let menuRoot = get(['', 'comment', '&comment', '&Plugin.&comment'], g:NERDMenuMode, '') | |
18 0.000042 let menu_command = 'menu <silent> ' . menuRoot . '.' . escape(a:desc, ' ') | |
18 0.000017 if strlen(a:combo) | |
13 0.000022 let leader = exists('g:mapleader') ? g:mapleader : '\' | |
13 0.000028 let menu_command .= '<Tab>' . escape(leader, '\') . a:combo | |
18 0.000006 endif | |
18 0.000033 let menu_command .= ' ' . (strlen(a:combo) ? plug : a:target) | |
" Execute the commands built above for each requested mode. | |
46 0.000102 for mode in (a:modes ==# '') ? [''] : split(a:modes, '\zs') | |
28 0.000036 if strlen(a:combo) | |
23 0.000475 execute mode . plug_start . mode . plug_end | |
23 0.000035 if g:NERDCreateDefaultMappings && !hasmapto(plug, mode) | |
execute mode . 'map <leader>' . a:combo . ' ' . plug | |
23 0.000007 endif | |
28 0.000006 endif | |
" Check if the user wants the menu to be displayed. | |
28 0.000021 if g:NERDMenuMode !=# 0 | |
28 0.000536 execute mode . menu_command | |
28 0.000030 endif | |
46 0.000027 endfor | |
FUNCTION <SNR>36_cursorpos() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/core/statusline.vim line 171 | |
Called 1 time | |
Total time: 0.000003 | |
Self time: 0.000003 | |
count total (s) self (s) | |
1 0.000002 return "%{' ' . join(map(getpos('.')[1:2], \"printf('%3d', v:val)\"), ':') . ' '}" | |
FUNCTION <SNR>89_debug_log() | |
Defined: ~/.SpaceVim/bundle/neomake/autoload/neomake/configure.vim line 35 | |
Called 2 times | |
Total time: 0.000824 | |
Self time: 0.000056 | |
count total (s) self (s) | |
2 0.000006 let context = {'bufnr': bufnr('%')} | |
2 0.000001 if a:0 | |
call extend(context, a:1) | |
2 0.000001 endif | |
2 0.000813 0.000046 call neomake#log#debug(printf('automake: %s.', a:msg), context) | |
FUNCTION <SNR>97_HL() | |
Defined: ~/.SpaceVim/bundle/gruvbox/colors/gruvbox.vim line 374 | |
Called 102 times | |
Total time: 0.002587 | |
Self time: 0.002587 | |
count total (s) self (s) | |
" Arguments: group, guifg, guibg, gui, guisp | |
" foreground | |
102 0.000087 let fg = a:fg | |
" background | |
102 0.000055 if a:0 >= 1 | |
84 0.000049 let bg = a:1 | |
18 0.000005 else | |
18 0.000011 let bg = s:none | |
102 0.000023 endif | |
" emphasis | |
102 0.000099 if a:0 >= 2 && strlen(a:2) | |
51 0.000034 let emstr = a:2 | |
51 0.000013 else | |
51 0.000032 let emstr = 'NONE,' | |
102 0.000024 endif | |
" special fallback | |
102 0.000044 if a:0 >= 3 | |
13 0.000010 if g:gruvbox_guisp_fallback != 'NONE' | |
let fg = a:3 | |
13 0.000003 endif | |
" bg fallback mode should invert higlighting | |
13 0.000009 if g:gruvbox_guisp_fallback == 'bg' | |
let emstr .= 'inverse,' | |
13 0.000003 endif | |
102 0.000022 endif | |
102 0.000394 let histring = [ 'hi', a:group, 'guifg=' . fg[0], 'ctermfg=' . fg[1], 'guibg=' . bg[0], 'ctermbg=' . bg[1], 'gui=' . emstr[:-2], 'cterm=' . emstr[:-2] ] | |
" special | |
102 0.000045 if a:0 >= 3 | |
13 0.000018 call add(histring, 'guisp=' . a:3[0]) | |
102 0.000024 endif | |
102 0.000814 execute join(histring, ' ') | |
FUNCTION <SNR>82__get_module() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/vital/unite.vim line 184 | |
Called 4 times | |
Total time: 0.001397 | |
Self time: 0.000093 | |
count total (s) self (s) | |
4 0.000087 0.000038 let funcname = s:_import_func_name(self.plugin_name(), a:name) | |
4 0.001066 0.000025 if s:_exists_autoload_func_with_source(funcname) | |
4 0.000242 0.000029 return call(funcname, []) | |
else | |
return s:_get_builtin_module(a:name) | |
endif | |
FUNCTION SpaceVim#autocmds#init() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/autocmds.vim line 17 | |
Called 1 time | |
Total time: 0.020607 | |
Self time: 0.020607 | |
count total (s) self (s) | |
1 0.000001 augroup SpaceVim_core | |
1 0.000002 au! | |
1 0.000005 autocmd BufWinEnter quickfix nnoremap <silent> <buffer> q :call <SID>close_quickfix()<cr> | |
1 0.000003 autocmd BufEnter * if (winnr('$') == 1 && &buftype ==# 'quickfix' ) | bd| q | endif | |
1 0.000003 autocmd QuitPre * call SpaceVim#plugins#windowsmanager#UpdateRestoreWinInfo() | |
1 0.000003 autocmd WinEnter * call SpaceVim#plugins#windowsmanager#MarkBaseWin() | |
1 0.000001 if g:spacevim_relativenumber | |
1 0.000002 autocmd BufEnter,WinEnter * if &nu | set rnu | endif | |
1 0.000002 autocmd BufLeave,WinLeave * if &nu | set nornu | endif | |
1 0.000000 endif | |
1 0.000003 autocmd BufRead,BufNewFile *.pp setfiletype puppet | |
1 0.000001 if g:spacevim_enable_cursorline == 1 | |
1 0.000003 autocmd BufEnter,WinEnter,InsertLeave * call s:enable_cursorline() | |
1 0.000002 autocmd BufLeave,WinLeave,InsertEnter * call s:disable_cursorline() | |
1 0.000000 endif | |
1 0.000001 if g:spacevim_enable_cursorcolumn == 1 | |
autocmd BufEnter,WinEnter,InsertLeave * setl cursorcolumn | |
autocmd BufLeave,WinLeave,InsertEnter * setl nocursorcolumn | |
1 0.000000 endif | |
1 0.000002 autocmd BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g`\"" | endif | |
1 0.000003 autocmd BufNewFile,BufEnter * set cpoptions+=d " NOTE: ctags find the tags file from the current path instead of the path of currect file | |
1 0.000003 autocmd BufWinLeave * let b:_winview = winsaveview() | |
1 0.000002 autocmd BufWinEnter * if(exists('b:_winview')) | call winrestview(b:_winview) | endif | |
1 0.000002 autocmd BufEnter * :syntax sync fromstart " ensure every file does syntax highlighting (full) | |
1 0.000003 autocmd BufNewFile,BufRead *.avs set syntax=avs " for avs syntax file. | |
1 0.000005 autocmd FileType c,cpp,java,javascript set comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:// | |
1 0.000002 autocmd FileType cs set comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:///,:// | |
1 0.000002 autocmd FileType vim set comments=sO:\"\ -,mO:\"\ \ ,eO:\"\",:\" | |
1 0.000002 autocmd Filetype qf setlocal nobuflisted | |
1 0.000004 autocmd FileType python,coffee call SpaceVim#util#check_if_expand_tab() | |
1 0.000002 au StdinReadPost * call s:disable_welcome() | |
1 0.000002 autocmd InsertEnter * call s:fixindentline() | |
1 0.000002 autocmd BufEnter,FileType * call SpaceVim#mapping#space#refrashLSPC() | |
1 0.020487 if executable('synclient') && g:spacevim_auto_disable_touchpad | |
let s:touchpadoff = 0 | |
autocmd InsertEnter * call s:disable_touchpad() | |
autocmd InsertLeave * call s:enable_touchpad() | |
autocmd FocusLost * call system('synclient touchpadoff=0') | |
autocmd FocusGained * call s:reload_touchpad_status() | |
1 0.000001 endif | |
1 0.000009 autocmd BufWritePre * call SpaceVim#plugins#mkdir#CreateCurrent() | |
1 0.000007 autocmd BufWritePost *.vim call s:generate_doc() | |
1 0.000003 autocmd ColorScheme * call SpaceVim#api#import('vim#highlight').hide_in_normal('EndOfBuffer') | |
1 0.000008 autocmd ColorScheme gruvbox,jellybeans,nord,srcery,NeoSolarized call s:fix_colorschem_in_SpaceVim() | |
1 0.000002 autocmd VimEnter * call SpaceVim#autocmds#VimEnter() | |
1 0.000002 autocmd BufEnter * let b:_spacevim_project_name = get(g:, '_spacevim_project_name', '') | |
1 0.000003 autocmd SessionLoadPost * let g:_spacevim_session_loaded = 1 | |
1 0.000004 autocmd VimLeavePre * call SpaceVim#plugins#manager#terminal() | |
1 0.000001 augroup END | |
FUNCTION <SNR>181_set_custom_section() | |
Defined: ~/.SpaceVim/bundle/vim-startify/autoload/startify.vim line 545 | |
Called 1 time | |
Total time: 0.000004 | |
Self time: 0.000004 | |
count total (s) self (s) | |
1 0.000002 if type(a:section) == type([]) | |
1 0.000002 return copy(a:section) | |
elseif type(a:section) == type('') | |
return empty(a:section) ? [] : eval(a:section) | |
endif | |
return [] | |
FUNCTION dein#util#_convert2list() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/util.vim line 599 | |
Called 38 times | |
Total time: 0.000158 | |
Self time: 0.000158 | |
count total (s) self (s) | |
38 0.000144 return type(a:expr) ==# 3 ? copy(a:expr) : type(a:expr) ==# 1 ? (a:expr ==# '' ? [] : split(a:expr, '\r\?\n', 1)) : [a:expr] | |
FUNCTION <SNR>190_new() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vital/vimfiler.vim line 37 | |
Called 5 times | |
Total time: 0.000029 | |
Self time: 0.000029 | |
count total (s) self (s) | |
5 0.000018 let base = deepcopy(s:Vital) | |
5 0.000007 let base._plugin_name = a:plugin_name | |
5 0.000003 return base | |
FUNCTION vimfiler#util#is_win_path() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/util.vim line 64 | |
Called 3 times | |
Total time: 0.000017 | |
Self time: 0.000017 | |
count total (s) self (s) | |
3 0.000017 return a:path =~ '^\a\?:' || a:path =~ '^\\\\[^\\]\+\\' | |
FUNCTION SpaceVim#welcome() | |
Defined: ~/.SpaceVim/autoload/SpaceVim.vim line 1391 | |
Called 1 time | |
Total time: 0.076370 | |
Self time: 0.000351 | |
count total (s) self (s) | |
1 0.000030 0.000005 call SpaceVim#logger#info('try to open SpaceVim welcome page') | |
1 0.000002 if get(g:, '_spacevim_session_loaded', 0) == 1 | |
call SpaceVim#logger#info('start SpaceVim with session file, skip welcome page') | |
return | |
1 0.000000 endif | |
1 0.000024 exe 'cd' fnameescape(g:_spacevim_enter_dir) | |
1 0.000003 if exists('g:_spacevim_checking_flag') && g:_spacevim_checking_flag | |
return | |
1 0.000000 endif | |
1 0.000011 if exists(':Startify') == 2 | |
1 0.009658 0.000200 Startify | |
1 0.000003 if isdirectory(bufname(1)) | |
bwipeout! 1 | |
1 0.000000 endif | |
1 0.000000 endif | |
1 0.000002 if g:spacevim_enable_vimfiler_welcome && get(g:, '_spacevim_checking_flag', 0) == 0 | |
1 0.000003 if exists(':VimFiler') == 2 | |
1 0.066591 0.000056 VimFiler | |
1 0.000024 wincmd p | |
elseif exists(':Defx') == 2 | |
Defx | |
wincmd p | |
elseif exists(':NERDTree') == 2 | |
NERDTree | |
wincmd p | |
1 0.000000 endif | |
1 0.000000 endif | |
FUNCTION <SNR>201_get_candidates() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/start.vim line 488 | |
Called 2 times | |
Total time: 0.015995 | |
Self time: 0.000147 | |
count total (s) self (s) | |
2 0.000001 try | |
2 0.001936 0.000011 let current_unite = unite#init#_current_unite(a:sources, a:context) | |
catch /^unite.vim: Invalid / | |
return [] | |
2 0.000001 endtry | |
" Caching. | |
2 0.000002 let current_unite.last_input = a:context.input | |
2 0.000002 let current_unite.input = a:context.input | |
2 0.000002 let current_unite.last_path = a:context.path | |
2 0.000020 0.000009 call unite#set_current_unite(current_unite) | |
2 0.000059 0.000006 call unite#set_context(a:context) | |
2 0.000010 0.000008 call unite#variables#enable_current_unite() | |
2 0.013931 0.000076 call unite#candidates#_recache(a:context.input, a:context.is_redraw) | |
2 0.000003 let candidates = [] | |
4 0.000004 for source in current_unite.sources | |
2 0.000002 if !empty(source.unite__candidates) | |
2 0.000006 let candidates += source.unite__candidates | |
2 0.000001 endif | |
4 0.000002 endfor | |
2 0.000001 return candidates | |
FUNCTION SpaceVim#layers#edit#config() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/edit.vim line 44 | |
Called 1 time | |
Total time: 0.004490 | |
Self time: 0.000550 | |
count total (s) self (s) | |
1 0.000006 let g:multi_cursor_next_key=get(g:, 'multi_cursor_next_key', '<C-n>') | |
1 0.000004 let g:multi_cursor_prev_key=get(g:, 'multi_cursor_prev_key', '<C-m>') | |
1 0.000004 let g:multi_cursor_skip_key=get(g:, 'multi_cursor_skip_key', '<C-x>') | |
1 0.000003 let g:multi_cursor_quit_key=get(g:, 'multi_cursor_quit_key', '<Esc>') | |
1 0.000003 let g:user_emmet_install_global = 0 | |
1 0.000002 let g:user_emmet_mode='a' | |
1 0.000004 let g:user_emmet_settings = { 'javascript': { 'extends': 'jsx', }, 'jsp' : { 'extends': 'html', }, } | |
"noremap <SPACE> <Plug>(wildfire-fuel) | |
1 0.000009 vnoremap <C-SPACE> <Plug>(wildfire-water) | |
1 0.000004 let g:wildfire_objects = ["i'", 'i"', 'i)', 'i]', 'i}', 'ip', 'it'] | |
" osyo-manga/vim-jplus {{{ | |
1 0.000006 nmap <silent> J <Plug>(jplus) | |
1 0.000005 vmap <silent> J <Plug>(jplus) | |
" }}} | |
1 0.000004 let g:_spacevim_mappings_space.x = {'name' : '+Text'} | |
1 0.000002 let g:_spacevim_mappings_space.x.a = {'name' : '+align'} | |
1 0.000001 let g:_spacevim_mappings_space.x.d = {'name' : '+delete'} | |
1 0.000001 let g:_spacevim_mappings_space.x.i = {'name' : '+change symbol style'} | |
1 0.000008 nnoremap <silent> <Plug>CountSelectionRegion :call <SID>count_selection_region()<Cr> | |
1 0.000007 xnoremap <silent> <Plug>CountSelectionRegion :<C-u>call <SID>count_selection_region()<Cr> | |
1 0.000113 0.000008 call SpaceVim#mapping#space#def('nmap', ['x', 'c'], '<Plug>CountSelectionRegion', 'count in the selection region', 0, 1) | |
1 0.000085 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['x', 'a', '#'], 'Tabularize /#', 'align-region-at-#', 1, 1) | |
1 0.000082 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['x', 'a', '%'], 'Tabularize /%', 'align-region-at-%', 1, 1) | |
1 0.000148 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['x', 'a', '&'], 'Tabularize /&', 'align-region-at-&', 1, 1) | |
1 0.000086 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['x', 'a', '('], 'Tabularize /(', 'align-region-at-(', 1, 1) | |
1 0.000080 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['x', 'a', ')'], 'Tabularize /)', 'align-region-at-)', 1, 1) | |
1 0.000079 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['x', 'a', '['], 'Tabularize /[', 'align-region-at-[', 1, 1) | |
1 0.000082 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['x', 'a', ']'], 'Tabularize /]', 'align-region-at-]', 1, 1) | |
1 0.000080 0.000007 call SpaceVim#mapping#space#def('nnoremap', ['x', 'a', '{'], 'Tabularize /{', 'align-region-at-{', 1, 1) | |
1 0.000078 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['x', 'a', '}'], 'Tabularize /}', 'align-region-at-}', 1, 1) | |
1 0.000079 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['x', 'a', ','], 'Tabularize /,', 'align-region-at-,', 1, 1) | |
1 0.000077 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['x', 'a', '.'], 'Tabularize /\.', 'align-region-at-dot', 1, 1) | |
1 0.000079 0.000007 call SpaceVim#mapping#space#def('nnoremap', ['x', 'a', ':'], 'Tabularize /:', 'align-region-at-:', 1, 1) | |
1 0.000077 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['x', 'a', ';'], 'Tabularize /;', 'align-region-at-;', 1, 1) | |
1 0.000096 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['x', 'a', '='], 'Tabularize /===\|<=>\|\(&&\|||\|<<\|>>\|\/\/\)=\|=\~[#?]\?\|=>\|[:+/*!%^=><&|.?-]\?=[#?]\?/l1r1', 'align-region-at-=', 1, 1) | |
1 0.000090 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['x', 'a', 'o'], 'Tabularize /&&\|||\|\.\.\|\*\*\|<<\|>>\|\/\/\|[-+*/.%^><&|?]/l1r1', 'align-region-at-operator, such as +,-,*,/,%,^,etc', 1, 1) | |
1 0.000084 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['x', 'a', '¦'], 'Tabularize /¦', 'align-region-at-¦', 1, 1) | |
1 0.000081 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['x', 'a', '<Bar>'], 'Tabularize /|', 'align-region-at-|', 1, 1) | |
1 0.000082 0.000006 call SpaceVim#mapping#space#def('nmap', ['x', 'a', '[SPC]'], 'Tabularize /\s\ze\S/l0', 'align-region-at-space', 1, 1) | |
" @fixme SPC x a SPC make vim flick | |
1 0.000007 nmap <Space>xa<Space> [SPC]xa[SPC] | |
1 0.000090 0.000014 call SpaceVim#mapping#space#def('nnoremap', ['x', 'a', 'r'], 'call call(' . string(s:_function('s:align_at_regular_expression')) . ', [])', 'align-region-at-user-specified-regexp', 1) | |
1 0.000074 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['x', 'd', 'w'], 'StripWhitespace', 'delete trailing whitespaces', 1) | |
1 0.000082 0.000010 call SpaceVim#mapping#space#def('nnoremap', ['x', 'd', '<Space>'], 'silent call call(' . string(s:_function('s:delete_extra_space')) . ', [])', 'delete extra space arround cursor', 1) | |
1 0.000081 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['x', 'i', 'c'], 'silent call call(' . string(s:_function('s:lowerCamelCase')) . ', [])', 'change symbol style to lowerCamelCase', 1) | |
1 0.000079 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['x', 'i', 'C'], 'silent call call(' . string(s:_function('s:UpperCamelCase')) . ', [])', 'change symbol style to UpperCamelCase', 1) | |
1 0.000081 0.000010 call SpaceVim#mapping#space#def('nnoremap', ['x', 'i', '_'], 'silent call call(' . string(s:_function('s:under_score')) . ', [])', 'change symbol style to under_score', 1) | |
1 0.000079 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['x', 'i', 'u'], 'silent call call(' . string(s:_function('s:under_score')) . ', [])', 'change symbol style to under_score', 1) | |
1 0.000077 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['x', 'i', 'U'], 'silent call call(' . string(s:_function('s:up_case')) . ', [])', 'change symbol style to UP_CASE', 1) | |
1 0.000079 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['x', 'i', 'k'], 'silent call call(' . string(s:_function('s:kebab_case')) . ', [])', 'change symbol style to kebab-case', 1) | |
1 0.000078 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['x', 'i', '-'], 'silent call call(' . string(s:_function('s:kebab_case')) . ', [])', 'change symbol style to kebab-case', 1) | |
" justification | |
1 0.000002 let g:_spacevim_mappings_space.x.j = {'name' : '+Justification'} | |
1 0.000080 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['x', 'j', 'l'], 'silent call call(' . string(s:_function('s:set_justification_to')) . ', ["left"])', 'set-the-justification-to-left', 1) | |
1 0.000078 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['x', 'j', 'c'], 'silent call call(' . string(s:_function('s:set_justification_to')) . ', ["center"])', 'set-the-justification-to-center', 1) | |
1 0.000080 0.000010 call SpaceVim#mapping#space#def('nnoremap', ['x', 'j', 'r'], 'silent call call(' . string(s:_function('s:set_justification_to')) . ', ["right"])', 'set-the-justification-to-right', 1) | |
1 0.000073 0.000005 call SpaceVim#mapping#space#def('vnoremap', ['x', 'u'], 'gu', 'set the selected text to lower case', 0) | |
1 0.000070 0.000005 call SpaceVim#mapping#space#def('vnoremap', ['x', 'U'], 'gU', 'set the selected text to up case', 0) | |
" word | |
1 0.000002 let g:_spacevim_mappings_space.x.w = {'name' : '+Word'} | |
1 0.000072 0.000006 call SpaceVim#mapping#space#def('vnoremap', ['x', 'w', 'c'], 'normal! ' . ":'<,'>s/\\\w\\+//gn" . "\<cr>", 'count the words in the select region', 1) | |
1 0.000002 let g:_spacevim_mappings_space.x.s = {'name' : '+String'} | |
1 0.000082 0.000010 call SpaceVim#mapping#space#def('nnoremap', ['x', 's', 'j'], 'call call(' . string(s:_function('s:join_string_with')) . ', [])', 'join-string-with', 1) | |
1 0.000002 let g:_spacevim_mappings_space.i = {'name' : '+Insertion'} | |
1 0.000001 let g:_spacevim_mappings_space.i.l = {'name' : '+Lorem-ipsum'} | |
1 0.000001 let g:_spacevim_mappings_space.i.p = {'name' : '+Passwords'} | |
1 0.000001 let g:_spacevim_mappings_space.i.U = {'name' : '+UUID'} | |
1 0.000084 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['i', 'p', 1], 'call call(' . string(s:_function('s:insert_simple_password')) . ', [])', 'insert-simple-password', 1) | |
1 0.000082 0.000010 call SpaceVim#mapping#space#def('nnoremap', ['i', 'p', 2], 'call call(' . string(s:_function('s:insert_stronger_password')) . ', [])', 'insert-stronger-password', 1) | |
1 0.000082 0.000010 call SpaceVim#mapping#space#def('nnoremap', ['i', 'p', 3], 'call call(' . string(s:_function('s:insert_paranoid_password')) . ', [])', 'insert-password-for-paranoids', 1) | |
1 0.000080 0.000010 call SpaceVim#mapping#space#def('nnoremap', ['i', 'p', 'p'], 'call call(' . string(s:_function('s:insert_phonetically_password')) . ', [])', 'insert-a-phonetically-easy-password', 1) | |
1 0.000080 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['i', 'p', 'n'], 'call call(' . string(s:_function('s:insert_numerical_password')) . ', [])', 'insert-a-numerical-password', 1) | |
1 0.000079 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['i', 'U', 'U'], 'call call(' . string(s:_function('s:uuidgen_U')) . ', [])', 'uuidgen-4', 1) | |
1 0.000081 0.000010 call SpaceVim#mapping#space#def('nnoremap', ['i', 'l', 'l'], 'call call(' . string(s:_function('s:insert_lorem_ipsum_list')) . ', [])', 'insert-lorem-ipsum-list', 1) | |
1 0.000079 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['i', 'l', 'p'], 'call call(' . string(s:_function('s:insert_lorem_ipsum_paragraph')) . ', [])', 'insert-lorem-ipsum-paragraph', 1) | |
1 0.000078 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['i', 'l', 's'], 'call call(' . string(s:_function('s:insert_lorem_ipsum_sentence')) . ', [])', 'insert-lorem-ipsum-sentence', 1) | |
" move line | |
1 0.000079 0.000010 call SpaceVim#mapping#space#def('nnoremap', ['x', 'J'], 'call call(' . string(s:_function('s:move_text_down_transient_state')) . ', [])', 'move-text-down(enter-transient-state)', 1) | |
1 0.000078 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['x', 'K'], 'call call(' . string(s:_function('s:move_text_up_transient_state')) . ', [])', 'move-text-up(enter-transient-state)', 1) | |
" transpose | |
1 0.000002 let g:_spacevim_mappings_space.x.t = {'name' : '+transpose'} | |
1 0.000080 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['x', 't', 'c'], 'call call(' . string(s:_function('s:transpose_with_previous')) . ', ["character"])', 'swap-current-character-with-previous-one', 1) | |
1 0.000102 0.000023 call SpaceVim#mapping#space#def('nnoremap', ['x', 't', 'w'], 'call call(' . string(s:_function('s:transpose_with_previous')) . ', ["word"])', 'swap-current-word-with-previous-one', 1) | |
1 0.000082 0.000011 call SpaceVim#mapping#space#def('nnoremap', ['x', 't', 'l'], 'call call(' . string(s:_function('s:transpose_with_previous')) . ', ["line"])', 'swap-current-line-with-previous-one', 1) | |
1 0.000080 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['x', 't', 'C'], 'call call(' . string(s:_function('s:transpose_with_next')) . ', ["character"])', 'swap-current-character-with-next-one', 1) | |
1 0.000080 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['x', 't', 'W'], 'call call(' . string(s:_function('s:transpose_with_next')) . ', ["word"])', 'swap-current-word-with-next-one', 1) | |
1 0.000080 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['x', 't', 'L'], 'call call(' . string(s:_function('s:transpose_with_next')) . ', ["line"])', 'swap-current-line-with-next-one', 1) | |
FUNCTION vimfiler#util#escape_pattern() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/util.vim line 74 | |
Called 36 times | |
Total time: 0.000461 | |
Self time: 0.000221 | |
count total (s) self (s) | |
36 0.000455 0.000215 return call(s:get_string().escape_pattern, a:000) | |
FUNCTION <SNR>94_resolve_name() | |
Defined: ~/.SpaceVim/bundle/neomake/autoload/neomake/config.vim line 16 | |
Called 2 times | |
Total time: 0.000054 | |
Self time: 0.000054 | |
count total (s) self (s) | |
2 0.000009 let parts = type(a:name) == type([]) ? a:name : split(a:name, '\.') | |
2 0.000002 if a:validate && parts[0] ==# 'neomake' | |
throw printf( 'Neomake: config: "neomake" is not necessary with new-style config settings (%s).', string(a:name)) | |
2 0.000001 endif | |
2 0.000002 let c = a:dict | |
4 0.000005 for p in parts[0:-2] | |
2 0.000003 if !has_key(c, p) | |
if !a:init | |
return [g:neomake#config#undefined, ''] | |
endif | |
let c[p] = {} | |
2 0.000001 endif | |
2 0.000003 if type(c[p]) != type({}) | |
return [g:neomake#config#undefined, ''] | |
2 0.000001 endif | |
2 0.000002 let c = c[p] | |
4 0.000002 endfor | |
2 0.000003 return [c, parts[-1]] | |
FUNCTION <SNR>36_filesize() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/core/statusline.vim line 342 | |
Called 1 time | |
Total time: 0.000006 | |
Self time: 0.000006 | |
count total (s) self (s) | |
1 0.000004 let l:size = getfsize(bufname('%')) | |
1 0.000001 if l:size == 0 || l:size == -1 || l:size == -2 | |
1 0.000000 return '' | |
endif | |
if l:size < 1024 | |
return l:size.' bytes ' | |
elseif l:size < 1024*1024 | |
return printf('%.1f', l:size/1024.0).'k ' | |
elseif l:size < 1024*1024*1024 | |
return printf('%.1f', l:size/1024.0/1024.0) . 'm ' | |
else | |
return printf('%.1f', l:size/1024.0/1024.0/1024.0) . 'g ' | |
endif | |
FUNCTION dein#parse#_init() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/parse.vim line 40 | |
Called 61 times | |
Total time: 0.011494 | |
Self time: 0.001339 | |
count total (s) self (s) | |
61 0.000670 0.000213 let repo = dein#util#_expand(a:repo) | |
61 0.004228 0.000336 let plugin = has_key(a:options, 'type') ? dein#util#_get_type(a:options.type).init(repo, a:options) : s:git.init(repo, a:options) | |
61 0.000057 if empty(plugin) | |
58 0.006044 0.000238 let plugin = s:check_type(repo, a:options) | |
61 0.000016 endif | |
61 0.000173 call extend(plugin, a:options) | |
61 0.000056 let plugin.repo = repo | |
61 0.000050 if !empty(a:options) | |
50 0.000089 let plugin.orig_opts = deepcopy(a:options) | |
61 0.000015 endif | |
61 0.000031 return plugin | |
FUNCTION dein#util#_execute_hook() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/util.vim line 516 | |
Called 10 times | |
Total time: 0.156099 | |
Self time: 0.000125 | |
count total (s) self (s) | |
10 0.000007 try | |
10 0.000012 let g:dein#plugin = a:plugin | |
10 0.000012 if type(a:hook) == 1 | |
10 0.156008 0.000034 call s:execute(a:hook) | |
else | |
call call(a:hook, []) | |
10 0.000003 endif | |
catch | |
call dein#util#_error( 'Error occurred while executing hook: ' . get(a:plugin, 'name', '')) | |
call dein#util#_error(v:exception) | |
10 0.000005 endtry | |
FUNCTION matchup#pos#equal() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup/pos.vim line 94 | |
Called 2 times | |
Total time: 0.000084 | |
Self time: 0.000021 | |
count total (s) self (s) | |
2 0.000045 0.000009 let l:pos1 = s:parse_args(a:p1) | |
2 0.000035 0.000008 let l:pos2 = s:parse_args(a:p2) | |
2 0.000004 return l:pos1[:1] == l:pos2[:1] | |
FUNCTION vimproc#util#is_mac() | |
Defined: ~/.SpaceVim/bundle/vimproc.vim/autoload/vimproc/util.vim line 80 | |
Called 1 time | |
Total time: 0.000001 | |
Self time: 0.000001 | |
count total (s) self (s) | |
1 0.000001 return s:is_mac | |
FUNCTION vimproc#util#is_cygwin() | |
Defined: ~/.SpaceVim/bundle/vimproc.vim/autoload/vimproc/util.vim line 83 | |
Called 1 time | |
Total time: 0.000001 | |
Self time: 0.000001 | |
count total (s) self (s) | |
1 0.000001 return s:is_cygwin | |
FUNCTION <SNR>82__runtime() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/vital/unite.vim line 251 | |
Called 4 times | |
Total time: 0.000964 | |
Self time: 0.000284 | |
count total (s) self (s) | |
4 0.000963 0.000283 execute 'runtime' fnameescape(a:path) | |
FUNCTION <SNR>140_get() | |
Defined: ~/.SpaceVim/bundle/delimitMate/plugin/delimitMate.vim line 149 | |
Called 178 times | |
Total time: 0.002592 | |
Self time: 0.000625 | |
count total (s) self (s) | |
178 0.002567 0.000600 return call('delimitMate#Get', a:000) | |
FUNCTION <SNR>95_cache_project() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/plugins/projectmanager.vim line 39 | |
Called 5 times | |
Total time: 0.000041 | |
Self time: 0.000041 | |
count total (s) self (s) | |
5 0.000009 if !has_key(s:project_paths, a:prj.path) | |
1 0.000002 let s:project_paths[a:prj.path] = a:prj | |
1 0.000002 let desc = '[' . a:prj.name . '] ' . a:prj.path | |
1 0.000002 let cmd = "call SpaceVim#plugins#projectmanager#open('" . a:prj.path . "')" | |
1 0.000003 call add(g:unite_source_menu_menus.Projects.command_candidates, [desc,cmd]) | |
5 0.000002 endif | |
FUNCTION vimfiler#view#_redraw_all_vimfiler() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/view.vim line 154 | |
Called 1 time | |
Total time: 0.001172 | |
Self time: 0.000023 | |
count total (s) self (s) | |
1 0.000001 let current_nr = winnr() | |
1 0.000000 try | |
" Search vimfiler window. | |
2 0.000006 for winnr in filter(range(1, winnr('$')), "getwinvar(v:val, '&filetype') ==# 'vimfiler'") | |
1 0.000008 0.000003 call vimfiler#util#winmove(winnr) | |
1 0.001144 0.000004 call vimfiler#view#_redraw_screen() | |
2 0.000001 endfor | |
1 0.000000 finally | |
1 0.000008 0.000004 call vimfiler#util#winmove(current_nr) | |
1 0.000000 endtry | |
FUNCTION neomake#log#debug() | |
Defined: ~/.SpaceVim/bundle/neomake/autoload/neomake/log.vim line 147 | |
Called 3 times | |
Total time: 0.000075 | |
Self time: 0.000020 | |
count total (s) self (s) | |
3 0.000074 0.000019 call call('s:log', [3] + a:000) | |
FUNCTION vimfiler#init#_filters() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/init.vim line 322 | |
Called 1 time | |
Total time: 0.001204 | |
Self time: 0.000783 | |
count total (s) self (s) | |
1 0.000001 let filters = [] | |
2 0.000002 for column in a:filters | |
1 0.000001 if !has_key(s:loaded_filters, column) | |
1 0.000010 let name = substitute(column, '^[^/_]\+\zs[/_].*$', '', '') | |
4 0.001121 0.000708 for define in map(split(globpath(&runtimepath, 'autoload/vimfiler/filters/'.name.'*.vim'), '\n'), "vimfiler#filters#{fnamemodify(v:val, ':t:r')}#define()") | |
6 0.000023 0.000015 for dict in vimfiler#util#convert2list(define) | |
3 0.000006 if !empty(dict) && !has_key(s:loaded_filters, dict.name) | |
3 0.000005 let s:loaded_filters[dict.name] = dict | |
3 0.000001 endif | |
6 0.000002 endfor | |
3 0.000002 unlet define | |
4 0.000001 endfor | |
1 0.000000 endif | |
1 0.000001 if has_key(s:loaded_filters, column) | |
1 0.000002 call add(filters, s:loaded_filters[column]) | |
1 0.000000 endif | |
2 0.000001 endfor | |
1 0.000001 return filters | |
FUNCTION expand_region#init() | |
Defined: ~/.SpaceVim/bundle/vim-expand-region/autoload/expand_region.vim line 15 | |
Called 2 times | |
Total time: 0.000018 | |
Self time: 0.000018 | |
count total (s) self (s) | |
2 0.000005 if exists('g:expand_region_init') && g:expand_region_init | |
1 0.000001 return | |
1 0.000000 endif | |
1 0.000001 let g:expand_region_init = 1 | |
" Dictionary of text objects that are supported by default. Note that some of | |
" the text objects are not available in vanilla vim. '1' indicates that the | |
" text object is recursive (think of nested parens or brackets) | |
1 0.000006 let g:expand_region_text_objects = get(g:, 'expand_region_text_objects', { 'iw' :0, 'iW' :0, 'i"' :0, 'i''' :0, 'i]' :1, 'ib' :1, 'iB' :1, 'il' :0, 'ip' :0, 'ie' :0,}) | |
" Option to default to the select mode when selecting a new region | |
1 0.000002 let g:expand_region_use_select_mode = get(g:, 'expand_region_use_select_mode', 0) | |
FUNCTION SpaceVim#api#import() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api.vim line 38 | |
Called 103 times | |
Total time: 0.004993 | |
Self time: 0.001384 | |
count total (s) self (s) | |
103 0.000168 if has_key(s:apis, a:name) | |
77 0.000394 return deepcopy(s:apis[a:name]) | |
26 0.000009 endif | |
26 0.000022 let p = {} | |
26 0.000011 try | |
26 0.001883 0.000693 let p = SpaceVim#api#{a:name}#get() | |
26 0.000116 let s:apis[a:name] = deepcopy(p) | |
catch /^Vim\%((\a\+)\)\=:E117/ | |
26 0.000013 endtry | |
26 0.000015 return p | |
FUNCTION <SNR>83_is_windows() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/vital/_unite/Prelude.vim line 243 | |
Called 2 times | |
Total time: 0.000002 | |
Self time: 0.000002 | |
count total (s) self (s) | |
2 0.000002 return s:is_windows | |
FUNCTION matchup#loader#remove_capture_groups() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup/loader.vim line 652 | |
Called 24 times | |
Total time: 0.000137 | |
Self time: 0.000137 | |
count total (s) self (s) | |
24 0.000026 let l:sub_grp = '\(\\\@<!\(\\\\\)*\)\@<=\\(' | |
24 0.000103 return substitute(a:re, l:sub_grp, '\\%(', 'g') | |
FUNCTION <SNR>183_vimfilerinit() | |
Defined: ~/.SpaceVim/config/plugins/vimfiler.vim line 82 | |
Called 1 time | |
Total time: 0.000254 | |
Self time: 0.000254 | |
count total (s) self (s) | |
1 0.000002 setl nonumber | |
1 0.000001 setl norelativenumber | |
1 0.000005 silent! nunmap <buffer> <Space> | |
1 0.000003 silent! nunmap <buffer> <C-l> | |
1 0.000002 silent! nunmap <buffer> <C-j> | |
1 0.000002 silent! nunmap <buffer> E | |
1 0.000003 silent! nunmap <buffer> gr | |
1 0.000002 silent! nunmap <buffer> gf | |
1 0.000002 silent! nunmap <buffer> - | |
1 0.000007 silent! nunmap <buffer> s | |
1 0.000019 nnoremap <silent><buffer> sg :<C-u>call <SID>vimfiler_vsplit()<CR> | |
1 0.000015 nnoremap <silent><buffer> sv :<C-u>call <SID>vimfiler_split()<CR> | |
1 0.000014 nnoremap <silent><buffer><expr> st vimfiler#do_action('tabswitch') | |
1 0.000014 nnoremap <silent><buffer> yY :<C-u>call <SID>copy_to_system_clipboard()<CR> | |
1 0.000015 nnoremap <silent><buffer> P :<C-u>call <SID>paste_to_file_manager()<CR> | |
1 0.000015 nmap <buffer> gx <Plug>(vimfiler_execute_vimfiler_associated) | |
1 0.000013 nmap <buffer> ' <Plug>(vimfiler_toggle_mark_current_line) | |
1 0.000012 nmap <buffer> v <Plug>(vimfiler_quick_look) | |
1 0.000012 nmap <buffer> p <Plug>(vimfiler_preview_file) | |
1 0.000013 nmap <buffer> V <Plug>(vimfiler_clear_mark_all_lines) | |
1 0.000013 nmap <buffer> i <Plug>(vimfiler_switch_to_history_directory) | |
1 0.000013 nmap <buffer> <Tab> <Plug>(vimfiler_switch_to_other_window) | |
1 0.000012 nmap <buffer> <C-r> <Plug>(vimfiler_redraw_screen) | |
1 0.000013 nmap <buffer> <Left> <Plug>(vimfiler_smart_h) | |
1 0.000013 nmap <buffer> <Right> <Plug>(vimfiler_smart_l) | |
1 0.000014 nmap <buffer> <2-LeftMouse> <Plug>(vimfiler_expand_or_edit) | |
FUNCTION unite#start#get_vimfiler_candidates() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/start.vim line 262 | |
Called 2 times | |
Total time: 0.016603 | |
Self time: 0.000091 | |
count total (s) self (s) | |
2 0.000025 0.000007 let unite_save = unite#get_current_unite() | |
2 0.000001 try | |
2 0.000003 let context = get(a:000, 0, {}) | |
2 0.000455 0.000017 let context = unite#init#_context(context, unite#helper#get_source_names(a:sources)) | |
2 0.000002 let context.unite__not_buffer = 1 | |
2 0.000001 let context.unite__is_vimfiler = 1 | |
2 0.000001 let context.unite__is_interactive = 0 | |
2 0.000003 if !has_key(context, 'vimfiler__is_dummy') | |
let context.vimfiler__is_dummy = 0 | |
2 0.000001 endif | |
2 0.016008 0.000013 let candidates = s:get_candidates(a:sources, context) | |
" Converts utf-8-mac to the current encoding. | |
2 0.000034 0.000008 if unite#util#is_mac() && has('iconv') | |
for item in filter(copy(candidates), "v:val.action__path =~# '[^\\x00-\\x7f]'") | |
let item.action__path = unite#util#iconv( item.action__path, 'utf-8-mac', &encoding) | |
let item.word = unite#util#iconv(item.word, 'utf-8-mac', &encoding) | |
let item.abbr = unite#util#iconv(item.abbr, 'utf-8-mac', &encoding) | |
let item.vimfiler__filename = unite#util#iconv( item.vimfiler__filename, 'utf-8-mac', &encoding) | |
let item.vimfiler__abbr = unite#util#iconv( item.vimfiler__abbr, 'utf-8-mac', &encoding) | |
endfor | |
2 0.000001 endif | |
2 0.000001 finally | |
2 0.000042 0.000008 call unite#set_current_unite(unite_save) | |
2 0.000001 endtry | |
2 0.000001 return candidates | |
FUNCTION remote#host#PluginsForHost() | |
Defined: /usr/share/nvim/runtime/autoload/remote/host.vim line 177 | |
Called 4 times | |
Total time: 0.000021 | |
Self time: 0.000021 | |
count total (s) self (s) | |
4 0.000008 if !has_key(s:plugins_for_host, a:host) | |
3 0.000005 let s:plugins_for_host[a:host] = [] | |
4 0.000001 end | |
4 0.000005 return s:plugins_for_host[a:host] | |
FUNCTION <SNR>23_neomake_signatures_clear() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/checkers.vim line 210 | |
Called 3 times | |
Total time: 0.000052 | |
Self time: 0.000038 | |
count total (s) self (s) | |
3 0.000013 if exists('s:neomake_cursormoved_timer') && s:neomake_cursormoved_timer != 0 | |
call timer_stop(s:neomake_cursormoved_timer) | |
3 0.000002 endif | |
3 0.000004 let s:last_echoed_error = '' | |
3 0.000028 0.000013 call s:SIG.clear() | |
FUNCTION dein#add() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein.vim line 103 | |
Called 48 times | |
Total time: 0.018036 | |
Self time: 0.000246 | |
count total (s) self (s) | |
48 0.018025 0.000235 return dein#parse#_add(a:repo, get(a:000, 0, {})) | |
FUNCTION <SNR>121_surround_init_module() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup.vim line 331 | |
Called 1 time | |
Total time: 0.000002 | |
Self time: 0.000002 | |
count total (s) self (s) | |
1 0.000002 if !g:matchup_surround_enabled | return | endif | |
call matchup#perf#tic('loading_module') | |
for [l:map, l:name, l:opt] in [ ['%', 'delimited', 'delim_all'],] | |
let l:p1 = 'noremap <silent> <plug>(matchup-' | |
let l:p2 = l:map . ') :<c-u>call matchup#surround#' . l:name | |
let l:p3 = empty(l:opt) ? ')<cr>' : ', ''' . l:opt . ''')<cr>' | |
execute 'n' . l:p1 . 'ds' . l:p2 . '(0, "d"' . l:p3 | |
execute 'n' . l:p1 . 'cs' . l:p2 . '(0, "c"' . l:p3 | |
endfor | |
call matchup#perf#toc('loading_module', 'surround') | |
FUNCTION unite#util#uniq() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/util.vim line 174 | |
Called 4 times | |
Total time: 0.001411 | |
Self time: 0.000036 | |
count total (s) self (s) | |
4 0.001410 0.000035 return call(s:get_list().uniq, a:000) | |
FUNCTION <SNR>36_filename() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/core/statusline.vim line 129 | |
Called 1 time | |
Total time: 0.000016 | |
Self time: 0.000010 | |
count total (s) self (s) | |
1 0.000003 let name = fnamemodify(bufname('%'), ':t') | |
1 0.000001 if empty(name) | |
1 0.000001 let name = 'No Name' | |
1 0.000000 endif | |
1 0.000011 0.000004 return "%{ &modified ? ' * ' : ' - '}" . s:filesize() . name . ' ' | |
FUNCTION vimfiler#parse_path() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler.vim line 147 | |
Called 4 times | |
Total time: 0.000504 | |
Self time: 0.000133 | |
count total (s) self (s) | |
4 0.000503 0.000132 return vimfiler#helper#_parse_path(a:path) | |
FUNCTION SpaceVim#logger#info() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/logger.vim line 16 | |
Called 6 times | |
Total time: 0.000148 | |
Self time: 0.000023 | |
count total (s) self (s) | |
6 0.000143 0.000018 call s:LOGGER.info(a:msg) | |
FUNCTION <SNR>146_ChooseCommandMap() | |
Defined: ~/.SpaceVim/bundle/tabular/plugin/Tabular.vim line 77 | |
Called 10 times | |
Total time: 0.000094 | |
Self time: 0.000094 | |
count total (s) self (s) | |
10 0.000010 let map = s:TabularCommands | |
10 0.000008 let cmd = a:commandline | |
10 0.000023 if cmd =~# '^<buffer>\s\+' | |
if !exists('b:TabularCommands') | |
let b:TabularCommands = {} | |
endif | |
let map = b:TabularCommands | |
let cmd = substitute(cmd, '^<buffer>\s\+', '', '') | |
10 0.000003 endif | |
10 0.000010 return [ map, cmd ] | |
FUNCTION provider#Poll() | |
Defined: /usr/share/nvim/runtime/autoload/provider.vim line 6 | |
Called 1 time | |
Total time: 0.043931 | |
Self time: 0.043931 | |
count total (s) self (s) | |
1 0.000003 let job = {'rpc': v:true, 'stderr_buffered': v:true} | |
1 0.000000 try | |
1 0.000466 let channel_id = jobstart(a:argv, job) | |
1 0.043440 if channel_id > 0 && rpcrequest(channel_id, 'poll') ==# 'ok' | |
1 0.000007 return channel_id | |
endif | |
catch | |
echomsg v:throwpoint | |
echomsg v:exception | |
for row in get(job, 'stderr', []) | |
echomsg row | |
endfor | |
1 0.000003 endtry | |
throw remote#host#LoadErrorForHost(a:orig_name, a:log_env) | |
FUNCTION unite#custom_action() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite.vim line 48 | |
Called 1 time | |
Total time: 0.000042 | |
Self time: 0.000008 | |
count total (s) self (s) | |
1 0.000042 0.000008 return unite#custom#action(a:kind, a:name, a:action) | |
FUNCTION vimfiler#variables#get_data_directory() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/variables.vim line 15 | |
Called 3 times | |
Total time: 0.000061 | |
Self time: 0.000061 | |
count total (s) self (s) | |
3 0.000043 let g:vimfiler_data_directory = substitute(fnamemodify(get( g:, 'vimfiler_data_directory', ($XDG_CACHE_HOME != '' ? $XDG_CACHE_HOME . '/vimfiler' : expand('~/.cache/vimfiler', 1))), ':p'), '\\', '/', 'g') | |
3 0.000008 if !isdirectory(g:vimfiler_data_directory) && !vimfiler#util#is_sudo() | |
call mkdir(g:vimfiler_data_directory, 'p') | |
3 0.000001 endif | |
3 0.000003 return g:vimfiler_data_directory | |
FUNCTION <SNR>189_get_prelude() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/util.vim line 22 | |
Called 10 times | |
Total time: 0.000146 | |
Self time: 0.000107 | |
count total (s) self (s) | |
10 0.000013 if !exists('s:Prelude') | |
1 0.000049 0.000010 let s:Prelude = vimfiler#util#get_vital().import('Prelude') | |
10 0.000003 endif | |
10 0.000007 return s:Prelude | |
FUNCTION <SNR>6_fileformat() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/system.vim line 71 | |
Called 1 time | |
Total time: 0.001982 | |
Self time: 0.000035 | |
count total (s) self (s) | |
1 0.000001 let fileformat = '' | |
1 0.000002 if &fileformat ==? 'dos' | |
let fileformat = '' | |
1 0.000001 elseif &fileformat ==? 'unix' | |
1 0.001954 0.000007 if s:isDarwin() | |
let fileformat = '' | |
1 0.000000 else | |
1 0.000018 let fileformat = '' | |
1 0.000000 endif | |
elseif &fileformat ==? 'mac' | |
let fileformat = '' | |
1 0.000000 endif | |
1 0.000002 return fileformat | |
FUNCTION vimproc#util#iconv() | |
Defined: ~/.SpaceVim/bundle/vimproc.vim/autoload/vimproc/util.vim line 42 | |
Called 1 time | |
Total time: 0.000019 | |
Self time: 0.000016 | |
count total (s) self (s) | |
1 0.000008 0.000005 if !vimproc#util#has_iconv() || a:expr == '' || a:from == '' || a:to == '' || a:from ==# a:to | |
return a:expr | |
1 0.000000 endif | |
1 0.000008 let result = iconv(a:expr, a:from, a:to) | |
1 0.000001 return result != '' ? result : a:expr | |
FUNCTION SpaceVim#layers#shell#close_terminal() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/shell.vim line 268 | |
Called 1 time | |
Total time: 0.000004 | |
Self time: 0.000004 | |
count total (s) self (s) | |
1 0.000002 for terminal_bufnr in s:open_terminals_buffers | |
if bufexists(terminal_bufnr) | |
exe 'silent bd!' . terminal_bufnr | |
endif | |
1 0.000000 endfor | |
FUNCTION <SNR>95_change_dir() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/plugins/projectmanager.vim line 135 | |
Called 3 times | |
Total time: 0.000290 | |
Self time: 0.000099 | |
count total (s) self (s) | |
3 0.000004 let bufname = bufname('%') | |
3 0.000034 if empty(bufname) | |
2 0.000003 let bufname = 'No Name' | |
3 0.000001 endif | |
3 0.000090 0.000011 call s:LOGGER.info('buffer name: ' . bufname) | |
3 0.000067 0.000017 if a:dir ==# s:FILE.unify_path(getcwd()) | |
3 0.000072 0.000009 call s:LOGGER.info('same as current directory, no need to change.') | |
else | |
call s:LOGGER.info('change to root: ' . a:dir) | |
exe 'cd ' . fnameescape(fnamemodify(a:dir, ':p')) | |
try | |
let b:git_dir = fugitive#extract_git_dir(expand('%:p')) | |
catch | |
endtry | |
3 0.000001 endif | |
FUNCTION <SNR>36_syntax_checking() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/core/statusline.vim line 229 | |
Called 1 time | |
Total time: 0.000874 | |
Self time: 0.000061 | |
count total (s) self (s) | |
1 0.000002 if !exists('g:loaded_neomake') | |
return '' | |
1 0.000000 endif | |
1 0.000865 0.000051 let counts = neomake#statusline#LoclistCounts() | |
1 0.000002 let warnings = get(counts, 'W', 0) | |
1 0.000001 let errors = get(counts, 'E', 0) | |
1 0.000002 let l = warnings ? '%#SpaceVim_statusline_warn# ● ' . warnings . ' ' : '' | |
1 0.000002 let l .= errors ? (warnings ? '' : ' ') . '%#SpaceVim_statusline_error#● ' . errors . ' ' : '' | |
1 0.000001 return l | |
FUNCTION SpaceVim#autocmds#VimEnter() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/autocmds.vim line 152 | |
Called 1 time | |
Total time: 0.001690 | |
Self time: 0.000116 | |
count total (s) self (s) | |
1 0.000149 0.000007 call SpaceVim#api#import('vim#highlight').hide_in_normal('EndOfBuffer') | |
1 0.000002 for argv in g:_spacevim_mappings_space_custom_group_name | |
if len(argv[0]) == 1 | |
if !has_key(g:_spacevim_mappings_space, argv[0][0]) | |
let g:_spacevim_mappings_space[argv[0][0]] = {'name' : argv[1]} | |
endif | |
elseif len(argv[0]) == 2 | |
if !has_key(g:_spacevim_mappings_space, argv[0][0]) | |
let g:_spacevim_mappings_space[argv[0][0]] = {'name' : '+Unnamed', argv[0][1] : { 'name' : argv[1]}, } | |
else | |
if !has_key(g:_spacevim_mappings_space[argv[0][0]], argv[0][1]) | |
let g:_spacevim_mappings_space[argv[0][0]][argv[0][1]] = {'name' : argv[1]} | |
endif | |
endif | |
endif | |
1 0.000000 endfor | |
2 0.000002 for argv in g:_spacevim_mappings_space_custom | |
1 0.000177 0.000009 call call('SpaceVim#mapping#space#def', argv) | |
2 0.000001 endfor | |
1 0.000009 0.000005 if SpaceVim#layers#isLoaded('core#statusline') | |
1 0.000004 set laststatus=2 | |
1 0.000825 0.000006 call SpaceVim#layers#core#statusline#def_colors() | |
1 0.000004 setlocal statusline=%!SpaceVim#layers#core#statusline#get(1) | |
1 0.000000 endif | |
1 0.000008 0.000005 if SpaceVim#layers#isLoaded('core#tabline') | |
1 0.000421 0.000008 call SpaceVim#layers#core#tabline#def_colors() | |
1 0.000028 set showtabline=2 | |
1 0.000001 endif | |
1 0.000037 0.000011 call SpaceVim#plugins#projectmanager#RootchandgeCallback() | |
1 0.000002 if !empty(get(g:, '_spacevim_bootstrap_after', '')) | |
try | |
call call(g:_spacevim_bootstrap_after, []) | |
catch | |
call SpaceVim#logger#error('failed to call bootstrap_after function: ' . g:_spacevim_bootstrap_after) | |
call SpaceVim#logger#error(' exception: ' . v:exception) | |
call SpaceVim#logger#error(' throwpoint: ' . v:throwpoint) | |
endtry | |
1 0.000000 endif | |
FUNCTION <SNR>82_plugin_name() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/vital/unite.vim line 127 | |
Called 4 times | |
Total time: 0.000005 | |
Self time: 0.000005 | |
count total (s) self (s) | |
4 0.000004 return self._plugin_name | |
FUNCTION SpaceVim#api#vim#buffer#get() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/vim/buffer.vim line 280 | |
Called 1 time | |
Total time: 0.000004 | |
Self time: 0.000004 | |
count total (s) self (s) | |
1 0.000004 return deepcopy(s:self) | |
FUNCTION vital#_unite#Process#import() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/vital/_unite/Process.vim line 5 | |
Called 1 time | |
Total time: 0.000013 | |
Self time: 0.000013 | |
count total (s) self (s) | |
1 0.000013 return map({'shellescape': '', 'has_vimproc': '', 'system': '', 'iconv': '', 'spawn': '', 'get_last_status': ''}, 'function("s:" . v:key)') | |
FUNCTION <SNR>204_initialize_default() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/variables.vim line 154 | |
Called 1 time | |
Total time: 0.000075 | |
Self time: 0.000075 | |
count total (s) self (s) | |
1 0.000037 let s:default_context = { 'input' : '', 'path' : '', 'prompt' : '', 'start_insert' : 0, 'complete' : 0, 'script' : 0, 'col' : -1, 'quit' : 1, 'file_quit' : 0, 'buffer_name' : 'default', 'profile_name' : '', 'default_action' : 'default', 'winwidth' : 90, 'winheight' : 20, 'immediately' : 0, 'force_immediately' : 0, 'empty' : 1, 'auto_preview' : 0, 'auto_highlight' : 0, 'horizontal' : 0, 'vertical' : 0, 'direction' : 'topleft', 'split' : 1, 'temporary' : 0, 'verbose' : 0, 'auto_resize' : 0, 'resize' : 1, 'toggle' : 0, 'quick_match' : 0, 'create' : 0, 'cursor_line_highlight' : 'CursorLine', 'abbr_highlight' : 'Normal', 'cursor_line' : 1, 'update_time' : 200, 'hide_source_names' : 0, 'max_multi_lines' : 5, 'here' : 0, 'silent' : 0, 'keep_focus' : 0, 'auto_quit' : 0, 'focus' : 1, 'multi_line' : 0, 'resume' : 0, 'wrap' : 0, 'select' : -1, 'log' : 0, 'truncate' : 1, 'truncate_width' : 50, 'tab' : 0, 'sync' : 0, 'unique' : 0, 'execute_command' : '', 'prompt_direction' : '', 'prompt_visible' : 0, 'prompt_focus' : 0, 'short_source_names' : 0, 'candidate_icon' : ' ', 'marked_icon' : '*', 'hide_icon' : 1, 'cursor_line_time' : '0.10', 'is_redraw' : 0, 'wipe' : 0, 'ignorecase' : &ignorecase, 'smartcase' : &smartcase, 'restore' : 1, 'vertical_preview' : 0, 'force_redraw' : 0, 'previewheight' : &previewheight, 'buffer' : 1, 'match_input' : 1, 'bufnr' : bufnr('%'), 'firstline' : -1, 'lastline' : -1, 'unite__old_buffer_info' : [], 'unite__direct_switch' : 0, 'unite__is_interactive' : 1, 'unite__is_complete' : 0, 'unite__is_vimfiler' : 0, 'unite__old_winwidth' : 0, 'unite__old_winheight' : 0, 'unite__disable_hooks' : 0, 'unite__disable_max_candidates' : 0, 'unite__not_buffer' : 0, 'unite__is_resize' : 0, 'unite__is_restart' : 0, 'unite__is_manual' : 0, } | |
" For compatibility(deprecated variables) | |
3 0.000029 for [context, var] in filter([ ['start_insert', 'g:unite_enable_start_insert'], ['prompt', 'g:unite_prompt'], ['winwidth', 'g:unite_winwidth'], ['winheight', 'g:unite_winheight'], ['vertical', 'g:unite_enable_split_vertically'], ['direction', 'g:unite_split_rule'], ['cursor_line_highlight', 'g:unite_cursor_line_highlight'], ['abbr_highlight', 'g:unite_abbr_highlight'], ['update_time', 'g:unite_update_time'], ['short_source_names', 'g:unite_enable_short_source_names'], ['candidate_icon', 'g:unite_candidate_icon'], ['marked_icon', 'g:unite_marked_icon'], ['cursor_line_time', 'g:unite_cursor_line_time'], ['vertical_preview', 'g:unite_kind_file_vertical_preview'], ], "exists(v:val[1])") | |
2 0.000005 let s:default_context[context] = {var} | |
3 0.000002 endfor | |
FUNCTION dein#util#_end() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/util.vim line 422 | |
Called 1 time | |
Total time: 0.000467 | |
Self time: 0.000433 | |
count total (s) self (s) | |
1 0.000001 if g:dein#_block_level != 1 | |
call dein#util#_error('Invalid begin/end block usage.') | |
return 1 | |
1 0.000000 endif | |
1 0.000001 let g:dein#_block_level -= 1 | |
1 0.000002 if !has('vim_starting') | |
call dein#source(filter(values(g:dein#_plugins), "!v:val.lazy && !v:val.sourced && v:val.rtp !=# ''")) | |
1 0.000000 endif | |
" Add runtimepath | |
1 0.000011 0.000006 let rtps = dein#util#_split_rtp(&runtimepath) | |
1 0.000002 let index = index(rtps, g:dein#_runtime_path) | |
1 0.000001 if index < 0 | |
call dein#util#_error('Invalid runtimepath.') | |
return 1 | |
1 0.000000 endif | |
1 0.000001 let depends = [] | |
1 0.000004 let sourced = has('vim_starting') && (!exists('&loadplugins') || &loadplugins) | |
35 0.000060 for plugin in filter(values(g:dein#_plugins), "!v:val.lazy && !v:val.sourced && v:val.rtp !=# ''") | |
" Load dependencies | |
34 0.000028 if has_key(plugin, 'depends') | |
let depends += plugin.depends | |
34 0.000007 endif | |
34 0.000016 if !plugin.merged | |
33 0.000035 call insert(rtps, plugin.rtp, index) | |
33 0.000070 if isdirectory(plugin.rtp.'/after') | |
4 0.000036 0.000017 call dein#util#_add_after(rtps, plugin.rtp.'/after') | |
33 0.000007 endif | |
34 0.000007 endif | |
34 0.000023 let plugin.sourced = sourced | |
35 0.000010 endfor | |
1 0.000019 0.000009 let &runtimepath = dein#util#_join_rtp(rtps, &runtimepath, '') | |
1 0.000001 if !empty(depends) | |
call dein#source(depends) | |
1 0.000000 endif | |
1 0.000001 if g:dein#_hook_add !=# '' | |
call dein#util#_execute_hook({}, g:dein#_hook_add) | |
1 0.000000 endif | |
3 0.000010 for [event, plugins] in filter(items(g:dein#_event_plugins), "exists('##' . v:val[0])") | |
2 0.000021 execute printf('autocmd dein-events %s call '. 'dein#autoload#_on_event("%s", %s)', (exists('##' . event) ? event . ' *' : 'User ' . event), event, string(plugins)) | |
3 0.000001 endfor | |
1 0.000002 if !has('vim_starting') | |
call dein#call_hook('add') | |
call dein#call_hook('source') | |
call dein#call_hook('post_source') | |
1 0.000000 endif | |
FUNCTION <SNR>191_open() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vital/_vimfiler/Vim/Buffer.vim line 39 | |
Called 1 time | |
Total time: 0.000402 | |
Self time: 0.000398 | |
count total (s) self (s) | |
1 0.000002 let save_wildignore = &wildignore | |
1 0.000003 let &wildignore = '' | |
1 0.000000 try | |
1 0.000007 0.000005 if s:P.is_funcref(a:opener) | |
let loaded = !bufloaded(a:buffer) | |
call a:opener(a:buffer) | |
1 0.000001 elseif a:buffer is 0 || a:buffer is# '' | |
let loaded = 1 | |
silent execute a:opener | |
enew | |
1 0.000000 else | |
1 0.000007 let loaded = !bufloaded(a:buffer) | |
1 0.000005 0.000004 if s:P.is_string(a:buffer) | |
1 0.000359 execute a:opener '`=a:buffer`' | |
elseif s:P.is_number(a:buffer) | |
silent execute a:opener | |
execute a:buffer 'buffer' | |
else | |
throw 'vital: Vim.Buffer: Unknown opener type.' | |
1 0.000000 endif | |
1 0.000000 endif | |
1 0.000001 finally | |
1 0.000003 let &wildignore = save_wildignore | |
1 0.000000 endtry | |
1 0.000001 return loaded | |
FUNCTION unite#start#vimfiler_check_filetype() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/start.vim line 196 | |
Called 2 times | |
Total time: 0.007111 | |
Self time: 0.000227 | |
count total (s) self (s) | |
2 0.000005 let context = get(a:000, 0, {}) | |
2 0.001632 0.000147 let context = unite#init#_context(context, unite#helper#get_source_names(a:sources)) | |
2 0.000002 let context.unite__is_vimfiler = 1 | |
2 0.000002 let context.unite__is_interactive = 0 | |
2 0.000002 if !has_key(context, 'vimfiler__is_dummy') | |
2 0.000002 let context.vimfiler__is_dummy = 0 | |
2 0.000000 endif | |
2 0.000001 try | |
2 0.005270 0.000012 call unite#init#_current_unite(a:sources, context) | |
catch /^unite.vim: Invalid / | |
return [] | |
2 0.000001 endtry | |
2 0.000050 0.000015 for source in filter(copy(unite#loaded_sources_list()), "has_key(v:val, 'vimfiler_check_filetype')") | |
2 0.000116 0.000008 let ret = source.vimfiler_check_filetype(source.args, context) | |
2 0.000002 if empty(ret) | |
continue | |
2 0.000000 endif | |
2 0.000003 let [type, info] = ret | |
2 0.000002 if type ==# 'file' | |
call unite#init#_candidates_source([info[1]], source.name) | |
2 0.000002 elseif type ==# 'directory' | |
" nop | |
elseif type ==# 'error' | |
call unite#print_error(info) | |
return [] | |
else | |
call unite#print_error('Invalid filetype : ' . type) | |
2 0.000001 endif | |
2 0.000002 return [type, info] | |
endfor | |
" Not found. | |
return [] | |
FUNCTION unite#variables#loaded_defaults() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/variables.vim line 60 | |
Called 4 times | |
Total time: 0.000015 | |
Self time: 0.000015 | |
count total (s) self (s) | |
4 0.000006 if !exists('s:loaded_defaults') | |
1 0.000001 let s:loaded_defaults = {} | |
4 0.000001 endif | |
4 0.000003 return s:loaded_defaults | |
FUNCTION vimfiler#mappings#close() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/mappings.vim line 588 | |
Called 1 time | |
Total time: 0.000029 | |
Self time: 0.000014 | |
count total (s) self (s) | |
1 0.000021 0.000006 let quit_winnr = vimfiler#util#get_vimfiler_winnr(a:buffer_name) | |
1 0.000001 if quit_winnr > 0 | |
" Hide unite buffer. | |
call vimfiler#util#winmove(quit_winnr) | |
if winnr('$') != 1 | |
close | |
else | |
call vimfiler#util#alternate_buffer( getbufvar(winbufnr(quit_winnr), 'vimfiler').context) | |
endif | |
1 0.000000 endif | |
1 0.000001 return quit_winnr > 0 | |
FUNCTION SpaceVim#mapping#def() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/mapping.vim line 36 | |
Called 19 times | |
Total time: 0.001261 | |
Self time: 0.001261 | |
count total (s) self (s) | |
19 0.000023 let feedkeys_mode = 'm' | |
19 0.000121 let map = split(a:type)[0] | |
19 0.000030 if map =~# 'nore' | |
10 0.000007 let feedkeys_mode = 'n' | |
19 0.000026 endif | |
" TODO parse lhs and rhs, return list of key | |
"let lhs = a:key | |
"let rhs = a:value | |
19 0.000015 let gexe = a:value | |
19 0.000034 if a:value =~? '^<plug>' | |
let gexe = '\' . a:value | |
19 0.000088 elseif a:value =~? ':.\+<cr>$' | |
18 0.000055 let gexe = substitute(gexe, '<cr>', "\<cr>", 'g') | |
18 0.000036 let gexe = substitute(gexe, '<CR>', "\<CR>", 'g') | |
18 0.000035 let gexe = substitute(gexe, '<Esc>', "\<Esc>", 'g') | |
1 0.000000 else | |
19 0.000005 endif | |
19 0.000027 if get(g:, 'spacevim_enable_key_frequency', 0) | |
exec a:type . ' <expr> ' . a:key . " SpaceVim#mapping#frequency#update('" . a:key . "', '" . a:value . "')" | |
19 0.000005 else | |
19 0.000191 exec a:type . ' ' . a:key . ' ' . a:value | |
19 0.000006 endif | |
19 0.000013 if a:0 > 0 | |
19 0.000016 let desc = a:1 | |
19 0.000066 let description = '➤ ' . desc . repeat(' ', 80 - len(desc) - len(a:key)) . a:key | |
19 0.000023 let cmd = a:0 == 2 ? a:2 : a:value | |
19 0.000046 call add(g:unite_source_menu_menus.CustomKeyMaps.command_candidates, [description,cmd]) | |
19 0.000011 if a:0 == 3 | |
" enable guide | |
14 0.000034 if a:key =~? '^<leader>' | |
14 0.000012 if len(a:key) > 9 | |
5 0.000006 let group = a:key[8:8] | |
5 0.000007 if !has_key(g:_spacevim_mappings, group) | |
let g:_spacevim_mappings[group] = {'name': 'new group'} | |
5 0.000002 endif | |
5 0.000029 call extend(g:_spacevim_mappings[group], { a:key[9:] : ['call feedkeys("' . gexe . '", "' . feedkeys_mode . '")', a:3] }) | |
9 0.000008 elseif len(a:key) == 9 | |
9 0.000045 call extend(g:_spacevim_mappings, { a:key[8:] : ['call feedkeys("' . gexe . '", "' . feedkeys_mode . '")', a:3] }) | |
14 0.000004 endif | |
14 0.000003 endif | |
19 0.000004 endif | |
19 0.000004 endif | |
FUNCTION <SNR>10_get_python_candidates() | |
Defined: /usr/share/nvim/runtime/autoload/provider/pythonx.vim line 28 | |
Called 2 times | |
Total time: 0.000011 | |
Self time: 0.000011 | |
count total (s) self (s) | |
2 0.000010 return { 2: ['python2', 'python2.7', 'python2.6', 'python'], 3: ['python3', 'python3.7', 'python3.6', 'python3.5', 'python3.4', 'python3.3', 'python'] }[a:major_version] | |
FUNCTION unite#sources#file#_get_path() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/sources/file.vim line 270 | |
Called 2 times | |
Total time: 0.000066 | |
Self time: 0.000030 | |
count total (s) self (s) | |
2 0.000053 0.000016 let path = unite#util#substitute_path_separator( unite#util#expand(join(a:args, ':'))) | |
2 0.000001 if path == '' | |
let path = a:context.path | |
2 0.000000 endif | |
2 0.000006 if path != '' && path !~ '/$' && isdirectory(path) | |
let path .= '/' | |
2 0.000000 endif | |
2 0.000001 return path | |
FUNCTION vimfiler#view#_force_redraw_all_vimfiler() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/view.vim line 138 | |
Called 1 time | |
Total time: 0.018708 | |
Self time: 0.000031 | |
count total (s) self (s) | |
1 0.000002 let is_manualed = get(a:000, 0, 0) | |
1 0.000001 let current_nr = winnr() | |
1 0.000000 try | |
" Search vimfiler window. | |
2 0.000007 for winnr in filter(range(1, winnr('$')), "getwinvar(v:val, '&filetype') ==# 'vimfiler'") | |
1 0.000009 0.000004 call vimfiler#util#winmove(winnr) | |
1 0.018673 0.000006 call vimfiler#view#_force_redraw_screen(is_manualed) | |
2 0.000001 endfor | |
1 0.000000 finally | |
1 0.000011 0.000006 call vimfiler#util#winmove(current_nr) | |
1 0.000000 endtry | |
FUNCTION <SNR>123_init_delim_regexes() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup/loader.vim line 522 | |
Called 4 times | |
Total time: 0.001303 | |
Self time: 0.000478 | |
count total (s) self (s) | |
4 0.000004 let l:re = {} | |
4 0.000004 let l:re.delim_all = {} | |
4 0.000003 let l:re.all = {} | |
4 0.000814 0.000023 let l:re.delim_tex = s:init_delim_regexes_generator('delim_tex') | |
4 0.000007 let l:re.delim_tex._engine_info = { 'has_zs': {} } | |
" use a flag for b:match_ignorecase | |
4 0.000007 let l:ic = get(b:, 'match_ignorecase', 0) ? '\c' : '\C' | |
" if a particular engine is specified, use that for the patterns | |
" (currently only applied to delim_re TODO) | |
4 0.000010 let l:eng = string(get(b:, 'matchup_regexpengine', 0)) | |
4 0.000006 let l:eng = l:eng > 0 ? '\%#='.l:eng : '' | |
28 0.000021 for l:k in keys(s:sidedict) | |
24 0.000207 0.000172 let l:re.delim_tex._engine_info.has_zs[l:k] = l:re.delim_tex[l:k] =~# g:matchup#re#zs | |
24 0.000023 if l:re.delim_tex[l:k] ==# '\%(\)' | |
14 0.000012 let l:re.delim_tex[l:k] = '' | |
10 0.000003 else | |
" since these patterns are used in searchpos(), | |
" be explicit about regex mode (set magic mode and ignorecase) | |
10 0.000020 let l:re.delim_tex[l:k] = l:eng . '\m' . l:ic . l:re.delim_tex[l:k] | |
24 0.000006 endif | |
24 0.000030 let l:re.delim_all[l:k] = l:re.delim_tex[l:k] | |
24 0.000029 let l:re.all[l:k] = l:re.delim_all[l:k] | |
28 0.000011 endfor | |
4 0.000005 let l:re.delim_all._engine_info = l:re.delim_tex._engine_info | |
4 0.000004 let l:re.all._engine_info = l:re.delim_all._engine_info | |
4 0.000003 return l:re | |
FUNCTION dein#source() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein.vim line 112 | |
Called 1 time | |
Total time: 0.006361 | |
Self time: 0.000009 | |
count total (s) self (s) | |
1 0.006361 0.000009 return call('dein#autoload#_source', a:000) | |
FUNCTION dein#check_install() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein.vim line 115 | |
Called 1 time | |
Total time: 0.000125 | |
Self time: 0.000009 | |
count total (s) self (s) | |
1 0.000125 0.000009 return dein#util#_check_install(get(a:000, 0, [])) | |
FUNCTION <SNR>46_path_to_fname() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/custom.vim line 157 | |
Called 1 time | |
Total time: 0.000015 | |
Self time: 0.000015 | |
count total (s) self (s) | |
1 0.000014 return expand(g:spacevim_data_dir.'/SpaceVim/conf/') . substitute(a:path, '[\\/:;.]', '_', 'g') . '.json' | |
FUNCTION matchup#loader#refresh_match_words() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup/loader.vim line 50 | |
Called 2 times | |
Total time: 0.000036 | |
Self time: 0.000036 | |
count total (s) self (s) | |
2 0.000005 if get(b:, 'match_words', ':') !~# ':' | |
call matchup#perf#tic('refresh') | |
" protect the cursor from the match_words function | |
let l:save_pos = matchup#pos#get_cursor() | |
execute 'let l:match_words = ' b:match_words | |
if l:save_pos != matchup#pos#get_cursor() | |
call matchup#pos#set_cursor(l:save_pos) | |
endif | |
call matchup#perf#toc('refresh', 'function') | |
if has_key(s:match_word_cache, l:match_words) | |
let b:matchup_delim_lists = s:match_word_cache[l:match_words].delim_lists | |
let b:matchup_delim_re = s:match_word_cache[l:match_words].delim_regexes | |
call matchup#perf#toc('refresh', 'cache_hit') | |
else | |
" re-parse match words | |
let b:matchup_delim_lists = s:init_delim_lists() | |
let b:matchup_delim_re = s:init_delim_regexes() | |
let s:match_word_cache[l:match_words] = { 'delim_lists' : b:matchup_delim_lists, 'delim_regexes': b:matchup_delim_re,} | |
call matchup#perf#toc('refresh', 'parse') | |
endif | |
2 0.000001 endif | |
FUNCTION unite#variables#enable_current_unite() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/variables.vim line 30 | |
Called 2 times | |
Total time: 0.000003 | |
Self time: 0.000003 | |
count total (s) self (s) | |
2 0.000002 let s:use_current_unite = 1 | |
FUNCTION SpaceVim#plugins#windowsmanager#UpdateRestoreWinInfo() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/plugins/windowsmanager.vim line 30 | |
Called 2 times | |
Total time: 0.000015 | |
Self time: 0.000015 | |
count total (s) self (s) | |
2 0.000002 if !&buflisted | |
2 0.000002 if &buftype ==# 'terminal' | |
noautocmd q | |
2 0.000001 endif | |
2 0.000001 return | |
endif | |
let s:unmarked = 1 | |
let win_data = s:get_window_restore_data() | |
if len(tabpagebuflist()) == 1 | |
let win_data.newtab = 1 | |
let win_data.open_command = (tabpagenr() - 1).'tabnew' | |
else | |
if winwidth(winnr()) == &columns | |
let win_data.same_w = 1 | |
endif | |
let win_data.oldwinid = winnr() | |
endif | |
call add(s:restore_windows_stack, win_data) | |
let s:redo_stack = [] | |
FUNCTION vital#_unite#Data#List#import() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/vital/_unite/Data/List.vim line 5 | |
Called 1 time | |
Total time: 0.000069 | |
Self time: 0.000069 | |
count total (s) self (s) | |
1 0.000069 return map({'combinations': '', 'and': '', 'sort_by': '', 'foldr1': '', 'sort': '', 'flatten': '', 'has_index': '', 'find_indices': '', 'any': '', 'unshift': '', 'span': '', 'pop': '', 'binary_search': '', 'uniq_by': '', 'or': '', 'all': '', 'zip': '', 'find_last_index': '', 'find': '', 'partition': '', 'map_accum': '', 'permutations': '', 'break': '', 'max_by': '', 'foldl': '', 'foldr': '', 'find_index': '', 'group_by': '', 'take_while': '', 'conj': '', 'push': '', 'char_range': '', 'cons': '', 'foldl1': '', 'intersect': '', 'concat': '', 'shift': '', 'clear': '', 'has_common_items': '', 'product': '', 'zip_fill': '', 'uniq': '', 'has': '', 'min_by': '', 'with_index': ''}, 'function("s:" . v:key)') | |
FUNCTION <SNR>111_proper_visual_mode() | |
Defined: ~/.SpaceVim/bundle/vim-textobj-user/autoload/textobj/user.vim line 726 | |
Called 16 times | |
Total time: 0.000297 | |
Self time: 0.000297 | |
count total (s) self (s) | |
" Return the mode prefix of proper "visual" mode for a:lhs key sequence. | |
" a:lhs should not be defined in Select mode if a:lhs starts with | |
" a printable character. Otherwise a:lhs may be defined in Select mode. | |
" a:lhs may be prefixed with :map-arguments such as <buffer>. | |
" It's necessary to remove them to determine the first character in a:lhs. | |
16 0.000144 let s1 = substitute( a:lhs, '\v^(\<(buffer|silent|special|script|expr|unique)\>\s*)*', '', '' ) | |
" All characters in a:lhs are printable characters, so it's necessary to | |
" convert <>-escaped notation into corresponding characters. | |
16 0.000086 let s2 = substitute(s1, '^\(<[^<>]\+>\)', '\=eval("\"\\" . submatch(1) . "\"")', '') | |
16 0.000033 return s2 =~# '^\p' ? 'x' : 'v' | |
FUNCTION neomake#configure#automake() | |
Defined: ~/.SpaceVim/bundle/neomake/autoload/neomake/configure.vim line 753 | |
Called 1 time | |
Total time: 0.001174 | |
Self time: 0.000063 | |
count total (s) self (s) | |
1 0.000803 0.000009 call s:debug_log(printf('configuring automake: %s', string(a:000))) | |
1 0.000001 if !exists('g:neomake') | |
let g:neomake = {} | |
1 0.000000 endif | |
1 0.000000 if a:0 | |
1 0.000294 0.000007 call call('s:parse_events_from_args', [g:neomake] + a:000) | |
1 0.000000 endif | |
1 0.000003 let disabled_globally = get(get(g:, 'neomake', {}), 'disabled', 0) | |
1 0.000001 if disabled_globally | |
let s:registered_events = [] | |
1 0.000000 else | |
1 0.000003 let s:registered_events = keys(get(get(g:neomake, 'automake', {}), 'events', {})) | |
1 0.000000 endif | |
" Keep custom configured buffers. | |
1 0.000002 call filter(s:configured_buffers, 'v:val.custom') | |
1 0.000001 for b in keys(s:configured_buffers) | |
if empty(s:configured_buffers[b].maker_jobs) | |
continue | |
endif | |
if get(s:configured_buffers[b], 'disabled', 0) | |
continue | |
endif | |
let b_cfg = neomake#config#get('b:automake.events', {}) | |
for event_config in items(b_cfg) | |
let event = event_config[0] | |
if index(s:registered_events, event) == -1 | |
call add(s:registered_events, event) | |
endif | |
endfor | |
1 0.000000 endfor | |
1 0.000036 0.000006 call s:debug_log('registered events: '.join(s:registered_events, ', ')) | |
1 0.000001 augroup neomake_automake | |
1 0.000002 au! | |
2 0.000002 for event in s:registered_events | |
1 0.000007 exe 'autocmd '.event." * call s:neomake_automake('".event."', expand('<abuf>'))" | |
2 0.000001 endfor | |
1 0.000000 augroup END | |
1 0.000001 if empty(s:registered_events) | |
augroup! neomake_automake | |
1 0.000000 endif | |
FUNCTION <SNR>121_init_modules() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup.vim line 82 | |
Called 1 time | |
Total time: 0.001281 | |
Self time: 0.000171 | |
count total (s) self (s) | |
3 0.000004 for l:mod in [ 'loader', 'matchparen' ] | |
2 0.000004 if !get(g:, 'matchup_'.l:mod.'_enabled', 1) | |
continue | |
2 0.000000 endif | |
2 0.000011 0.000006 call matchup#perf#tic('loading_module') | |
2 0.000777 0.000112 call matchup#{l:mod}#init_module() | |
2 0.000058 0.000014 call matchup#perf#toc('loading_module', l:mod) | |
3 0.000002 endfor | |
1 0.000241 0.000006 call s:motion_init_module() | |
1 0.000116 0.000005 call s:text_obj_init_module() | |
1 0.000046 0.000004 call s:misc_init_module() | |
1 0.000006 0.000004 call s:surround_init_module() | |
1 0.000009 0.000003 call s:where_init_module() | |
FUNCTION <SNR>206_parse_path() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/sources/file.vim line 341 | |
Called 4 times | |
Total time: 0.000152 | |
Self time: 0.000071 | |
count total (s) self (s) | |
4 0.000110 0.000033 let path = unite#util#substitute_path_separator( unite#util#expand(join(a:args, ':'))) | |
4 0.000038 0.000034 let path = unite#util#substitute_path_separator( fnamemodify(path, ':p')) | |
4 0.000002 return path | |
FUNCTION <SNR>98_disable_cursorline() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/autocmds.vim line 82 | |
Called 2 times | |
Total time: 0.000028 | |
Self time: 0.000028 | |
count total (s) self (s) | |
2 0.000002 if &filetype ==# 'denite' | |
2 0.000001 else | |
2 0.000023 setl nocursorline | |
2 0.000001 endif | |
FUNCTION <SNR>198__encode_name() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vital/_vimfiler/System/Cache/Deprecated.vim line 61 | |
Called 3 times | |
Total time: 0.000076 | |
Self time: 0.000042 | |
count total (s) self (s) | |
" Check cache directory. | |
3 0.000008 if !isdirectory(a:cache_dir) | |
call mkdir(a:cache_dir, 'p') | |
3 0.000001 endif | |
3 0.000003 let cache_dir = a:cache_dir | |
3 0.000007 if cache_dir !~# '/$' | |
3 0.000004 let cache_dir .= '/' | |
3 0.000001 endif | |
3 0.000048 0.000014 return cache_dir . s:_create_hash(cache_dir, a:filename) | |
FUNCTION vital#_vimfiler#Vim#Guard#import() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vital/_vimfiler/Vim/Guard.vim line 5 | |
Called 1 time | |
Total time: 0.000010 | |
Self time: 0.000010 | |
count total (s) self (s) | |
1 0.000010 return map({'_vital_depends': '', '_vital_created': '', 'store': '', '_vital_loaded': ''}, 'function("s:" . v:key)') | |
FUNCTION dein#util#_set_default() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/util.vim line 12 | |
Called 4 times | |
Total time: 0.000030 | |
Self time: 0.000030 | |
count total (s) self (s) | |
4 0.000010 if !exists(a:var) || type({a:var}) != type(a:val) | |
4 0.000006 let alternate_var = get(a:000, 0, '') | |
4 0.000010 let {a:var} = exists(alternate_var) ? {alternate_var} : a:val | |
4 0.000001 endif | |
FUNCTION SpaceVim#default#options() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/default.vim line 15 | |
Called 1 time | |
Total time: 0.000181 | |
Self time: 0.000181 | |
count total (s) self (s) | |
" basic vim settings | |
1 0.000003 if has('gui_running') | |
set guioptions-=m " Hide menu bar. | |
set guioptions-=T " Hide toolbar | |
set guioptions-=L " Hide left-hand scrollbar | |
set guioptions-=r " Hide right-hand scrollbar | |
set guioptions-=b " Hide bottom scrollbar | |
set showtabline=0 " Hide tabline | |
set guioptions-=e " Hide tab | |
try | |
if s:SYSTEM.isWindows | |
" please install the font in 'Dotfiles\font' | |
set guifont=DejaVu_Sans_Mono_for_Powerline:h11:cANSI:qDRAFT | |
elseif s:SYSTEM.isOSX | |
set guifont=DejaVu\ Sans\ Mono\ for\ Powerline:h11 | |
else | |
set guifont=DejaVu\ Sans\ Mono\ for\ Powerline\ 11 | |
endif | |
catch /^Vim\%((\a\+)\)\=:E518/ | |
if has('gui_vimr') | |
" VimR has disabled support for guifont | |
else | |
throw v:exception | |
endif | |
endtry | |
1 0.000000 endif | |
" indent use backspace delete indent, eol use backspace delete line at | |
" begining start delete the char you just typed in if you do not use set | |
" nocompatible ,you need this | |
1 0.000002 set backspace=indent,eol,start | |
1 0.000003 set nrformats-=octal | |
1 0.000005 set listchars=tab:→\ ,eol:↵,trail:·,extends:↷,precedes:↶ | |
1 0.000002 set fillchars=vert:│,fold:· | |
1 0.000003 set laststatus=2 | |
" hide cmd | |
1 0.000002 set noshowcmd | |
" indent | |
1 0.000001 set autoindent | |
1 0.000001 set smartindent | |
1 0.000001 set cindent | |
" show wildmenu | |
1 0.000001 set wildmenu | |
" do not break words. | |
1 0.000001 set linebreak | |
" Enable line number | |
1 0.000000 set number | |
" Automatically read a file changed outside of vim | |
1 0.000000 set autoread | |
" Set SpaceVim data directory {{{ | |
" use ~/.cache/SpaceVim/ as default data directory, create the directory if | |
" it does not exist. | |
1 0.000000 set backup | |
1 0.000002 set undofile | |
1 0.000001 set undolevels=1000 | |
1 0.000002 let g:data_dir = g:spacevim_data_dir.'/SpaceVim/' | |
1 0.000001 let g:backup_dir = g:data_dir . 'backup' | |
1 0.000001 let g:swap_dir = g:data_dir . 'swap' | |
1 0.000001 let g:undo_dir = g:data_dir . 'undofile' | |
1 0.000001 let g:conf_dir = g:data_dir . 'conf' | |
1 0.000006 if finddir(g:data_dir) ==# '' | |
silent call mkdir(g:data_dir, 'p', 0700) | |
1 0.000000 endif | |
1 0.000003 if finddir(g:backup_dir) ==# '' | |
silent call mkdir(g:backup_dir, 'p', 0700) | |
1 0.000000 endif | |
1 0.000003 if finddir(g:swap_dir) ==# '' | |
silent call mkdir(g:swap_dir, 'p', 0700) | |
1 0.000000 endif | |
1 0.000003 if finddir(g:undo_dir) ==# '' | |
silent call mkdir(g:undo_dir, 'p', 0700) | |
1 0.000000 endif | |
1 0.000003 if finddir(g:conf_dir) ==# '' | |
silent call mkdir(g:conf_dir, 'p', 0700) | |
1 0.000000 endif | |
1 0.000003 execute 'set undodir='.g:undo_dir | |
1 0.000002 execute 'set backupdir='.g:backup_dir | |
1 0.000002 execute 'set directory='.g:swap_dir | |
1 0.000001 unlet g:data_dir | |
1 0.000000 unlet g:backup_dir | |
1 0.000000 unlet g:swap_dir | |
1 0.000000 unlet g:undo_dir | |
1 0.000000 unlet g:conf_dir | |
" }}} | |
1 0.000001 set nowritebackup | |
1 0.000001 set matchtime=0 | |
1 0.000001 set ruler | |
1 0.000001 set showmatch | |
1 0.000001 set showmode | |
"menuone: show the pupmenu when only one match | |
" disable preview scratch window, | |
1 0.000003 set completeopt=menu,menuone,longest | |
" h: 'complete' | |
1 0.000001 set complete=.,w,b,u,t | |
" limit completion menu height | |
1 0.000001 set pumheight=15 | |
1 0.000000 set scrolloff=1 | |
1 0.000000 set sidescrolloff=5 | |
1 0.000051 set display+=lastline | |
1 0.000001 set incsearch | |
1 0.000000 set hlsearch | |
1 0.000000 set wildignorecase | |
1 0.000021 set mouse=nv | |
1 0.000002 set hidden | |
1 0.000001 set ttimeout | |
1 0.000001 set ttimeoutlen=50 | |
1 0.000003 if has('patch-7.4.314') | |
" don't give ins-completion-menu messages. | |
1 0.000002 set shortmess+=c | |
1 0.000000 endif | |
1 0.000001 set shortmess+=s | |
" Do not wrap lone lines | |
1 0.000001 set nowrap | |
1 0.000002 set foldtext=SpaceVim#default#Customfoldtext() | |
FUNCTION vital#_vimfiler#Data#List#import() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vital/_vimfiler/Data/List.vim line 5 | |
Called 1 time | |
Total time: 0.000069 | |
Self time: 0.000069 | |
count total (s) self (s) | |
1 0.000069 return map({'combinations': '', 'and': '', 'sort_by': '', 'foldr1': '', 'sort': '', 'flatten': '', 'has_index': '', 'find_indices': '', 'any': '', 'unshift': '', 'span': '', 'pop': '', 'binary_search': '', 'uniq_by': '', 'or': '', 'all': '', 'zip': '', 'find_last_index': '', 'find': '', 'partition': '', 'map_accum': '', 'permutations': '', 'break': '', 'max_by': '', 'foldl': '', 'foldr': '', 'find_index': '', 'group_by': '', 'take_while': '', 'conj': '', 'push': '', 'char_range': '', 'cons': '', 'foldl1': '', 'intersect': '', 'concat': '', 'shift': '', 'clear': '', 'has_common_items': '', 'product': '', 'zip_fill': '', 'uniq': '', 'has': '', 'min_by': '', 'with_index': ''}, 'function("s:" . v:key)') | |
FUNCTION SpaceVim#layers#ui#config() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/ui.vim line 29 | |
Called 1 time | |
Total time: 0.001780 | |
Self time: 0.000280 | |
count total (s) self (s) | |
1 0.000001 if g:spacevim_colorscheme_bg ==# 'dark' | |
1 0.000006 let g:indentLine_color_term = get(g:, 'indentLine_color_term', 239) | |
1 0.000005 let g:indentLine_color_gui = get(g:, 'indentLine_color_gui', '#504945') | |
else | |
let g:indentLine_color_gui = get(g:, 'indentLine_color_gui', '#d5c4a1') | |
1 0.000000 endif | |
1 0.000004 let g:indentLine_char = get(g:, 'indentLine_char', '┊') | |
1 0.000003 let g:indentLine_concealcursor = 'niv' | |
1 0.000003 let g:indentLine_conceallevel = 2 | |
1 0.000003 let g:indentLine_fileTypeExclude = ['help', 'man', 'startify', 'vimfiler', 'json'] | |
1 0.000004 let g:better_whitespace_filetypes_blacklist = ['diff', 'gitcommit', 'unite', 'qf', 'help', 'markdown', 'leaderGuide', 'startify' ] | |
1 0.000002 let g:signify_disable_by_default = 0 | |
1 0.000002 let g:signify_line_highlight = 0 | |
1 0.000001 if s:enable_sidebar | |
noremap <silent> <F2> :call SpaceVim#plugins#sidebar#toggle()<CR> | |
1 0.000000 else | |
1 0.000010 noremap <silent> <F2> :TagbarToggle<CR> | |
1 0.000000 endif | |
1 0.000001 if !empty(g:spacevim_windows_smartclose) | |
1 0.000077 0.000007 call SpaceVim#mapping#def('nnoremap <silent>', g:spacevim_windows_smartclose, ':<C-u>call SpaceVim#mapping#SmartClose()<cr>', 'smart-close-windows', 'call SpaceVim#mapping#SmartClose()') | |
1 0.000000 endif | |
" Ui toggles | |
1 0.000092 0.000011 call SpaceVim#mapping#space#def('nnoremap', ['t', '8'], 'call call(' . string(s:_function('s:toggle_fill_column')) . ', [])', 'highlight-long-lines', 1) | |
1 0.000085 0.000011 call SpaceVim#mapping#space#def('nnoremap', ['t', 'b'], 'call call(' . string(s:_function('s:toggle_background')) . ', [])', 'toggle background', 1) | |
1 0.000085 0.000010 call SpaceVim#mapping#space#def('nnoremap', ['w', '.'], 'call call(' . string(s:_function('s:win_resize_transient_state')) . ', [])', 'windows-transient-state', 1) | |
1 0.000081 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['t', 'c'], 'call call(' . string(s:_function('s:toggle_conceallevel')) . ', [])', 'toggle conceallevel', 1) | |
1 0.000074 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['t', 't'], 'call SpaceVim#plugins#tabmanager#open()', 'open-tabs-manager', 1) | |
1 0.000081 0.000010 call SpaceVim#mapping#space#def('nnoremap', ['t', 'f'], 'call call(' . string(s:_function('s:toggle_colorcolumn')) . ', [])', 'fill-column-indicator', 1) | |
1 0.000082 0.000010 call SpaceVim#mapping#space#def('nnoremap', ['t', 'h', 'h'], 'call call(' . string(s:_function('s:toggle_cursorline')) . ', [])', ['toggle-highlight-current-line', [ 'SPC t h h is to toggle the highlighting of cursorline' ] ], 1) | |
1 0.000083 0.000011 call SpaceVim#mapping#space#def('nnoremap', ['t', 'h', 'i'], 'call call(' . string(s:_function('s:toggle_indentline')) . ', [])', ['toggle-highlight-indentation-levels', [ 'SPC t h i is to running :IndentLinesToggle which is definded in indentLine' ] ], 1) | |
1 0.000074 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['t', 'h', 'c'], 'set cursorcolumn!', 'toggle-highlight-current-column', 1) | |
1 0.000082 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['t', 'h', 's'], 'call call(' . string(s:_function('s:toggle_syntax_hi')) . ', [])', 'toggle-syntax-highlighting', 1) | |
1 0.000076 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['T', 'F'], '<F11>', 'fullscreen-frame', 0) | |
1 0.000079 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['T', 'm'], 'call call(' . string(s:_function('s:toggle_menu_bar')) . ', [])', 'toggle-menu-bar', 1) | |
1 0.000121 0.000038 call SpaceVim#mapping#space#def('nnoremap', ['T', 'f'], 'call call(' . string(s:_function('s:toggle_win_fringe')) . ', [])', 'toggle-win-fringe', 1) | |
1 0.000081 0.000010 call SpaceVim#mapping#space#def('nnoremap', ['T', 't'], 'call call(' . string(s:_function('s:toggle_tool_bar')) . ', [])', 'toggle-tool-bar', 1) | |
1 0.000079 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['T', '~'], 'call call(' . string(s:_function('s:toggle_end_of_buffer')) . ', [])', 'display ~ in the fringe on empty lines', 1) | |
1 0.000078 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['t', 'S'], 'call call(' . string(s:_function('s:toggle_spell_check')) . ', [])', 'toggle-spell-checker', 1) | |
1 0.000079 0.000010 call SpaceVim#mapping#space#def('nnoremap', ['t', 'p'], 'call call(' . string(s:_function('s:toggle_paste')) . ', [])', 'toggle-paste-mode', 1) | |
1 0.000070 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['t', 'l'], 'setlocal list!', 'toggle-hidden-listchars', 1) | |
1 0.000070 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['t', 'W'], 'setlocal wrap!', 'toggle-wrap-line', 1) | |
1 0.000081 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['t', 'w'], 'call call(' . string(s:_function('s:toggle_whitespace')) . ', [])', 'toggle-highlight-tail-spaces', 1) | |
" download gvimfullscreen.dll from github, copy gvimfullscreen.dll to | |
" the directory that has gvim.exe | |
1 0.000003 if has('nvim') | |
1 0.000010 nnoremap <silent> <F11> :call <SID>toggle_full_screen()<Cr> | |
else | |
nnoremap <silent> <F11> :call libcallnr("gvimfullscreen.dll", "ToggleFullScreen", 0)<cr> | |
1 0.000000 endif | |
FUNCTION neomake#utils#ReverseSynIDattr() | |
Defined: ~/.SpaceVim/bundle/neomake/autoload/neomake/utils.vim line 352 | |
Called 12 times | |
Total time: 0.000056 | |
Self time: 0.000056 | |
count total (s) self (s) | |
12 0.000010 if a:attr ==# 'fg' | |
return 'bg' | |
12 0.000008 elseif a:attr ==# 'bg' | |
2 0.000001 return 'fg' | |
10 0.000005 elseif a:attr ==# 'fg#' | |
return 'bg#' | |
10 0.000005 elseif a:attr ==# 'bg#' | |
2 0.000001 return 'fg#' | |
8 0.000002 endif | |
8 0.000005 return a:attr | |
FUNCTION unite#custom#source() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/custom.vim line 24 | |
Called 2 times | |
Total time: 0.000067 | |
Self time: 0.000013 | |
count total (s) self (s) | |
2 0.000066 0.000012 return s:custom_base('sources', a:source_name, a:option_name, a:value) | |
FUNCTION unite#sources#file_list#define() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/sources/file_list.vim line 13 | |
Called 1 time | |
Total time: 0.000001 | |
Self time: 0.000001 | |
count total (s) self (s) | |
1 0.000001 return s:source | |
FUNCTION tabular#ElementFormatPattern() | |
Defined: ~/.SpaceVim/bundle/tabular/autoload/tabular.vim line 199 | |
Called 6 times | |
Total time: 0.000006 | |
Self time: 0.000006 | |
count total (s) self (s) | |
6 0.000005 return s:formatelempat | |
FUNCTION unite#helper#get_source_names() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/helper.vim line 256 | |
Called 12 times | |
Total time: 0.000085 | |
Self time: 0.000085 | |
count total (s) self (s) | |
12 0.000081 return map(map(copy(a:sources), "type(v:val) == type([]) ? v:val[0] : v:val"), "type(v:val) == type('') ? v:val : v:val.name") | |
FUNCTION SpaceVim#plugins#windowsmanager#MarkBaseWin() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/plugins/windowsmanager.vim line 74 | |
Called 1 time | |
Total time: 0.000010 | |
Self time: 0.000010 | |
count total (s) self (s) | |
1 0.000001 if s:unmarked | |
let win_data = s:restore_windows_stack[-1] | |
if win_data.same_w | |
" split | |
if win_data.oldwinid == winnr() | |
let win_data.open_command = 'topleft split ' . win_data.bufname | |
else | |
let win_data.open_command = 'rightbelow split ' . win_data.bufname | |
endif | |
else | |
" vsplit | |
if win_data.oldwinid == winnr() | |
let win_data.open_command = 'topleft vsplit ' . win_data.bufname | |
else | |
let win_data.open_command = 'rightbelow vsplit ' . win_data.bufname | |
endif | |
endif | |
let s:unmarked = 0 | |
1 0.000000 endif | |
FUNCTION unite#init#_current_unite() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/init.vim line 242 | |
Called 4 times | |
Total time: 0.007183 | |
Self time: 0.000721 | |
count total (s) self (s) | |
4 0.000004 let context = a:context | |
" Overwrite previous unite buffer. | |
4 0.000005 if !context.create && !context.temporary && context.unite__is_interactive | |
let winnr = unite#helper#get_unite_winnr(context.buffer_name) | |
if winnr > 0 | |
execute winnr 'wincmd w' | |
endif | |
4 0.000001 endif | |
" The current buffer is initialized. | |
4 0.000003 let buffer_name = '[unite] - ' | |
4 0.000006 let buffer_name .= context.buffer_name | |
4 0.000005 let winnr = winnr() | |
4 0.000009 let win_rest_cmd = winrestcmd() | |
" Check sources. | |
4 0.005316 0.000022 let sources = unite#init#_loaded_sources(a:sources, a:context) | |
" Set parameters. | |
4 0.000003 let unite = {} | |
4 0.000004 let unite.winnr = winnr | |
4 0.000005 let unite.winmax = winnr('$') | |
4 0.000007 let unite.win_rest_cmd = (!context.unite__direct_switch) ? win_rest_cmd : '' | |
4 0.000003 let unite.context = context | |
4 0.000003 let unite.current_candidates = [] | |
4 0.000003 let unite.sources = sources | |
4 0.000054 0.000027 let unite.source_names = unite#helper#get_source_names(sources) | |
4 0.000007 let unite.buffer_name = (context.buffer_name == '') ? 'default' : context.buffer_name | |
4 0.000007 let unite.profile_name = (context.profile_name != '') ? context.profile_name : unite.buffer_name | |
4 0.000013 let unite.prev_bufnr = (exists('b:unite') && !context.split) ? b:unite.prev_bufnr : bufnr('%') | |
4 0.000010 let unite.prev_pos = exists('b:unite') ? b:unite.prev_pos : getpos('.') | |
4 0.000012 let unite.alternate_bufnr = exists('b:unite') ? b:unite.alternate_bufnr : bufnr('#') | |
4 0.000004 let unite.prev_winnr = winnr() | |
4 0.000010 let unite.prev_winsaveview = winsaveview() | |
4 0.000004 let unite.prev_line = 0 | |
4 0.000005 let unite.update_time_save = &updatetime | |
4 0.000757 0.000086 let unite.statusline = unite#view#_get_status_string(unite) | |
4 0.000063 let unite.original_context = deepcopy(a:context) | |
" Create new buffer name. | |
4 0.000101 0.000034 let postfix = unite#helper#get_postfix( buffer_name, unite.context.create) | |
4 0.000005 let unite.buffer_name .= postfix | |
4 0.000006 let unite.real_buffer_name = buffer_name . postfix | |
4 0.000004 let unite.input = context.input | |
4 0.000003 let unite.last_input = context.input | |
4 0.000003 let unite.last_path = context.path | |
4 0.000006 let unite.sidescrolloff_save = &sidescrolloff | |
4 0.000003 let unite.init_prompt_linenr = 1 | |
4 0.000009 let unite.prompt_linenr = (!context.prompt_visible && context.input == '' && !context.start_insert) ? 0 : unite.init_prompt_linenr | |
4 0.000014 let unite.is_async = len(filter(copy(sources), 'v:val.unite__context.is_async')) > 0 | |
4 0.000005 let unite.access_time = localtime() | |
4 0.000003 let unite.is_finalized = 0 | |
4 0.000003 let unite.previewed_buffer_list = [] | |
4 0.000003 let unite.current_matchers = [] | |
4 0.000003 let unite.current_sorters = [] | |
4 0.000003 let unite.current_converters = [] | |
4 0.000004 let unite.preview_candidate = {} | |
4 0.000003 let unite.highlight_candidate = {} | |
4 0.000003 let unite.max_source_name = 0 | |
4 0.000003 let unite.candidates_pos = 0 | |
4 0.000003 let unite.candidates = [] | |
4 0.000003 let unite.candidates_len = 0 | |
4 0.000003 let unite.candidate_cursor = -1 | |
4 0.000003 let unite.max_source_candidates = 0 | |
4 0.000003 let unite.is_multi_line = 0 | |
4 0.000044 0.000022 let unite.args = unite#helper#get_source_args(a:sources) | |
4 0.000005 let unite.msgs = [] | |
4 0.000006 let unite.err_msgs = [] | |
4 0.000008 let unite.redraw_hold_candidates = g:unite_redraw_hold_candidates | |
4 0.000006 let unite.disabled_max_candidates = 0 | |
4 0.000008 let unite.cursor_line_time = reltime() | |
4 0.000005 let unite.sign_offset = 0 | |
4 0.000005 let unite.is_initialized = 0 | |
4 0.000022 if has('nvim') && exists(':UniteInitializePython') | |
UniteInitializePython | |
4 0.000002 endif | |
4 0.000002 if context.here | |
let context.winheight = winheight(0) - winline() + 1 | |
if context.winheight < 5 | |
let context.winheight = 5 | |
endif | |
4 0.000001 endif | |
" Preview windows check. | |
4 0.000032 let unite.has_preview_window = exists('b:unite') ? b:unite.has_preview_window : len(filter(range(1, winnr('$')), 'getwinvar(v:val, "&previewwindow")')) > 0 | |
4 0.000067 0.000026 call unite#set_current_unite(unite) | |
4 0.000146 0.000018 call unite#set_context(context) | |
4 0.000003 if !context.unite__is_complete | |
4 0.000231 0.000017 call unite#helper#call_hook(sources, 'on_init') | |
4 0.000001 endif | |
4 0.000004 let unite.is_initialized = 1 | |
4 0.000002 return unite | |
FUNCTION <SNR>184_init_profile() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/custom.vim line 35 | |
Called 1 time | |
Total time: 0.000001 | |
Self time: 0.000001 | |
count total (s) self (s) | |
1 0.000001 return { 'context' : {}, } | |
FUNCTION <SNR>106_LoadIndent() | |
Defined: /usr/share/nvim/runtime/indent.vim line 13 | |
Called 3 times | |
Total time: 0.000366 | |
Self time: 0.000366 | |
count total (s) self (s) | |
3 0.000005 if exists("b:undo_indent") | |
exe b:undo_indent | |
unlet! b:undo_indent b:did_indent | |
3 0.000001 endif | |
3 0.000006 let s = expand("<amatch>") | |
3 0.000002 if s != "" | |
3 0.000003 if exists("b:did_indent") | |
unlet b:did_indent | |
3 0.000001 endif | |
" When there is a dot it is used to separate filetype names. Thus for | |
" "aaa.bbb" load "indent/aaa.vim" and then "indent/bbb.vim". | |
6 0.000011 for name in split(s, '\.') | |
3 0.000319 exe 'runtime! indent/' . name . '.vim' | |
6 0.000003 endfor | |
3 0.000001 endif | |
FUNCTION unite#handlers#_save_updatetime() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/handlers.vim line 289 | |
Called 2 times | |
Total time: 0.000041 | |
Self time: 0.000019 | |
count total (s) self (s) | |
2 0.000032 0.000009 let unite = unite#get_current_unite() | |
2 0.000005 if unite.is_async && unite.context.update_time > 0 && &updatetime > unite.context.update_time && !unite#util#has_timers() | |
let unite.update_time_save = &updatetime | |
let &updatetime = unite.context.update_time | |
2 0.000000 endif | |
FUNCTION unite#custom#get_context() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/custom.vim line 113 | |
Called 8 times | |
Total time: 0.000429 | |
Self time: 0.000282 | |
count total (s) self (s) | |
8 0.000206 0.000058 let context = copy(unite#custom#get_profile(a:profile_name, 'context')) | |
16 0.000189 for option in map(filter(items(context), "stridx(v:val[0], 'no_') == 0 && v:val[1]"), 'v:val[0]') | |
8 0.000013 let context[option[3:]] = 0 | |
16 0.000007 endfor | |
8 0.000005 return context | |
FUNCTION <SNR>224_parse_args() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup/pos.vim line 112 | |
Called 8 times | |
Total time: 0.000106 | |
Self time: 0.000063 | |
count total (s) self (s) | |
" | |
" The arguments should be in one of the following forms (when unpacked): | |
" | |
" [lnum, cnum] | |
" [bufnum, lnum, cnum, ...] | |
" {'lnum' : lnum, 'cnum' : cnum} | |
" | |
8 0.000008 if len(a:args) > 1 | |
4 0.000008 return s:parse_args([a:args]) | |
4 0.000004 elseif len(a:args) == 1 | |
4 0.000006 if type(a:args[0]) == type({}) | |
return [get(a:args[0], 'lnum'), get(a:args[0], 'cnum')] | |
4 0.000001 else | |
4 0.000003 if len(a:args[0]) == 2 | |
return a:args[0] | |
4 0.000001 else | |
4 0.000004 return a:args[0][1:] | |
endif | |
endif | |
else | |
return a:args | |
endif | |
FUNCTION <SNR>181_get_lists() | |
Defined: ~/.SpaceVim/bundle/vim-startify/autoload/startify.vim line 445 | |
Called 1 time | |
Total time: 0.000072 | |
Self time: 0.000072 | |
count total (s) self (s) | |
1 0.000001 if exists('g:startify_lists') | |
return g:startify_lists | |
1 0.000002 elseif exists('g:startify_list_order') | |
" Convert old g:startify_list_order format to newer g:startify_lists format. | |
1 0.000001 let lists = [] | |
9 0.000005 for item in g:startify_list_order | |
8 0.000009 if type(item) == type([]) | |
4 0.000003 let header = item | |
4 0.000001 else | |
4 0.000003 if exists('header') | |
4 0.000007 let lists += [{ 'type': item, 'header': header }] | |
4 0.000002 unlet header | |
else | |
let lists += [{ 'type': item }] | |
4 0.000001 endif | |
8 0.000002 endif | |
8 0.000004 unlet item | |
9 0.000003 endfor | |
1 0.000001 return lists | |
else | |
return [ { 'header': [s:padding_left .'MRU'], 'type': 'files' }, { 'header': [s:padding_left .'MRU '. getcwd()], 'type': 'dir' }, { 'header': [s:padding_left .'Sessions'], 'type': 'sessions' }, { 'header': [s:padding_left .'Bookmarks'], 'type': 'bookmarks' }, { 'header': [s:padding_left .'Commands'], 'type': 'commands' }, ] | |
endif | |
FUNCTION <SNR>60_create_cache() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/mapping/guide.vim line 55 | |
Called 1 time | |
Total time: 0.000002 | |
Self time: 0.000002 | |
count total (s) self (s) | |
1 0.000001 let s:desc_lookup = {} | |
1 0.000001 let s:cached_dicts = {} | |
FUNCTION <SNR>161_VimEnter() | |
Defined: /usr/share/nvim/runtime/plugin/netrwPlugin.vim line 152 | |
Called 1 time | |
Total time: 0.000097 | |
Self time: 0.000056 | |
count total (s) self (s) | |
" call Dfunc("s:VimEnter(dirname<".a:dirname.">) expand(%)<".expand("%").">") | |
1 0.000002 let curwin = winnr() | |
1 0.000001 let s:vimentered = 1 | |
1 0.000088 0.000047 windo call s:LocalBrowse(expand("%:p")) | |
1 0.000005 exe curwin."wincmd w" | |
" call Dret("s:VimEnter") | |
FUNCTION SpaceVim#mapping#guide#register_prefix_descriptions() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/mapping/guide.vim line 42 | |
Called 6 times | |
Total time: 0.000065 | |
Self time: 0.000062 | |
count total (s) self (s) | |
6 0.000010 let key = a:key ==? '<Space>' ? ' ' : a:key | |
6 0.000007 if !exists('s:desc_lookup') | |
1 0.000007 0.000005 call s:create_cache() | |
6 0.000002 endif | |
6 0.000006 if strlen(key) == 0 | |
let s:desc_lookup['top'] = a:dictname | |
return | |
6 0.000001 endif | |
6 0.000006 if !has_key(s:desc_lookup, key) | |
6 0.000008 let s:desc_lookup[key] = a:dictname | |
6 0.000002 endif | |
FUNCTION dein#util#_globlist() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/util.vim line 595 | |
Called 1 time | |
Total time: 0.000219 | |
Self time: 0.000219 | |
count total (s) self (s) | |
1 0.000218 return split(glob(a:path), '\n') | |
FUNCTION vimfiler#view#_get_max_len() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/view.vim line 303 | |
Called 5 times | |
Total time: 0.000140 | |
Self time: 0.000140 | |
count total (s) self (s) | |
5 0.000007 let columns = (b:vimfiler.context.simple) ? [] : b:vimfiler.columns | |
5 0.000004 for column in columns | |
let column.vimfiler__length = column.length( a:files, b:vimfiler.context) | |
5 0.000002 endfor | |
5 0.000009 let columns = filter(columns, 'v:val.vimfiler__length > 0') | |
" Calc padding width. | |
5 0.000003 let padding = 0 | |
5 0.000003 for column in columns | |
let padding += column.vimfiler__length + 1 | |
5 0.000002 endfor | |
5 0.000010 if &l:number || (exists('&relativenumber') && &l:relativenumber) | |
let padding += max([&l:numberwidth, len(line('$') + len(a:files))+1]) | |
5 0.000002 endif | |
5 0.000005 let padding += &l:foldcolumn | |
5 0.000009 if has('signs') | |
" Delete signs. | |
5 0.000020 silent execute 'sign unplace buffer='.bufnr('%') | |
5 0.000001 endif | |
5 0.000013 let max_len = max([winwidth(0) - padding, 10]) | |
5 0.000005 if b:vimfiler.context.fnamewidth > 0 | |
let max_len = min([max_len, b:vimfiler.context.fnamewidth]) | |
5 0.000001 endif | |
5 0.000003 return max_len | |
FUNCTION <SNR>171_SetConcealOption() | |
Defined: ~/.SpaceVim/bundle/indentLine/after/plugin/indentLine.vim line 96 | |
Called 1 time | |
Total time: 0.000017 | |
Self time: 0.000017 | |
count total (s) self (s) | |
1 0.000001 if !g:indentLine_setConceal | |
return | |
1 0.000000 endif | |
1 0.000002 if !(exists("b:indentLine_ConcealOptionSet") && b:indentLine_ConcealOptionSet) | |
1 0.000001 let b:indentLine_ConcealOptionSet = 1 | |
1 0.000002 let b:indentLine_original_concealcursor = &l:concealcursor | |
1 0.000001 let b:indentLine_original_conceallevel = &l:conceallevel | |
1 0.000005 let &l:concealcursor = exists("g:indentLine_concealcursor") ? g:indentLine_concealcursor : "inc" | |
1 0.000003 let &l:conceallevel = exists("g:indentLine_conceallevel") ? g:indentLine_conceallevel : "2" | |
1 0.000000 endif | |
FUNCTION <SNR>14_circled_letter() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/messletters.vim line 113 | |
Called 11 times | |
Total time: 0.000104 | |
Self time: 0.000104 | |
count total (s) self (s) | |
" http://www.unicode.org/charts/beta/nameslist/n_2460.html | |
11 0.000044 if index(range(1, 26), char2nr(a:letter) - 64) != -1 | |
2 0.000003 return nr2char(9397 + char2nr(a:letter) - 64) | |
9 0.000026 elseif index(range(1, 26), char2nr(a:letter) - 96) != -1 | |
9 0.000012 return nr2char(9423 + char2nr(a:letter) - 96) | |
else | |
return '' | |
endif | |
FUNCTION <SNR>181_compare_by_index() | |
Defined: ~/.SpaceVim/bundle/vim-startify/autoload/startify.vim line 873 | |
Called 38 times | |
Total time: 0.000037 | |
Self time: 0.000037 | |
count total (s) self (s) | |
38 0.000031 return a:foo.index - a:bar.index | |
FUNCTION vital#_vimfiler#Data#Dict#import() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vital/_vimfiler/Data/Dict.vim line 5 | |
Called 1 time | |
Total time: 0.000018 | |
Self time: 0.000018 | |
count total (s) self (s) | |
1 0.000018 return map({'pick': '', 'clear': '', 'max_by': '', 'foldl': '', 'swap': '', 'omit': '', 'min_by': '', 'foldr': '', 'make_index': '', 'make': ''}, 'function("s:" . v:key)') | |
FUNCTION <SNR>65_execute() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/util.vim line 738 | |
Called 10 times | |
Total time: 0.155974 | |
Self time: 0.000097 | |
count total (s) self (s) | |
10 0.000013 if exists('*execute') | |
10 0.155956 0.000079 return execute(split(a:expr, '\n'), '') | |
endif | |
let dummy = '_dein_dummy_' . substitute(reltimestr(reltime()), '\W', '_', 'g') | |
execute 'function! '.dummy."() abort\n" . a:expr . "\nendfunction" | |
call {dummy}() | |
execute 'delfunction' dummy | |
FUNCTION unite#sources#alias#define() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/sources/alias.vim line 13 | |
Called 1 time | |
Total time: 0.000037 | |
Self time: 0.000005 | |
count total (s) self (s) | |
1 0.000036 0.000004 return s:make_aliases() | |
FUNCTION SpaceVim#api#data#toml#get() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/data/toml.vim line 345 | |
Called 1 time | |
Total time: 0.000007 | |
Self time: 0.000007 | |
count total (s) self (s) | |
1 0.000007 return deepcopy(s:self) | |
FUNCTION dein#end() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein.vim line 100 | |
Called 1 time | |
Total time: 0.000474 | |
Self time: 0.000007 | |
count total (s) self (s) | |
1 0.000474 0.000007 return dein#util#_end() | |
FUNCTION unite#util#expand() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/util.vim line 315 | |
Called 10 times | |
Total time: 0.000173 | |
Self time: 0.000118 | |
count total (s) self (s) | |
10 0.000170 0.000115 return s:get_prelude().substitute_path_separator( (a:path =~ '^\~') ? fnamemodify(a:path, ':p') : (a:path =~ '^\$\h\w*') ? substitute(a:path, '^\$\h\w*', '\=eval(submatch(0))', '') : a:path) | |
FUNCTION <SNR>171_InitColor() | |
Defined: ~/.SpaceVim/bundle/indentLine/after/plugin/indentLine.vim line 35 | |
Called 4 times | |
Total time: 0.000282 | |
Self time: 0.000282 | |
count total (s) self (s) | |
4 0.000004 if !g:indentLine_setColors | |
return | |
4 0.000001 endif | |
4 0.000005 let default_term_bg = "NONE" | |
4 0.000003 let default_gui_bg = "NONE" | |
4 0.000005 if &background ==# "light" | |
let default_term_fg = 249 | |
let default_gui_fg = "Grey70" | |
4 0.000001 else | |
4 0.000003 let default_term_fg = 239 | |
4 0.000003 let default_gui_fg = "Grey30" | |
4 0.000001 endif | |
4 0.000004 if g:indentLine_defaultGroup != "" | |
let default_id = synIDtrans(hlID(g:indentLine_defaultGroup)) | |
let default_term_fg = synIDattr(default_id, "fg", "cterm") == "" ? default_term_fg : synIDattr(default_id, "fg", "cterm") | |
let default_term_bg = synIDattr(default_id, "bg", "cterm") == "" ? default_term_bg : synIDattr(default_id, "bg", "cterm") | |
let default_gui_fg = synIDattr(default_id, "fg", "gui") == "" ? default_gui_fg : synIDattr(default_id, "fg", "gui") | |
let default_gui_bg = synIDattr(default_id, "bg", "gui") == "" ? default_gui_bg : synIDattr(default_id, "bg", "gui") | |
4 0.000001 endif | |
4 0.000006 if !exists("g:indentLine_color_term") | |
let term_color = default_term_fg | |
4 0.000001 else | |
4 0.000004 let term_color = g:indentLine_color_term | |
4 0.000001 endif | |
4 0.000005 if !exists("g:indentLine_bgcolor_term") | |
4 0.000004 let term_bgcolor = default_term_bg | |
else | |
let term_bgcolor = g:indentLine_bgcolor_term | |
4 0.000001 endif | |
4 0.000005 if !exists("g:indentLine_color_gui") | |
let gui_color = default_gui_fg | |
4 0.000001 else | |
4 0.000004 let gui_color = g:indentLine_color_gui | |
4 0.000001 endif | |
4 0.000005 if !exists("g:indentLine_bgcolor_gui") | |
4 0.000004 let gui_bgcolor = default_gui_bg | |
else | |
let gui_bgcolor = g:indentLine_bgcolor_gui | |
4 0.000001 endif | |
4 0.000080 execute "highlight Conceal cterm=NONE ctermfg=" . term_color . " ctermbg=" . term_bgcolor | |
4 0.000033 execute "highlight Conceal gui=NONE guifg=" . gui_color . " guibg=" . gui_bgcolor | |
4 0.000004 if &term ==# "linux" | |
if &background ==# "light" | |
let tty_color = exists("g:indentLine_color_tty_light") ? g:indentLine_color_tty_light : 4 | |
else | |
let tty_color = exists("g:indentLine_color_tty_dark") ? g:indentLine_color_tty_dark : 2 | |
endif | |
execute "highlight Conceal cterm=bold ctermfg=" . tty_color . " ctermbg=NONE" | |
4 0.000001 endif | |
FUNCTION cmp#init() | |
Defined: ~/.SpaceVim/bundle/CompleteParameter.vim/autoload/cmp.vim line 15 | |
Called 1 time | |
Total time: 0.000556 | |
Self time: 0.000300 | |
count total (s) self (s) | |
1 0.000542 0.000286 runtime! cm_parser/*.vim | |
" ultisnips will remove all smaps, this will without this plugin | |
1 0.000005 let g:UltiSnipsMappingsToIgnore = get(g:, 'UltiSnipsMappingsToIgnore', []) + ["complete_parameter"] | |
" neosnippet will remove all smaps | |
1 0.000001 let g:neosnippet#disable_select_mode_mappings = 0 | |
" 4 error | |
" 2 error + debug | |
" 1 erro + debug + trace | |
1 0.000002 let g:complete_parameter_log_level = get(g:, 'complete_parameter_log_level', 5) | |
1 0.000002 let g:complete_parameter_use_ultisnips_mappings = get(g:, 'complete_parameter_use_ultisnips_mappings', 0) | |
FUNCTION <SNR>178_Init() | |
Defined: ~/.SpaceVim/bundle/tagbar/autoload/tagbar.vim line 91 | |
Called 1 time | |
Total time: 0.140662 | |
Self time: 0.000011 | |
count total (s) self (s) | |
1 0.000001 if s:checked_ctags == 2 && a:silent | |
return 0 | |
1 0.000001 elseif s:checked_ctags != 1 | |
1 0.140658 0.000007 if !s:CheckForExCtags(a:silent) | |
1 0.000000 return 0 | |
endif | |
endif | |
if !s:type_init_done | |
call s:InitTypes() | |
endif | |
if !s:autocommands_done | |
call s:CreateAutocommands() | |
call s:AutoUpdate(fnamemodify(expand('%'), ':p'), 0) | |
endif | |
let s:init_done = 1 | |
return 1 | |
FUNCTION EasyMotion#highlight#InitHL() | |
Defined: ~/.SpaceVim/bundle/vim-easymotion/autoload/EasyMotion/highlight.vim line 99 | |
Called 8 times | |
Total time: 0.000427 | |
Self time: 0.000427 | |
count total (s) self (s) | |
8 0.000014 let group_default = a:group . 'Default' | |
" Prepare highlighting variables | |
8 0.000026 let guihl = printf('guibg=%s guifg=%s gui=%s', a:colors.gui[0], a:colors.gui[1], a:colors.gui[2]) | |
8 0.000037 let ctermhl = &t_Co == 256 ? printf('ctermbg=%s ctermfg=%s cterm=%s', a:colors.cterm256[0], a:colors.cterm256[1], a:colors.cterm256[2]) : printf('ctermbg=%s ctermfg=%s cterm=%s', a:colors.cterm[0], a:colors.cterm[1], a:colors.cterm[2]) | |
" Create default highlighting group | |
8 0.000195 execute printf('hi default %s %s %s', group_default, guihl, ctermhl) | |
" Check if the hl group exists | |
8 0.000045 if hlexists(a:group) | |
2 0.000022 redir => hlstatus | exec 'silent hi ' . a:group | redir END | |
" Return if the group isn't cleared | |
2 0.000005 if hlstatus !~ 'cleared' | |
2 0.000001 return | |
endif | |
6 0.000002 endif | |
" No colors are defined for this group, link to defaults | |
6 0.000038 execute printf('hi default link %s %s', a:group, group_default) | |
FUNCTION <SNR>67_source_events() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/autoload.vim line 117 | |
Called 13 times | |
Total time: 0.000023 | |
Self time: 0.000023 | |
count total (s) self (s) | |
13 0.000013 if empty(a:plugins) | |
13 0.000006 return | |
endif | |
let prev_autocmd = s:CMP.execute('autocmd ' . a:event) | |
call dein#autoload#_source(a:plugins) | |
let new_autocmd = s:CMP.execute('autocmd ' . a:event) | |
if a:event ==# 'InsertCharPre' | |
" Queue this key again | |
call feedkeys(v:char) | |
let v:char = '' | |
else | |
if exists('#BufReadCmd') && a:event ==# 'BufNew' | |
" For BufReadCmd plugins | |
silent doautocmd <nomodeline> BufReadCmd | |
endif | |
if exists('#' . a:event) && prev_autocmd !=# new_autocmd | |
execute 'doautocmd <nomodeline>' a:event | |
elseif exists('#User#' . a:event) | |
execute 'doautocmd <nomodeline> User' a:event | |
endif | |
endif | |
FUNCTION remote#host#RegisterPlugin() | |
Defined: /usr/share/nvim/runtime/autoload/remote/host.vim line 69 | |
Called 3 times | |
Total time: 0.000435 | |
Self time: 0.000249 | |
count total (s) self (s) | |
3 0.000033 0.000016 let plugins = remote#host#PluginsForHost(a:host) | |
3 0.000004 for plugin in plugins | |
if plugin.path == a:path | |
throw 'Plugin "'.a:path.'" is already registered' | |
endif | |
3 0.000002 endfor | |
3 0.000025 0.000013 if has_key(s:hosts, a:host) && remote#host#IsRunning(a:host) | |
" For now we won't allow registration of plugins when the host is already | |
" running. | |
throw 'Host "'.a:host.'" is already running' | |
3 0.000001 endif | |
4 0.000004 for spec in a:specs | |
1 0.000001 let type = spec.type | |
1 0.000001 let name = spec.name | |
1 0.000001 let sync = spec.sync | |
1 0.000001 let opts = spec.opts | |
1 0.000001 let rpc_method = a:path | |
1 0.000001 if type == 'command' | |
let rpc_method .= ':command:'.name | |
call remote#define#CommandOnHost(a:host, rpc_method, sync, name, opts) | |
1 0.000001 elseif type == 'autocmd' | |
" Since multiple handlers can be attached to the same autocmd event by a | |
" single plugin, we need a way to uniquely identify the rpc method to | |
" call. The solution is to append the autocmd pattern to the method | |
" name(This still has a limit: one handler per event/pattern combo, but | |
" there's no need to allow plugins define multiple handlers in that case) | |
let rpc_method .= ':autocmd:'.name.':'.get(opts, 'pattern', '*') | |
call remote#define#AutocmdOnHost(a:host, rpc_method, sync, name, opts) | |
1 0.000001 elseif type == 'function' | |
1 0.000002 let rpc_method .= ':function:'.name | |
1 0.000282 0.000126 call remote#define#FunctionOnHost(a:host, rpc_method, sync, name, opts) | |
else | |
echoerr 'Invalid declaration type: '.type | |
1 0.000000 endif | |
4 0.000003 endfor | |
3 0.000009 call add(plugins, {'path': a:path, 'specs': a:specs}) | |
FUNCTION vimfiler#util#is_cmdwin() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/util.vim line 114 | |
Called 1 time | |
Total time: 0.000002 | |
Self time: 0.000002 | |
count total (s) self (s) | |
1 0.000002 return bufname('%') ==# '[Command Line]' | |
FUNCTION SpaceVim#layers#get() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers.vim line 114 | |
Called 1 time | |
Total time: 0.000003 | |
Self time: 0.000003 | |
count total (s) self (s) | |
1 0.000003 return deepcopy(s:enabled_layers) | |
FUNCTION <SNR>147_motion_map_helper() | |
Defined: ~/.SpaceVim/bundle/vim-easymotion/plugin/EasyMotion.vim line 63 | |
Called 6 times | |
Total time: 0.003911 | |
Self time: 0.003911 | |
count total (s) self (s) | |
90 0.000099 for [name, dict] in items(a:motions) | |
84 0.000095 let mapargs = [] | |
84 0.000056 let xmapargs = [] | |
84 0.000125 if dict.fnc ==# 'S' || dict.fnc ==# 'SL' || dict.fnc ==# 'T' || dict.fnc ==# 'TL' | |
42 0.000055 let mapargs += [dict.cnt, 0, dict.direction] | |
42 0.000053 let xmapargs += [dict.cnt, 1, dict.direction] | |
42 0.000027 elseif dict.fnc ==# 'Search' | |
5 0.000007 let mapargs += [0, dict.direction, dict.respect_direction] | |
5 0.000007 let xmapargs += [1, dict.direction, dict.respect_direction] | |
37 0.000010 else | |
37 0.000040 let mapargs += [0, dict.direction] | |
37 0.000036 let xmapargs += [1, dict.direction] | |
84 0.000020 endif | |
84 0.001481 silent exec 'noremap <silent><Plug>(easymotion-'.name.')' . ' :<C-u>call EasyMotion#' . dict.fnc . '('. join(mapargs, ',') . ')<CR>' | |
84 0.001324 silent exec 'xnoremap <silent><Plug>(easymotion-'.name.')' . ' <Esc>:<C-u>call EasyMotion#' . dict.fnc . '('. join(xmapargs, ',') . ')<CR>' | |
" Example: | |
" noremap <silent><Plug>(easymotion-f2) :<C-u>call EasyMotion#S(2,1,0)<CR> | |
" xnoremap <silent><Plug>(easymotion-f2) <Esc>:<C-u>call EasyMotion#S(2,1,0)<CR> | |
90 0.000033 endfor | |
FUNCTION <SNR>95_is_ignored_dir() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/plugins/projectmanager.vim line 28 | |
Called 1 time | |
Total time: 0.000004 | |
Self time: 0.000004 | |
count total (s) self (s) | |
1 0.000003 return len(filter(copy(s:project_rooter_ignores), 'a:dir =~# v:val')) > 0 | |
FUNCTION vimfiler#helper#_get_cd_path() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/helper.vim line 70 | |
Called 1 time | |
Total time: 0.000085 | |
Self time: 0.000056 | |
count total (s) self (s) | |
1 0.000019 0.000005 let dir = vimfiler#util#substitute_path_separator(a:dir) | |
1 0.000003 if dir =~ '^\h\w*:' | |
" Parse path. | |
let ret = vimfiler#parse_path(dir) | |
let b:vimfiler.source = ret[0] | |
let dir = join(ret[1:], ':') | |
1 0.000001 elseif a:dir !=# b:vimfiler.current_dir | |
let b:vimfiler.source = 'file' | |
1 0.000000 endif | |
1 0.000001 let current_dir = b:vimfiler.current_dir | |
1 0.000001 if dir == '..' | |
let chars = split(current_dir, '\zs') | |
if count(chars, '/') <= 1 | |
if count(chars, ':') < 1 || b:vimfiler.source ==# 'file' | |
" Ignore. | |
return current_dir | |
endif | |
let dir = substitute(current_dir, ':[^:]*$', '', '') | |
else | |
let dir = fnamemodify(substitute(current_dir, '[/\\]$', '', ''), ':h') | |
endif | |
if dir == '//' | |
return current_dir . '/home' | |
endif | |
1 0.000001 elseif dir == '/' | |
" Root. | |
if vimfiler#util#is_windows() && current_dir =~ '^//' | |
" For UNC path. | |
let dir = matchstr(current_dir, '^//[^/]*/[^/]*') | |
else | |
let dir = vimfiler#util#is_windows() ? matchstr(fnamemodify(current_dir, ':p'), '^\a\+:[/\\]') : dir | |
endif | |
1 0.000000 elseif dir == '~' | |
" Home. | |
let dir = expand('~') | |
1 0.000010 0.000008 elseif dir =~ ':' || (vimfiler#util#is_windows() && dir =~ '^//') || (!vimfiler#util#is_windows() && dir =~ '^/') | |
" Network drive or absolute path. | |
elseif b:vimfiler.source ==# 'file' | |
" Relative path. | |
let dir = simplify(current_dir . dir) | |
1 0.000000 endif | |
1 0.000018 0.000006 let fullpath = vimfiler#util#substitute_path_separator(dir) | |
1 0.000004 0.000003 if vimfiler#util#is_windows() | |
let fullpath = vimfiler#util#resolve(fullpath) | |
1 0.000000 endif | |
1 0.000002 if fullpath !~ '/$' | |
let fullpath .= '/' | |
1 0.000000 endif | |
1 0.000001 return fullpath | |
FUNCTION <SNR>190__exists_autoload_func_with_source() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vital/vimfiler.vim line 240 | |
Called 7 times | |
Total time: 0.001917 | |
Self time: 0.000140 | |
count total (s) self (s) | |
7 0.000015 if exists('*' . a:funcname) | |
" Return true if a given func is already defined | |
return 1 | |
7 0.000002 endif | |
" source a file which may include a given func definition and try again. | |
7 0.000062 let path = 'autoload/' . substitute(substitute(a:funcname, '#[^#]*$', '.vim', ''), '#', '/', 'g') | |
7 0.001808 0.000031 call s:_runtime(path) | |
7 0.000019 return exists('*' . a:funcname) | |
FUNCTION vimfiler#util#get_vital_buffer() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/util.vim line 19 | |
Called 1 time | |
Total time: 0.002552 | |
Self time: 0.000010 | |
count total (s) self (s) | |
1 0.002552 0.000009 return vimfiler#util#get_vital().import('Vim.Buffer') | |
FUNCTION <SNR>189_get_string() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/util.vim line 46 | |
Called 36 times | |
Total time: 0.000181 | |
Self time: 0.000124 | |
count total (s) self (s) | |
36 0.000037 if !exists('s:String') | |
1 0.000071 0.000013 let s:String = vimfiler#util#get_vital().import('Data.String') | |
36 0.000009 endif | |
36 0.000018 return s:String | |
FUNCTION SpaceVim#api#vim#compatible#get() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/vim/compatible.vim line 349 | |
Called 1 time | |
Total time: 0.000004 | |
Self time: 0.000004 | |
count total (s) self (s) | |
1 0.000004 return deepcopy(s:self) | |
FUNCTION <SNR>140_AutoClose() | |
Defined: ~/.SpaceVim/bundle/delimitMate/plugin/delimitMate.vim line 282 | |
Called 6 times | |
Total time: 0.003009 | |
Self time: 0.001876 | |
count total (s) self (s) | |
" Add matching pair and jump to the midle: | |
" inoremap <silent> <buffer> ( ()<Left> | |
6 0.000005 let i = 0 | |
18 0.000346 0.000083 while i < len(s:get('matchpairs_list')) | |
12 0.000392 0.000080 let ld = s:get('left_delims')[i] == '|' ? '<bar>' : s:get('left_delims')[i] | |
12 0.000373 0.000072 let rd = s:get('right_delims')[i] == '|' ? '<bar>' : s:get('right_delims')[i] | |
12 0.000238 exec 'inoremap <expr><silent> <Plug>delimitMate' . ld. ' <SID>TriggerAbb().delimitMate#ParenDelim("' . escape(rd, '|') . '")' | |
12 0.000190 exec 'silent! imap <unique> <buffer> '.ld.' <Plug>delimitMate'.ld | |
12 0.000013 let i += 1 | |
18 0.000010 endwhile | |
" Exit from inside the matching pair: | |
18 0.000113 0.000032 for delim in s:get('right_delims') | |
12 0.000015 let delim = delim == '|' ? '<bar>' : delim | |
12 0.000181 exec 'inoremap <expr><silent> <Plug>delimitMate' . delim. ' <SID>TriggerAbb().delimitMate#JumpOut("\' . delim . '")' | |
12 0.000163 exec 'silent! imap <unique> <buffer> ' . delim. ' <Plug>delimitMate'. delim | |
18 0.000008 endfor | |
" Add matching quote and jump to the midle, or exit if inside a pair of matching quotes: | |
" inoremap <silent> <buffer> " <C-R>=delimitMate#QuoteDelim("\"")<CR> | |
24 0.000120 0.000035 for delim in s:get('quotes_list') | |
18 0.000012 if delim == '|' | |
let delim = '<Bar>' | |
18 0.000005 endif | |
18 0.000329 exec 'inoremap <expr><silent> <Plug>delimitMate' . delim. ' <SID>TriggerAbb()."<C-R>=delimitMate#QuoteDelim(\"\\\' . delim . '\")<CR>"' | |
18 0.000252 exec 'silent! imap <unique> <buffer> ' . delim. ' <Plug>delimitMate' . delim | |
24 0.000011 endfor | |
" Try to fix the use of apostrophes (kept for backward compatibility): | |
" inoremap <silent> <buffer> n't n't | |
6 0.000117 0.000026 for map in s:get('apostrophes_list') | |
exec "inoremap <silent> " . map . " " . map | |
exec 'silent! imap <unique> <buffer> ' . map . ' <Plug>delimitMate' . map | |
6 0.000003 endfor | |
FUNCTION AddTabularPipeline() | |
Defined: ~/.SpaceVim/bundle/tabular/plugin/Tabular.vim line 226 | |
Called 4 times | |
Total time: 0.000751 | |
Self time: 0.000200 | |
count total (s) self (s) | |
4 0.000002 try | |
4 0.000058 0.000021 let [ commandmap, rest ] = s:ChooseCommandMap(a:command) | |
4 0.000019 let name = matchstr(rest, '.\{-}\ze\s*/') | |
4 0.000019 let pattern = substitute(rest, '.\{-}\s*\ze/', '', '') | |
4 0.000051 let commands = matchstr(pattern, '^/.\{-}\\\@<!\%(\\\\\)\{-}/\zs.*') | |
4 0.000021 let pattern = matchstr(pattern, '/\zs.\{-}\\\@<!\%(\\\\\)\{-}\ze/') | |
4 0.000005 if empty(name) || empty(pattern) | |
throw "Invalid arguments!" | |
4 0.000001 endif | |
4 0.000005 if !a:force && has_key(commandmap, name) | |
throw string(name) . " is already defined, use ! to overwrite." | |
4 0.000001 endif | |
4 0.000531 0.000017 let commandlist = s:SplitCommands(commands) | |
4 0.000004 if empty(commandlist) | |
throw "Must provide a list of functions!" | |
4 0.000001 endif | |
4 0.000010 let commandmap[name] = { 'pattern' : pattern, 'commands' : commandlist } | |
catch | |
echohl ErrorMsg | |
echomsg "AddTabularPipeline: " . v:exception | |
echohl None | |
4 0.000002 endtry | |
FUNCTION SpaceVim#logger#derive() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/logger.vim line 145 | |
Called 2 times | |
Total time: 0.000031 | |
Self time: 0.000027 | |
count total (s) self (s) | |
2 0.000025 0.000021 let s:derive.derive_name = printf('%' . strdisplaywidth(s:LOGGER.get_name()) . 'S', a:name) | |
2 0.000005 return deepcopy(s:derive) | |
FUNCTION unite#helper#get_source_args() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/helper.vim line 404 | |
Called 8 times | |
Total time: 0.000043 | |
Self time: 0.000043 | |
count total (s) self (s) | |
8 0.000041 return map(copy(a:sources), 'type(v:val) == type([]) ? [v:val[0], v:val[1:]] : [v:val, []]') | |
FUNCTION SpaceVim#plugins#fetch() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/plugins.vim line 210 | |
Called 1 time | |
Total time: 0.001402 | |
Self time: 0.000009 | |
count total (s) self (s) | |
1 0.000001 if g:spacevim_plugin_manager ==# 'neobundle' | |
NeoBundleFetch g:_spacevim_root_dir . 'bundle/neobundle.vim' | |
1 0.000001 elseif g:spacevim_plugin_manager ==# 'dein' | |
1 0.001398 0.000005 call dein#add(g:_spacevim_root_dir . 'bundle/dein.vim', { 'merged' : 0}) | |
1 0.000000 endif | |
FUNCTION <SNR>193__vital_loaded() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vital/_vimfiler/Vim/Guard.vim line 25 | |
Called 1 time | |
Total time: 0.000928 | |
Self time: 0.000022 | |
count total (s) self (s) | |
1 0.000001 let s:V = a:V | |
1 0.000041 0.000006 let s:Prelude = s:V.import('Prelude') | |
1 0.000556 0.000009 let s:List = s:V.import('Data.List') | |
1 0.000330 0.000005 let s:Dict = s:V.import('Data.Dict') | |
FUNCTION <SNR>6_isDarwin() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/system.vim line 45 | |
Called 1 time | |
Total time: 0.001947 | |
Self time: 0.000028 | |
count total (s) self (s) | |
1 0.000001 if exists('s:is_darwin') | |
return s:is_darwin | |
1 0.000000 endif | |
1 0.000002 if has('macunix') | |
let s:is_darwin = 1 | |
return s:is_darwin | |
1 0.000000 endif | |
1 0.000001 if ! has('unix') | |
let s:is_darwin = 0 | |
return s:is_darwin | |
1 0.000000 endif | |
1 0.001927 0.000009 if system('uname -s') ==# "Darwin\n" | |
let s:is_darwin = 1 | |
1 0.000001 else | |
1 0.000003 let s:is_darwin = 0 | |
1 0.000000 endif | |
1 0.000002 return s:is_darwin | |
FUNCTION vital#_vimfiler#Data#String#import() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vital/_vimfiler/Data/String.vim line 5 | |
Called 1 time | |
Total time: 0.000082 | |
Self time: 0.000082 | |
count total (s) self (s) | |
1 0.000082 return map({'starts_with': '', 'split3': '', 'replace_first': '', 'chop': '', 'unescape': '', 'split_posix_text': '', 'replace': '', 'scan': '', 'strwidthpart': '', 'common_head': '', 'reverse': '', 'escape_pattern': '', 'trim_end': '', '_vital_depends': '', 'wrap': '', 'join_posix_lines': '', 'contains_multibyte': '', 'truncate_skipping': '', 'split_leftright': '', 'ends_with': '', 'nsplit': '', 'strwidthpart_reverse': '', 'unescape_pattern': '', 'levenshtein_distance': '', 'trim_start': '', 'justify_equal_spacing': '', 'nr2hex': '', 'iconv': '', 'pad_left': '', 'nr2enc_char': '', 'lines': '', 'repair_posix_text': '', 'nr2byte': '', 'trim': '', 'diffidx': '', 'truncate': '', 'split_by_displaywidth': '', '_vital_created': '', 'padding_by_displaywidth': '', 'hash': '', 'chomp': '', 'pad_between_letters': '', 'dstring': '', 'pad_both_sides': '', 'substitute_last': '', 'pad_right': '', 'remove_ansi_sequences': '', '_vital_loaded': ''}, 'function("s:" . v:key)') | |
FUNCTION <SNR>171_Setup() | |
Defined: ~/.SpaceVim/bundle/indentLine/after/plugin/indentLine.vim line 321 | |
Called 1 time | |
Total time: 0.000432 | |
Self time: 0.000029 | |
count total (s) self (s) | |
1 0.000001 if &filetype ==# "" | |
1 0.000113 0.000006 call s:InitColor() | |
1 0.000000 endif | |
1 0.000026 0.000008 if s:Filter() && g:indentLine_enabled || exists("b:indentLine_enabled") && b:indentLine_enabled | |
1 0.000270 0.000005 call s:IndentLinesEnable() | |
1 0.000000 endif | |
1 0.000019 0.000006 if s:Filter() && g:indentLine_leadingSpaceEnabled || exists("b:indentLine_leadingSpaceEnabled") && b:indentLine_leadingSpaceEnabled | |
call s:LeadingSpaceEnable() | |
1 0.000000 endif | |
FUNCTION dein#parse#_name_conversion() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/parse.vim line 408 | |
Called 61 times | |
Total time: 0.000502 | |
Self time: 0.000502 | |
count total (s) self (s) | |
61 0.000486 return fnamemodify(get(split(a:path, ':'), -1, ''), ':s?/$??:t:s?\c\.git\s*$??') | |
FUNCTION SpaceVim#server#export_server() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/server.vim line 46 | |
Called 1 time | |
Total time: 0.020286 | |
Self time: 0.020286 | |
count total (s) self (s) | |
1 0.020275 if executable('export') | |
call system('export $TEST_SPACEVIM="test"') | |
1 0.000001 endif | |
FUNCTION provider#pythonx#Require() | |
Defined: /usr/share/nvim/runtime/autoload/provider/pythonx.vim line 8 | |
Called 1 time | |
Total time: 0.043998 | |
Self time: 0.000050 | |
count total (s) self (s) | |
1 0.000002 let ver = (a:host.orig_name ==# 'python') ? 2 : 3 | |
" Python host arguments | |
1 0.000007 0.000006 let prog = (ver == '2' ? provider#python#Prog() : provider#python3#Prog()) | |
1 0.000002 let args = [prog, '-c', 'import sys; sys.path.remove(""); import neovim; neovim.start_host()'] | |
" Collect registered Python plugins into args | |
1 0.000008 0.000004 let python_plugins = remote#host#PluginsForHost(a:host.name) | |
2 0.000002 for plugin in python_plugins | |
1 0.000002 call add(args, plugin.path) | |
2 0.000001 endfor | |
1 0.043971 0.000028 return provider#Poll(args, a:host.orig_name, '$NVIM_PYTHON_LOG_FILE') | |
FUNCTION matchup#matchparen#enable() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup/matchparen.vim line 23 | |
Called 1 time | |
Total time: 0.000080 | |
Self time: 0.000080 | |
count total (s) self (s) | |
1 0.000001 let g:matchup_matchparen_enabled = 1 | |
1 0.000003 if g:matchup_matchparen_deferred && (!has('timers') || !exists('*timer_pause') || has('nvim') && !has('nvim-0.2.1')) | |
let g:matchup_matchparen_deferred = 0 | |
echohl WarningMsg | |
echom "match-up's deferred highlighting feature is " . 'not supported in your vim version' | |
echohl None | |
1 0.000000 endif | |
1 0.000001 augroup matchup_matchparen | |
1 0.000033 autocmd! | |
1 0.000005 autocmd CursorMoved,CursorMovedI * call s:matchparen.highlight_deferred() | |
1 0.000003 autocmd WinEnter * call s:matchparen.highlight(1) | |
1 0.000004 autocmd TextChanged,TextChangedI * call s:matchparen.highlight_deferred() | |
1 0.000003 if has('patch-8.0.1494') | |
1 0.000003 autocmd TextChangedP * call s:matchparen.highlight_deferred() | |
1 0.000000 endif | |
1 0.000002 autocmd BufReadPost * call s:matchparen.transmute_reset() | |
1 0.000003 autocmd WinLeave,BufLeave * call s:matchparen.clear() | |
1 0.000003 autocmd InsertEnter,InsertChange * call s:matchparen.highlight(1, 1) | |
1 0.000002 autocmd InsertLeave * call s:matchparen.highlight(1) | |
1 0.000000 augroup END | |
1 0.000002 if has('vim_starting') | |
" prevent this from autoloading during timer callback at startup | |
1 0.000001 if g:matchup_matchparen_deferred | |
call matchup#pos#val(0,0) | |
1 0.000000 endif | |
" prevent loading the delim module at vim startup | |
1 0.000003 let w:last_changedtick = 2 | |
1 0.000002 let w:last_cursor = [0,1,1,0,1] | |
1 0.000000 endif | |
FUNCTION SpaceVim#api#data#dict#get() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/data/dict.vim line 30 | |
Called 1 time | |
Total time: 0.000020 | |
Self time: 0.000020 | |
count total (s) self (s) | |
1 0.000020 return map({ 'make' : '', 'swap' : '', 'make_index' : '', 'pick' : '', 'omit' : '', 'clear' : '', 'max_by' : '', 'min_by' : '', 'foldl' : '', 'foldr' : '', 'entrys' : '', }, "function('s:' . v:key)" ) | |
FUNCTION SpaceVim#api#system#get() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/system.vim line 91 | |
Called 1 time | |
Total time: 0.000003 | |
Self time: 0.000003 | |
count total (s) self (s) | |
1 0.000003 return deepcopy(s:system) | |
FUNCTION vimfiler#init#_candidates() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/init.vim line 259 | |
Called 2 times | |
Total time: 0.004297 | |
Self time: 0.002104 | |
count total (s) self (s) | |
2 0.000007 let default = { 'vimfiler__is_directory' : 0, 'vimfiler__is_executable' : 0, 'vimfiler__is_writable' : 1, 'vimfiler__filesize' : -1, 'vimfiler__filetime' : 0,} | |
" Set default vimfiler property. | |
92 0.000044 for candidate in a:candidates | |
90 0.000196 let candidate = extend(candidate, default, 'keep') | |
90 0.000092 if !has_key(candidate, 'vimfiler__filename') | |
let candidate.vimfiler__filename = candidate.word | |
90 0.000020 endif | |
90 0.000080 if !has_key(candidate, 'vimfiler__abbr') | |
let candidate.vimfiler__abbr = candidate.word | |
90 0.000018 endif | |
90 0.000081 if !has_key(candidate, 'vimfiler__datemark') | |
90 0.000966 0.000309 let candidate.vimfiler__datemark = vimfiler#get_datemark(candidate) | |
90 0.000021 endif | |
90 0.000087 if !has_key(candidate, 'vimfiler__extension') | |
90 0.000165 let candidate.vimfiler__extension = candidate.vimfiler__is_directory ? '' : fnamemodify(candidate.vimfiler__filename, ':e') | |
90 0.000019 endif | |
90 0.000163 if !has_key(candidate, 'vimfiler__filetype') | |
90 0.001839 0.000303 let candidate.vimfiler__filetype = vimfiler#get_filetype(candidate) | |
90 0.000023 endif | |
90 0.000071 let candidate.vimfiler__is_marked = 0 | |
90 0.000075 let candidate.source = a:source_name | |
90 0.000079 let candidate.unite__abbr = candidate.vimfiler__abbr | |
92 0.000030 endfor | |
2 0.000002 return a:candidates | |
FUNCTION <SNR>100_has() | |
Defined: ~/.SpaceVim/config/neovim.vim line 20 | |
Called 1 time | |
Total time: 0.000004 | |
Self time: 0.000004 | |
count total (s) self (s) | |
1 0.000004 return has(a:version) | |
FUNCTION <SNR>68_check_type() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/parse.vim line 390 | |
Called 58 times | |
Total time: 0.005806 | |
Self time: 0.001627 | |
count total (s) self (s) | |
58 0.000050 let plugin = {} | |
174 0.000915 0.000324 for type in values(dein#parse#_get_types()) | |
116 0.003997 0.000409 let plugin = type.init(a:repo, a:options) | |
116 0.000102 if !empty(plugin) | |
break | |
116 0.000030 endif | |
174 0.000082 endfor | |
58 0.000042 if empty(plugin) | |
58 0.000062 let plugin.type = 'none' | |
58 0.000041 let plugin.local = 1 | |
58 0.000188 let plugin.path = isdirectory(a:repo) ? a:repo : '' | |
58 0.000019 endif | |
58 0.000035 return plugin | |
FUNCTION vimfiler#util#winmove() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/util.vim line 238 | |
Called 4 times | |
Total time: 0.000019 | |
Self time: 0.000019 | |
count total (s) self (s) | |
4 0.000003 if a:winnr > 0 | |
4 0.000012 silent execute a:winnr.'wincmd w' | |
4 0.000001 endif | |
FUNCTION unite#util#has_timers() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/util.vim line 153 | |
Called 1 time | |
Total time: 0.000005 | |
Self time: 0.000005 | |
count total (s) self (s) | |
" Vim timers implementation has bug. | |
" It cannot stop callback handler in the handler. | |
1 0.000004 return has('timers') && (has('nvim') || has('patch-7.4.2304')) | |
FUNCTION <SNR>211_on_BufReadCmd() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/handler.vim line 25 | |
Called 1 time | |
Total time: 0.046220 | |
Self time: 0.000037 | |
count total (s) self (s) | |
" Check path. | |
1 0.001480 0.000005 let ret = unite#vimfiler_check_filetype( [insert(a:source_args, a:source_name)]) | |
1 0.000001 if empty(ret) | |
if !empty(unite#loaded_sources_list()) && a:source_name !=# 'file' | |
" File not found. | |
call vimfiler#util#print_error( printf('Can''t open "%s".', join(a:source_args, ':'))) | |
endif | |
doautocmd BufRead | |
return | |
1 0.000000 endif | |
1 0.000001 let [type, info] = ret | |
1 0.000002 let bufnr = bufnr('%') | |
1 0.000001 let b:vimfiler = {} | |
1 0.000001 let b:vimfiler.source = a:source_name | |
1 0.000001 let b:vimfiler.context = a:context | |
1 0.000001 let b:vimfiler.bufnr = bufnr('%') | |
1 0.000001 if type ==# 'directory' | |
1 0.044716 0.000008 call vimfiler#init#_vimfiler_directory(info, a:context) | |
elseif type ==# 'file' | |
call vimfiler#init#_vimfiler_file( a:source_args, info[0], info[1]) | |
else | |
call vimfiler#util#print_error('Unknown filetype.') | |
1 0.000000 endif | |
1 0.000002 if bufnr('%') != bufnr | |
" Restore window. | |
call vimfiler#util#winmove(bufwinnr(bufnr)) | |
1 0.000000 endif | |
FUNCTION vimfiler#filters#matcher_ignore_files#define() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/filters/matcher_ignore_files.vim line 7 | |
Called 1 time | |
Total time: 0.000002 | |
Self time: 0.000002 | |
count total (s) self (s) | |
1 0.000001 return s:filter | |
FUNCTION vimfiler#handler#_event_bufwin_enter() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/handler.vim line 125 | |
Called 3 times | |
Total time: 0.002373 | |
Self time: 0.000269 | |
count total (s) self (s) | |
3 0.000007 if a:bufnr != bufnr('%') && bufwinnr(a:bufnr) > 0 | |
let winnr = winnr() | |
call vimfiler#util#winmove(bufwinnr(a:bufnr)) | |
3 0.000001 endif | |
3 0.000002 try | |
3 0.000019 if !exists('b:vimfiler') || len(filter(range(1, winnr('$')), 'winbufnr(v:val) == a:bufnr')) > 1 | |
return | |
3 0.000001 endif | |
3 0.000003 let vimfiler = b:vimfiler | |
3 0.000004 if !has_key(vimfiler, 'context') | |
return | |
3 0.000001 endif | |
3 0.000003 let context = b:vimfiler.context | |
3 0.000002 if context.winwidth > 0 | |
3 0.000011 execute 'vertical resize' context.winwidth | |
3 0.000005 let context.vimfiler__winfixwidth = &l:winfixwidth | |
3 0.000002 if context.split | |
3 0.000023 setlocal winfixwidth | |
3 0.000001 endif | |
elseif context.winheight > 0 | |
execute 'resize' context.winheight | |
if line('.') < winheight(0) | |
normal! zb | |
endif | |
let context.vimfiler__winfixheight = &l:winfixheight | |
if context.split | |
setlocal winfixheight | |
endif | |
3 0.000001 endif | |
3 0.000005 let winwidth = (winwidth(0)+1)/2*2 | |
3 0.000004 if exists('vimfiler.winwidth') | |
3 0.000003 if vimfiler.winwidth != winwidth | |
2 0.002228 0.000124 call vimfiler#view#_redraw_screen() | |
3 0.000001 endif | |
3 0.000001 endif | |
3 0.000001 finally | |
3 0.000003 if exists('winnr') | |
call vimfiler#util#winmove(winnr) | |
3 0.000001 endif | |
3 0.000001 endtry | |
FUNCTION <SNR>28_xor() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/data/number.vim line 56 | |
Called 12 times | |
Total time: 0.000015 | |
Self time: 0.000015 | |
count total (s) self (s) | |
12 0.000013 return xor(a:a, a:b) | |
FUNCTION startify#get_session_path() | |
Defined: ~/.SpaceVim/bundle/vim-startify/autoload/startify.vim line 23 | |
Called 1 time | |
Total time: 0.000035 | |
Self time: 0.000035 | |
count total (s) self (s) | |
1 0.000002 if exists('g:startify_session_dir') | |
1 0.000001 let path = g:startify_session_dir | |
elseif has('nvim') | |
let path = has('nvim-0.3.1') ? stdpath('data').'/session' : has('win32') ? '~/AppData/Local/nvim-data/session' : '~/.local/share/nvim/session' | |
else " Vim | |
let path = has('win32') ? '~/vimfiles/session' : '~/.vim/session' | |
1 0.000000 endif | |
1 0.000026 return resolve(expand(path)) | |
FUNCTION dein#util#_chomp() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/util.vim line 123 | |
Called 122 times | |
Total time: 0.000272 | |
Self time: 0.000272 | |
count total (s) self (s) | |
122 0.000250 return a:str !=# '' && a:str[-1:] ==# '/' ? a:str[: -2] : a:str | |
FUNCTION unite#candidates#_recache() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/candidates.vim line 10 | |
Called 2 times | |
Total time: 0.013633 | |
Self time: 0.000403 | |
count total (s) self (s) | |
2 0.000052 0.000033 let unite = unite#get_current_unite() | |
" Save options. | |
2 0.000002 let ignorecase_save = &ignorecase | |
2 0.000002 let context = unite.context | |
2 0.000001 try | |
2 0.000001 if context.smartcase | |
let &ignorecase = a:input !~ '\u' | |
2 0.000001 else | |
2 0.000004 let &ignorecase = context.ignorecase | |
2 0.000001 endif | |
2 0.000003 let context.is_redraw = a:is_force || context.is_redraw | |
2 0.000004 let context.is_changed = a:input !=# unite.last_input || context.path !=# unite.last_path | |
2 0.000002 if empty(unite.args) | |
if a:input !~ '^.\{-}\%(\\\@<!\s\)\+' | |
" Use interactive source. | |
let sources = unite#init#_loaded_sources(['interactive'], context) | |
else | |
" Use specified source. | |
let args = unite#helper#parse_options_args( matchstr(a:input, '^.\{-}\%(\\\@<!\s\)\+'))[0] | |
try | |
" Ignore source name | |
let context.input = matchstr(context.input, '^.\{-}\%(\\\@<!\s\)\+\zs.*') | |
let sources = unite#init#_loaded_sources(args, context) | |
catch | |
let sources = [] | |
finally | |
let context.input = a:input | |
endtry | |
endif | |
if get(unite.sources, 0, {'name' : ''}).name !=# get(sources, 0, {'name' : ''}).name | |
" Finalize previous sources. | |
call unite#helper#call_hook(unite.sources, 'on_close') | |
let unite.sources = sources | |
let unite.source_names = unite#helper#get_source_names(sources) | |
let prev_winnr = winnr() | |
try | |
execute bufwinnr(unite.prev_bufnr).'wincmd w' | |
" Initialize. | |
call unite#helper#call_hook(sources, 'on_init') | |
finally | |
if winnr() != prev_winnr | |
execute prev_winnr . 'wincmd w' | |
endif | |
endtry | |
if &filetype ==# 'unite' | |
call unite#view#_set_syntax() | |
endif | |
endif | |
2 0.000001 endif | |
4 0.000004 for source in unite.sources | |
2 0.000002 let source.unite__candidates = [] | |
4 0.000002 endfor | |
2 0.000187 0.000010 let inputs = unite#helper#get_substitute_input(a:input) | |
2 0.000003 let context.is_list_input = len(inputs) > 1 | |
4 0.000004 for input in inputs | |
2 0.000002 let context.input = input | |
2 0.012074 0.000016 call s:recache_candidates_loop(context, a:is_force) | |
4 0.000002 endfor | |
" Restore prompt input | |
2 0.000004 let context.input = a:input | |
2 0.000002 let filtered_count = 0 | |
4 0.000005 for source in unite.sources | |
2 0.000002 let source.unite__is_invalidate = 0 | |
2 0.000007 if !context.unite__not_buffer && source.max_candidates != 0 && context.unite__is_interactive && !unite.disabled_max_candidates && len(source.unite__candidates) > source.max_candidates | |
" Filtering too many candidates. | |
let source.unite__candidates = source.unite__candidates[: source.max_candidates - 1] | |
if context.verbose && filtered_count < &cmdheight | |
echohl WarningMsg | echomsg printf( '[%s] Filtering too many candidates.', source.name) | echohl None | |
let filtered_count += 1 | |
endif | |
2 0.000001 endif | |
" Call post_filter hook. | |
2 0.000007 let source.unite__context.candidates = source.unite__candidates | |
2 0.000138 0.000017 call unite#helper#call_hook([source], 'on_post_filter') | |
2 0.000539 0.000014 let source.unite__candidates = unite#init#_candidates_source( source.unite__context.candidates, source.name) | |
2 0.000004 let source.unite__len_candidates = len(source.unite__candidates) | |
4 0.000002 endfor | |
" Update async state. | |
2 0.000008 let unite.is_async = len(filter(copy(unite.sources), 'v:val.unite__context.is_async')) > 0 | |
2 0.000001 finally | |
2 0.000008 let &ignorecase = ignorecase_save | |
2 0.000002 let context.is_redraw = 0 | |
2 0.000001 endtry | |
2 0.000431 0.000102 call unite#handlers#_save_updatetime() | |
FUNCTION <SNR>140_init() | |
Defined: ~/.SpaceVim/bundle/delimitMate/plugin/delimitMate.vim line 45 | |
Called 6 times | |
Total time: 0.006123 | |
Self time: 0.001181 | |
count total (s) self (s) | |
" Initialize variables: | |
" autoclose | |
6 0.000523 0.000027 call s:option_init("autoclose", 1) | |
" matchpairs | |
6 0.000219 0.000036 call s:option_init("matchpairs", string(&matchpairs)[1:-2]) | |
6 0.000403 0.000117 call s:option_init("matchpairs_list", map(split(s:get('matchpairs'), '.:.\zs,\ze.:.'), 'split(v:val, ''^.\zs:\ze.$'')')) | |
6 0.000116 0.000021 let pairs = s:get('matchpairs_list') | |
6 0.000023 if len(filter(pairs, 'v:val[0] ==# v:val[1]')) | |
echohl ErrorMsg | |
echom 'delimitMate: each member of a pair in delimitMate_matchpairs must be different from each other.' | |
echom 'delimitMate: invalid pairs: ' . join(map(pairs, 'join(v:val, ":")'), ', ') | |
echohl Normal | |
return 0 | |
6 0.000002 endif | |
6 0.000319 0.000055 call s:option_init("left_delims", map(copy(s:get('matchpairs_list')), 'v:val[0]')) | |
6 0.000306 0.000051 call s:option_init("right_delims", map(copy(s:get('matchpairs_list')), 'v:val[1]')) | |
" quotes | |
6 0.000193 0.000024 call s:option_init("quotes", "\" ' `") | |
6 0.000310 0.000056 call s:option_init("quotes_list",split(s:get('quotes'), '\s\+')) | |
" nesting_quotes | |
6 0.000183 0.000022 call s:option_init("nesting_quotes", []) | |
" excluded_regions | |
6 0.000183 0.000022 call s:option_init("excluded_regions", "Comment") | |
6 0.000300 0.000047 call s:option_init("excluded_regions_list", split(s:get('excluded_regions'), ',\s*')) | |
6 0.000110 0.000024 let enabled = len(s:get('excluded_regions_list')) > 0 | |
6 0.000187 0.000023 call s:option_init("excluded_regions_enabled", enabled) | |
" expand_space | |
6 0.000013 if exists("b:delimitMate_expand_space") && type(b:delimitMate_expand_space) == type("") | |
echom "b:delimitMate_expand_space is '".b:delimitMate_expand_space."' but it must be either 1 or 0!" | |
echom "Read :help 'delimitMate_expand_space' for more details." | |
unlet b:delimitMate_expand_space | |
let b:delimitMate_expand_space = 1 | |
6 0.000001 endif | |
6 0.000012 if exists("g:delimitMate_expand_space") && type(g:delimitMate_expand_space) == type("") | |
echom "delimitMate_expand_space is '".g:delimitMate_expand_space."' but it must be either 1 or 0!" | |
echom "Read :help 'delimitMate_expand_space' for more details." | |
unlet g:delimitMate_expand_space | |
let g:delimitMate_expand_space = 1 | |
6 0.000001 endif | |
6 0.000182 0.000021 call s:option_init("expand_space", 0) | |
" expand_cr | |
6 0.000012 if exists("b:delimitMate_expand_cr") && type(b:delimitMate_expand_cr) == type("") | |
echom "b:delimitMate_expand_cr is '".b:delimitMate_expand_cr."' but it must be either 1 or 0!" | |
echom "Read :help 'delimitMate_expand_cr' for more details." | |
unlet b:delimitMate_expand_cr | |
let b:delimitMate_expand_cr = 1 | |
6 0.000002 endif | |
6 0.000010 if exists("g:delimitMate_expand_cr") && type(g:delimitMate_expand_cr) == type("") | |
echom "delimitMate_expand_cr is '".g:delimitMate_expand_cr."' but it must be either 1 or 0!" | |
echom "Read :help 'delimitMate_expand_cr' for more details." | |
unlet g:delimitMate_expand_cr | |
let g:delimitMate_expand_cr = 1 | |
6 0.000001 endif | |
6 0.000034 if ((&backspace !~ 'eol' || &backspace !~ 'start') && &backspace != 2) && ((exists('b:delimitMate_expand_cr') && b:delimitMate_expand_cr == 1) || (exists('g:delimitMate_expand_cr') && g:delimitMate_expand_cr == 1)) | |
echom "delimitMate: There seems to be some incompatibility with your settings that may interfer with the expansion of <CR>. See :help 'delimitMate_expand_cr' for details." | |
6 0.000001 endif | |
6 0.000179 0.000020 call s:option_init("expand_cr", 0) | |
" expand_in_quotes | |
6 0.000182 0.000023 call s:option_init('expand_inside_quotes', 0) | |
" jump_expansion | |
6 0.000179 0.000021 call s:option_init("jump_expansion", 0) | |
" smart_matchpairs | |
6 0.000186 0.000026 call s:option_init("smart_matchpairs", '^\%(\w\|\!\|[£$]\|[^[:punct:][:space:]]\)') | |
" smart_quotes | |
" XXX: backward compatibility. Ugly, should go the way of the dodo soon. | |
6 0.000120 0.000032 let quotes = escape(join(s:get('quotes_list'), ''), '\-^[]') | |
6 0.000017 let default_smart_quotes = '\%(\w\|[^[:punct:][:space:]' . quotes . ']\|\%(\\\\\)*\\\)\%#\|\%#\%(\w\|[^[:space:][:punct:]' . quotes . ']\)' | |
6 0.000013 if exists('g:delimitMate_smart_quotes') && type(g:delimitMate_smart_quotes) == type(0) | |
if g:delimitMate_smart_quotes | |
unlet g:delimitMate_smart_quotes | |
else | |
unlet g:delimitMate_smart_quotes | |
let g:delimitMate_smart_quotes = '' | |
endif | |
6 0.000001 endif | |
6 0.000011 if exists('b:delimitMate_smart_quotes') && type(b:delimitMate_smart_quotes) == type(0) | |
if b:delimitMate_smart_quotes | |
unlet b:delimitMate_smart_quotes | |
if exists('g:delimitMate_smart_quotes') && type(g:delimitMate_smart_quotes) && g:delimitMate_smart_quotes | |
let b:delimitMate_smart_quotes = default_smart_quotes | |
endif | |
else | |
unlet b:delimitMate_smart_quotes | |
let b:delimitMate_smart_quotes = '' | |
endif | |
6 0.000001 endif | |
6 0.000188 0.000024 call s:option_init("smart_quotes", default_smart_quotes) | |
" apostrophes | |
6 0.000182 0.000021 call s:option_init("apostrophes", "") | |
6 0.000313 0.000047 call s:option_init("apostrophes_list", split(s:get('apostrophes'), ":\s*")) | |
" tab2exit | |
6 0.000192 0.000021 call s:option_init("tab2exit", 1) | |
" balance_matchpairs | |
6 0.000178 0.000021 call s:option_init("balance_matchpairs", 0) | |
" eol marker | |
6 0.000174 0.000021 call s:option_init("insert_eol_marker", 1) | |
6 0.000179 0.000022 call s:option_init("eol_marker", "") | |
" Everything is fine. | |
6 0.000003 return 1 | |
FUNCTION unite#sources#file#create_file_dict() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/sources/file.vim line 350 | |
Called 94 times | |
Total time: 0.002448 | |
Self time: 0.002448 | |
count total (s) self (s) | |
94 0.000136 let is_newfile = get(a:000, 0, 0) | |
94 0.000205 let dict = { 'word' : a:file, 'action__path' : a:file,} | |
94 0.000122 if a:input !~ '/' | |
94 0.000136 let dict.word = fnamemodify(a:file, ':t') | |
94 0.000024 endif | |
94 0.000073 let dict.abbr = dict.word | |
94 0.000265 let dict.vimfiler__is_directory = isdirectory(dict.action__path) | |
94 0.000195 if a:file !~ '^\%(/\|\a\+:/\)' | |
let dict.action__path = unite#util#substitute_path_separator( fnamemodify(a:file, ':p')) | |
94 0.000025 endif | |
94 0.000045 if dict.vimfiler__is_directory | |
50 0.000088 if a:file !~ '^\%(/\|\a\+:/\)$' | |
50 0.000039 let dict.abbr .= '/' | |
50 0.000013 endif | |
50 0.000035 let dict.kind = 'directory' | |
44 0.000023 elseif is_newfile | |
let dict.abbr = unite#util#substitute_path_separator( fnamemodify(a:file, ':~:.')) | |
if is_newfile == 1 | |
" New file. | |
let dict.abbr = '[new file] ' . dict.abbr | |
let dict.kind = 'file' | |
elseif is_newfile == 2 | |
" New directory. | |
let dict.abbr = '[new directory] ' . dict.abbr | |
let dict.kind = 'directory' | |
let dict.action__directory = dict.action__path | |
endif | |
44 0.000011 else | |
44 0.000032 let dict.kind = 'file' | |
94 0.000023 endif | |
94 0.000051 return dict | |
FUNCTION matchup#pos#get_cursor() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup/pos.vim line 17 | |
Called 10 times | |
Total time: 0.000018 | |
Self time: 0.000018 | |
count total (s) self (s) | |
10 0.000015 return getcurpos() | |
FUNCTION <SNR>171_IndentLinesEnable() | |
Defined: ~/.SpaceVim/bundle/indentLine/after/plugin/indentLine.vim line 148 | |
Called 1 time | |
Total time: 0.000265 | |
Self time: 0.000248 | |
count total (s) self (s) | |
1 0.000001 if g:indentLine_newVersion | |
1 0.000002 if exists("b:indentLine_enabled") && b:indentLine_enabled == 0 | |
return | |
1 0.000000 endif | |
1 0.000001 if !exists("w:indentLine_indentLineId") | |
1 0.000001 let w:indentLine_indentLineId = [] | |
1 0.000000 endif | |
1 0.000021 0.000004 call s:SetConcealOption() | |
1 0.000001 if g:indentLine_showFirstIndentLevel | |
call add(w:indentLine_indentLineId, matchadd('Conceal', '^ ', 0, -1, {'conceal': g:indentLine_first_char})) | |
1 0.000000 endif | |
1 0.000002 let space = &l:shiftwidth == 0 ? &l:tabstop : &l:shiftwidth | |
1 0.000002 let n = len(g:indentLine_char_list) | |
1 0.000001 let level = 0 | |
21 0.000013 for i in range(space+1, space * g:indentLine_indentLevel + 1, space) | |
20 0.000010 if n > 0 | |
let char = g:indentLine_char_list[level % n] | |
let level += 1 | |
20 0.000005 else | |
20 0.000013 let char = g:indentLine_char | |
20 0.000005 endif | |
20 0.000139 call add(w:indentLine_indentLineId, matchadd('Conceal', '^\s\+\zs\%'.i.'v ', 0, -1, {'conceal': char})) | |
21 0.000009 endfor | |
1 0.000000 return | |
endif | |
if exists("b:indentLine_enabled") && b:indentLine_enabled | |
return | |
else | |
let b:indentLine_enabled = 1 | |
endif | |
call s:SetConcealOption() | |
let g:mysyntaxfile = g:indentLine_mysyntaxfile | |
let space = &l:shiftwidth == 0 ? &l:tabstop : &l:shiftwidth | |
if g:indentLine_showFirstIndentLevel | |
execute 'syntax match IndentLine /^ / containedin=ALL conceal cchar=' . g:indentLine_first_char | |
endif | |
if g:indentLine_faster | |
execute 'syntax match IndentLineSpace /^\s\+/ containedin=ALL contains=IndentLine' | |
execute 'syntax match IndentLine / \{'.(space-1).'}\zs / contained conceal cchar=' . g:indentLine_char | |
execute 'syntax match IndentLine /\t\zs / contained conceal cchar=' . g:indentLine_char | |
else | |
let pattern = line('$') < g:indentLine_maxLines ? 'v' : 'c' | |
for i in range(space+1, space * g:indentLine_indentLevel + 1, space) | |
execute 'syntax match IndentLine /\%(^\s\+\)\@<=\%'.i.pattern.' / containedin=ALL conceal cchar=' . g:indentLine_char | |
endfor | |
endif | |
FUNCTION vimfiler#helper#_get_directory_files() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/helper.vim line 7 | |
Called 2 times | |
Total time: 0.031332 | |
Self time: 0.000317 | |
count total (s) self (s) | |
" Save current files. | |
2 0.000003 let is_manualed = get(a:000, 0, 0) | |
2 0.000004 let context = { 'vimfiler__is_dummy' : 0, 'is_redraw' : is_manualed, } | |
2 0.000002 let path = a:directory | |
2 0.000005 if path !~ '^\a\w*:' | |
2 0.000003 let path = b:vimfiler.source . ':' . path | |
2 0.000000 endif | |
2 0.000100 0.000008 let args = vimfiler#parse_path(path) | |
2 0.020956 0.000031 let current_files = vimfiler#init#_candidates( unite#get_vimfiler_candidates([args], context), b:vimfiler.source) | |
92 0.000033 for file in current_files | |
" Initialize. | |
90 0.000052 let file.vimfiler__is_marked = 0 | |
90 0.000056 let file.vimfiler__is_opened = 0 | |
90 0.000056 let file.vimfiler__nest_level = 0 | |
92 0.000020 endfor | |
2 0.010012 0.000013 return vimfiler#helper#_sort_files(current_files) | |
FUNCTION <SNR>81_get_prelude() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/util.vim line 23 | |
Called 14 times | |
Total time: 0.000789 | |
Self time: 0.000063 | |
count total (s) self (s) | |
14 0.000019 if !exists('s:Prelude') | |
1 0.000736 0.000010 let s:Prelude = unite#util#get_vital().import('Prelude') | |
14 0.000004 endif | |
14 0.000008 return s:Prelude | |
FUNCTION <SNR>146_SplitCommands() | |
Defined: ~/.SpaceVim/bundle/tabular/plugin/Tabular.vim line 112 | |
Called 9 times | |
Total time: 0.000959 | |
Self time: 0.000369 | |
count total (s) self (s) | |
9 0.000017 if a:string =~ '^\s*$' | |
return [] | |
9 0.000002 endif | |
9 0.000026 let end = match(a:string, "[\"'|]") | |
" Loop until we find a delimiting | or end-of-string | |
32 0.000047 while end != -1 && (a:string[end] != '|' || a:string[end+1] == '|') | |
23 0.000017 if a:string[end] == "'" | |
21 0.000033 let end = match(a:string, "'", end+1) + 1 | |
21 0.000009 if end == 0 | |
throw "No matching end single quote" | |
21 0.000005 endif | |
2 0.000002 elseif a:string[end] == '"' | |
" Find a " preceded by an even number of \ (or 0) | |
2 0.000002 let pattern = '\%(\\\@<!\%(\\\\\)*\)\@<="' | |
2 0.000039 let end = matchend(a:string, pattern, end+1) + 1 | |
2 0.000002 if end == 0 | |
throw "No matching end double quote" | |
2 0.000001 endif | |
else " Found || | |
let end += 2 | |
23 0.000005 endif | |
23 0.000042 let end = match(a:string, "[\"'|]", end) | |
32 0.000013 endwhile | |
9 0.000022 if end == 0 || a:string[0 : end - (end > 0)] =~ '^\s*$' | |
throw "Empty element" | |
9 0.000002 endif | |
9 0.000005 if end == -1 | |
4 0.000004 let rv = [ a:string ] | |
5 0.000002 else | |
5 0.000015 let rv = [ a:string[0 : end-1] ] + s:SplitCommands(a:string[end+1 : -1]) | |
9 0.000002 endif | |
9 0.000004 return rv | |
FUNCTION <SNR>181_show_sessions() | |
Defined: ~/.SpaceVim/bundle/vim-startify/autoload/startify.vim line 686 | |
Called 1 time | |
Total time: 0.000022 | |
Self time: 0.000022 | |
count total (s) self (s) | |
1 0.000002 let limit = get(g:, 'startify_session_number', 999) - 1 | |
1 0.000001 if limit <= -1 | |
return | |
1 0.000000 endif | |
1 0.000010 let sfiles = split(globpath(s:session_dir, '*'), '\n') | |
1 0.000002 let sfiles = filter(sfiles, 'v:val !~# "__LAST__$"') | |
1 0.000002 let sfiles = filter(sfiles, '!(v:val =~# "x\.vim$" && index(sfiles, v:val[:-6].".vim") >= 0)') | |
1 0.000001 if empty(sfiles) | |
1 0.000001 if exists('s:last_message') | |
1 0.000001 unlet s:last_message | |
1 0.000000 endif | |
1 0.000000 return | |
endif | |
if exists('s:last_message') | |
call s:print_section_header() | |
endif | |
if get(g:, 'startify_session_sort') | |
function! s:sort_by_mtime(foo, bar) | |
let foo = getftime(a:foo) | |
let bar = getftime(a:bar) | |
return foo == bar ? 0 : (foo < bar ? 1 : -1) | |
endfunction | |
call sort(sfiles, 's:sort_by_mtime') | |
endif | |
for i in range(len(sfiles)) | |
let index = s:get_index_as_string() | |
let fname = fnamemodify(sfiles[i], ':t') | |
let dname = sfiles[i] ==# v:this_session ? fname.' (*)' : fname | |
call append('$', s:padding_left .'['. index .']'. repeat(' ', (3 - strlen(index))) . dname) | |
if has('win32') | |
let fname = substitute(fname, '\[', '\[[]', 'g') | |
endif | |
call s:register(line('$'), index, 'session', 'SLoad', fname) | |
if i == limit | |
break | |
endif | |
endfor | |
call append('$', '') | |
FUNCTION unite#helper#get_input_list() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/helper.vim line 582 | |
Called 2 times | |
Total time: 0.000057 | |
Self time: 0.000020 | |
count total (s) self (s) | |
2 0.000056 0.000020 return map(split(a:input, '\\\@<! ', 1), " substitute(unite#util#expand(v:val), '\\\\ ', ' ', 'g')") | |
FUNCTION vital#vimfiler#new() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vital/vimfiler.vim line 24 | |
Called 5 times | |
Total time: 0.000051 | |
Self time: 0.000021 | |
count total (s) self (s) | |
5 0.000049 0.000020 return s:new(s:plugin_name) | |
FUNCTION <SNR>153_EditorConfigEnable() | |
Defined: ~/.SpaceVim/bundle/editorconfig-vim/plugin/editorconfig.vim line 252 | |
Called 1 time | |
Total time: 0.000094 | |
Self time: 0.000094 | |
count total (s) self (s) | |
1 0.000002 augroup editorconfig | |
1 0.000084 autocmd! | |
1 0.000001 if a:should_enable | |
1 0.000005 autocmd BufNewFile,BufReadPost,BufFilePost * call s:UseConfigFiles() | |
1 0.000000 endif | |
1 0.000000 augroup END | |
FUNCTION vimfiler#init#_get_postfix() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/init.vim line 631 | |
Called 1 time | |
Total time: 0.000098 | |
Self time: 0.000013 | |
count total (s) self (s) | |
1 0.000003 let buffers = get(a:000, 0, range(1, bufnr('$'))) | |
1 0.000093 0.000008 let buflist = vimfiler#util#sort_by(filter(map(buffers, 'bufname(v:val)'), 'stridx(v:val, a:prefix) >= 0'), "str2nr(matchstr(v:val, '\\d\\+$'))") | |
1 0.000001 if empty(buflist) | |
1 0.000000 return '' | |
endif | |
let num = matchstr(buflist[-1], '@\zs\d\+$') | |
return num == '' && !a:is_create ? '' : '@' . (a:is_create ? (num + 1) : num) | |
FUNCTION <SNR>81_get_string() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/util.vim line 35 | |
Called 2 times | |
Total time: 0.000712 | |
Self time: 0.000018 | |
count total (s) self (s) | |
2 0.000002 if !exists('s:String') | |
1 0.000706 0.000013 let s:String = unite#util#get_vital().import('Data.String') | |
2 0.000001 endif | |
2 0.000001 return s:String | |
FUNCTION <SNR>76_update_logo() | |
Defined: ~/.SpaceVim/config/plugins/vim-startify.vim line 3 | |
Called 3 times | |
Total time: 0.000122 | |
Self time: 0.000053 | |
count total (s) self (s) | |
3 0.000008 if !exists('g:startify_custom_header') && !exists('g:_spacevim_welcome_banners') | |
let g:startify_custom_header = ['','',' /###### /## /##/## ',' /##__ ## | ## | #|__/ ',' | ## \__/ /###### /###### /####### /######| ## | ##/##/######/#### ',' | ###### /##__ ##|____ ##/##_____//##__ #| ## / ##| #| ##_ ##_ ##',' \____ #| ## \ ## /######| ## | ########\ ## ##/| #| ## \ ## \ ##',' /## \ #| ## | ##/##__ #| ## | ##_____/ \ ###/ | #| ## | ## | ##',' | ######| #######| ######| ######| ####### \ #/ | #| ## | ## | ##',' \______/| ##____/ \_______/\_______/\_______/ \_/ |__|__/ |__/ |__/',' | ## ',' | ## ',' |__/ ',' version : ' . g:spacevim_version . ' by : spacevim.org','', ] | |
3 0.000004 elseif exists('g:_spacevim_welcome_banners') | |
3 0.000095 0.000026 let g:startify_custom_header = g:_spacevim_welcome_banners[s:NUM.random(0, len(g:_spacevim_welcome_banners))] | |
3 0.000001 endif | |
FUNCTION <SNR>98_fix_colorschem_in_SpaceVim() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/autocmds.vim line 127 | |
Called 1 time | |
Total time: 0.000024 | |
Self time: 0.000024 | |
count total (s) self (s) | |
1 0.000002 if &background ==# 'dark' | |
1 0.000001 if g:colors_name ==# 'gruvbox' | |
1 0.000006 hi VertSplit guibg=#282828 guifg=#181A1F | |
elseif g:colors_name ==# 'jellybeans' | |
hi VertSplit guibg=#151515 guifg=#080808 | |
elseif g:colors_name ==# 'nord' | |
hi VertSplit guibg=#2E3440 guifg=#262626 | |
elseif g:colors_name ==# 'srcery' | |
hi VertSplit guibg=#1C1B19 guifg=#262626 | |
hi clear Visual | |
hi Visual guibg=#303030 | |
elseif g:colors_name ==# 'NeoSolarized' | |
hi VertSplit guibg=#002b36 guifg=#181a1f | |
hi clear Pmenu | |
hi Pmenu guifg=#839496 guibg=#073642 | |
1 0.000000 endif | |
else | |
if g:colors_name ==# 'gruvbox' | |
hi VertSplit guibg=#fbf1c7 guifg=#e7e9e1 | |
endif | |
1 0.000000 endif | |
1 0.000006 hi SpaceVimLeaderGuiderGroupName cterm=bold ctermfg=175 gui=bold guifg=#d3869b | |
FUNCTION <SNR>95_sort_dirs() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/plugins/projectmanager.vim line 222 | |
Called 1 time | |
Total time: 0.000008 | |
Self time: 0.000008 | |
count total (s) self (s) | |
1 0.000004 let dir = get(sort(a:dirs, function('s:compare')), 0, '') | |
1 0.000002 let bufdir = getbufvar('%', 'rootDir', '') | |
1 0.000001 if bufdir ==# dir | |
return '' | |
1 0.000000 else | |
1 0.000000 return dir | |
endif | |
FUNCTION dein#util#_uniq() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/util.vim line 127 | |
Called 8 times | |
Total time: 0.000374 | |
Self time: 0.000374 | |
count total (s) self (s) | |
8 0.000017 let list = copy(a:list) | |
8 0.000006 let i = 0 | |
8 0.000005 let seen = {} | |
50 0.000043 while i < len(list) | |
42 0.000033 let key = list[i] | |
42 0.000046 if key !=# '' && has_key(seen, key) | |
2 0.000002 call remove(list, i) | |
40 0.000009 else | |
40 0.000019 if key !=# '' | |
40 0.000045 let seen[key] = 1 | |
40 0.000010 endif | |
40 0.000023 let i += 1 | |
42 0.000010 endif | |
50 0.000020 endwhile | |
8 0.000005 return list | |
FUNCTION <SNR>59_has_map_to_spc() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/mapping/space.vim line 605 | |
Called 315 times | |
Total time: 0.000552 | |
Self time: 0.000552 | |
count total (s) self (s) | |
315 0.000495 return get(g:, 'mapleader', '\') ==# ' ' | |
FUNCTION vimfiler#filters#matcher_ignore_pattern#define() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/filters/matcher_ignore_pattern.vim line 7 | |
Called 1 time | |
Total time: 0.000002 | |
Self time: 0.000002 | |
count total (s) self (s) | |
1 0.000001 return s:filter | |
FUNCTION unite#vimfiler_check_filetype() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite.vim line 273 | |
Called 2 times | |
Total time: 0.007438 | |
Self time: 0.000076 | |
count total (s) self (s) | |
2 0.007438 0.000076 return call('unite#start#vimfiler_check_filetype', a:000) | |
FUNCTION vimfiler#get_histories() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler.vim line 153 | |
Called 1 time | |
Total time: 0.000005 | |
Self time: 0.000005 | |
count total (s) self (s) | |
1 0.000002 if !exists('s:vimfiler_current_histories') | |
1 0.000001 let s:vimfiler_current_histories = [] | |
1 0.000000 endif | |
1 0.000001 return copy(s:vimfiler_current_histories) | |
FUNCTION <SNR>121_snr() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup.vim line 289 | |
Called 1 time | |
Total time: 0.000011 | |
Self time: 0.000011 | |
count total (s) self (s) | |
1 0.000010 return str2nr(matchstr(expand('<sfile>'), '<SNR>\zs\d\+\ze_snr$')) | |
FUNCTION <SNR>161_LocalBrowse() | |
Defined: /usr/share/nvim/runtime/plugin/netrwPlugin.vim line 102 | |
Called 4 times | |
Total time: 0.000066 | |
Self time: 0.000066 | |
count total (s) self (s) | |
" Unfortunate interaction -- only DechoMsg debugging calls can be safely used here. | |
" Otherwise, the BufEnter event gets triggered when attempts to write to | |
" the DBG buffer are made. | |
4 0.000006 if !exists("s:vimentered") | |
" If s:vimentered doesn't exist, then the VimEnter event hasn't fired. It will, | |
" and so s:VimEnter() will then be calling this routine, but this time with s:vimentered defined. | |
" call Dfunc("s:LocalBrowse(dirname<".a:dirname.">) (s:vimentered doesn't exist)") | |
" call Dret("s:LocalBrowse") | |
1 0.000000 return | |
3 0.000001 endif | |
" call Dfunc("s:LocalBrowse(dirname<".a:dirname.">) (s:vimentered=".s:vimentered.")") | |
3 0.000006 if has("amiga") | |
" The check against '' is made for the Amiga, where the empty | |
" string is the current directory and not checking would break | |
" things such as the help command. | |
" call Decho("(LocalBrowse) dirname<".a:dirname."> (isdirectory, amiga)") | |
if a:dirname != '' && isdirectory(a:dirname) | |
sil! call netrw#LocalBrowseCheck(a:dirname) | |
if exists("w:netrw_bannercnt") && line('.') < w:netrw_bannercnt | |
exe w:netrw_bannercnt | |
endif | |
endif | |
3 0.000007 elseif isdirectory(a:dirname) | |
" call Decho("(LocalBrowse) dirname<".a:dirname."> ft=".&ft." (isdirectory, not amiga)") | |
" call Dredir("LocalBrowse ft last set: ","verbose set ft") | |
sil! call netrw#LocalBrowseCheck(a:dirname) | |
if exists("w:netrw_bannercnt") && line('.') < w:netrw_bannercnt | |
exe w:netrw_bannercnt | |
endif | |
3 0.000001 else | |
" not a directory, ignore it | |
" call Decho("(LocalBrowse) dirname<".a:dirname."> not a directory, ignoring...") | |
3 0.000001 endif | |
" call Dret("s:LocalBrowse") | |
FUNCTION remote#host#Require() | |
Defined: /usr/share/nvim/runtime/autoload/remote/host.vim line 33 | |
Called 1 time | |
Total time: 0.044025 | |
Self time: 0.000027 | |
count total (s) self (s) | |
1 0.000002 if !has_key(s:hosts, a:name) | |
throw 'No host named "'.a:name.'" is registered' | |
1 0.000000 endif | |
1 0.000001 let host = s:hosts[a:name] | |
1 0.000001 if !host.channel && !host.initialized | |
1 0.000003 let host_info = { 'name': a:name, 'orig_name': get(host, 'orig_name', a:name) } | |
1 0.044011 0.000012 let host.channel = call(host.factory, [host_info]) | |
1 0.000002 let host.initialized = 1 | |
1 0.000001 endif | |
1 0.000002 return host.channel | |
FUNCTION dein#util#_get_lazy_plugins() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/util.vim line 624 | |
Called 48 times | |
Total time: 0.001597 | |
Self time: 0.001597 | |
count total (s) self (s) | |
48 0.001579 return filter(values(g:dein#_plugins), "!v:val.sourced && v:val.rtp !=# ''") | |
FUNCTION unite#variables#loaded_sources() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/variables.vim line 139 | |
Called 4 times | |
Total time: 0.000062 | |
Self time: 0.000030 | |
count total (s) self (s) | |
" Initialize load. | |
4 0.000045 0.000013 let unite = unite#get_current_unite() | |
4 0.000014 return a:0 == 0 ? unite.sources : get(filter(copy(unite.sources), 'v:val.name ==# a:1'), 0, {}) | |
FUNCTION provider#clipboard#Executable() | |
Defined: /usr/share/nvim/runtime/autoload/provider/clipboard.vim line 65 | |
Called 1 time | |
Total time: 0.042142 | |
Self time: 0.042142 | |
count total (s) self (s) | |
1 0.000002 if exists('g:clipboard') | |
if type({}) isnot# type(g:clipboard) || type({}) isnot# type(get(g:clipboard, 'copy', v:null)) || type({}) isnot# type(get(g:clipboard, 'paste', v:null)) | |
let s:err = 'clipboard: invalid g:clipboard' | |
return '' | |
endif | |
let s:copy = get(g:clipboard, 'copy', { '+': v:null, '*': v:null }) | |
let s:paste = get(g:clipboard, 'paste', { '+': v:null, '*': v:null }) | |
let s:cache_enabled = get(g:clipboard, 'cache_enabled', 0) | |
return get(g:clipboard, 'name', 'g:clipboard') | |
1 0.000002 elseif has('mac') | |
let s:copy['+'] = 'pbcopy' | |
let s:paste['+'] = 'pbpaste' | |
let s:copy['*'] = s:copy['+'] | |
let s:paste['*'] = s:paste['+'] | |
let s:cache_enabled = 0 | |
return 'pbcopy' | |
1 0.000003 elseif exists('$WAYLAND_DISPLAY') && executable('wl-copy') && executable('wl-paste') | |
let s:copy['+'] = 'wl-copy --foreground --type text/plain' | |
let s:paste['+'] = 'wl-paste --no-newline' | |
let s:copy['*'] = 'wl-copy --foreground --primary --type text/plain' | |
let s:paste['*'] = 'wl-paste --no-newline --primary' | |
return 'wl-copy' | |
1 0.000001 elseif exists('$DISPLAY') && executable('xclip') | |
let s:copy['+'] = 'xclip -quiet -i -selection clipboard' | |
let s:paste['+'] = 'xclip -o -selection clipboard' | |
let s:copy['*'] = 'xclip -quiet -i -selection primary' | |
let s:paste['*'] = 'xclip -o -selection primary' | |
return 'xclip' | |
1 0.000002 elseif exists('$DISPLAY') && executable('xsel') && s:cmd_ok('xsel -o -b') | |
let s:copy['+'] = 'xsel --nodetach -i -b' | |
let s:paste['+'] = 'xsel -o -b' | |
let s:copy['*'] = 'xsel --nodetach -i -p' | |
let s:paste['*'] = 'xsel -o -p' | |
return 'xsel' | |
1 0.022976 elseif executable('lemonade') | |
let s:copy['+'] = 'lemonade copy' | |
let s:paste['+'] = 'lemonade paste' | |
let s:copy['*'] = 'lemonade copy' | |
let s:paste['*'] = 'lemonade paste' | |
return 'lemonade' | |
1 0.019081 elseif executable('doitclient') | |
let s:copy['+'] = 'doitclient wclip' | |
let s:paste['+'] = 'doitclient wclip -r' | |
let s:copy['*'] = s:copy['+'] | |
let s:paste['*'] = s:paste['+'] | |
return 'doitclient' | |
1 0.000031 elseif executable('win32yank.exe') | |
1 0.000004 let s:copy['+'] = 'win32yank.exe -i --crlf' | |
1 0.000001 let s:paste['+'] = 'win32yank.exe -o --lf' | |
1 0.000002 let s:copy['*'] = s:copy['+'] | |
1 0.000001 let s:paste['*'] = s:paste['+'] | |
1 0.000001 return 'win32yank' | |
elseif exists('$TMUX') && executable('tmux') | |
let s:copy['+'] = 'tmux load-buffer -' | |
let s:paste['+'] = 'tmux save-buffer -' | |
let s:copy['*'] = s:copy['+'] | |
let s:paste['*'] = s:paste['+'] | |
return 'tmux' | |
endif | |
let s:err = 'clipboard: No clipboard tool. :help clipboard' | |
return '' | |
FUNCTION <SNR>116_setup_keymaps() | |
Defined: ~/.SpaceVim/bundle/tagbar/plugin/tagbar.vim line 96 | |
Called 1 time | |
Total time: 0.000214 | |
Self time: 0.000117 | |
count total (s) self (s) | |
1 0.000014 let keymaps = [ ['jump', '<CR>'], ['preview', 'p'], ['previewwin', 'P'], ['nexttag', '<C-N>'], ['prevtag', '<C-P>'], ['showproto', '<Space>'], ['hidenonpublic', 'v'], ['openfold', ['+', '<kPlus>', 'zo']], ['closefold', ['-', '<kMinus>', 'zc']], ['togglefold', ['o', 'za']], ['openallfolds', ['*', '<kMultiply>', 'zR']], ['closeallfolds', ['=', 'zM']], ['incrementfolds', ['zr']], ['decrementfolds', ['zm']], ['nextfold', 'zj'], ['prevfold', 'zk'], ['togglesort', 's'], ['togglecaseinsensitive', 'i'], ['toggleautoclose', 'c'], ['zoomwin', 'x'], ['close', 'q'], ['help', ['<F1>', '?']], ] | |
23 0.000014 for [map, key] in keymaps | |
22 0.000166 0.000069 call s:init_var('map_' . map, key) | |
22 0.000010 unlet key | |
23 0.000006 endfor | |
FUNCTION dein#util#_substitute_path() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/util.vim line 591 | |
Called 2 times | |
Total time: 0.000007 | |
Self time: 0.000007 | |
count total (s) self (s) | |
2 0.000006 return ((s:is_windows || has('win32unix')) && a:path =~# '\\') ? tr(a:path, '\', '/') : a:path | |
FUNCTION vimfiler#set_extensions() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler.vim line 39 | |
Called 5 times | |
Total time: 0.000185 | |
Self time: 0.000185 | |
count total (s) self (s) | |
5 0.000010 let g:vimfiler_extensions = get(g:, 'vimfiler_extensions', {}) | |
5 0.000007 let g:vimfiler_extensions[a:kind] = {} | |
69 0.000068 for ext in split(a:exts, '\s*,\s*') | |
64 0.000072 let g:vimfiler_extensions[a:kind][ext] = 1 | |
69 0.000017 endfor | |
FUNCTION SpaceVim#layers#autocomplete#set_variable() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/autocomplete.vim line 210 | |
Called 1 time | |
Total time: 0.000016 | |
Self time: 0.000016 | |
count total (s) self (s) | |
1 0.000004 let s:return_key_behavior = get(a:var, 'auto_completion_return_key_behavior', get(a:var, 'auto-completion-return-key-behavior', s:return_key_behavior)) | |
1 0.000003 let s:tab_key_behavior = get(a:var, 'auto_completion_tab_key_behavior', get(a:var, 'auto-completion-tab-key-behavior', s:tab_key_behavior)) | |
1 0.000003 let g:_spacevim_key_sequence = get(a:var, 'auto_completion_complete_with_key_sequence', get(a:var, 'auto-completion-complete-with-key-sequence', g:_spacevim_key_sequence)) | |
1 0.000003 let g:_spacevim_key_sequence_delay = get(a:var, 'auto_completion_complete_with_key_sequence_delay', get(a:var, 'auto-completion-complete-with-key-sequence-delay', s:key_sequence_delay)) | |
1 0.000003 let g:_spacevim_autocomplete_delay = get(a:var, 'auto_completion_delay', get(a:var, 'auto-completion-delay', g:_spacevim_autocomplete_delay)) | |
FUNCTION <SNR>186_buffer_default_settings() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/init.vim line 596 | |
Called 1 time | |
Total time: 0.000035 | |
Self time: 0.000035 | |
count total (s) self (s) | |
1 0.000003 setlocal buftype=nofile | |
1 0.000002 setlocal noswapfile | |
1 0.000001 setlocal noreadonly | |
1 0.000001 setlocal nowrap | |
1 0.000001 setlocal nospell | |
1 0.000001 setlocal bufhidden=hide | |
1 0.000002 setlocal foldcolumn=0 | |
1 0.000001 setlocal nofoldenable | |
1 0.000001 setlocal nowrap | |
1 0.000001 setlocal nomodifiable | |
1 0.000001 setlocal nomodified | |
1 0.000001 setlocal nolist | |
1 0.000002 if exists('&colorcolumn') | |
1 0.000001 setlocal colorcolumn= | |
1 0.000000 endif | |
1 0.000001 if has('conceal') | |
1 0.000001 if &l:conceallevel < 2 | |
1 0.000001 setlocal conceallevel=2 | |
1 0.000000 endif | |
1 0.000001 setlocal concealcursor=nvc | |
1 0.000000 endif | |
1 0.000001 if b:vimfiler.context.explorer | |
1 0.000001 setlocal nobuflisted | |
1 0.000000 endif | |
1 0.000002 if g:vimfiler_force_overwrite_statusline && &l:statusline !=# b:vimfiler.statusline | |
1 0.000003 let &l:statusline = b:vimfiler.statusline | |
1 0.000000 endif | |
FUNCTION vimfiler#init#_command() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/init.vim line 82 | |
Called 1 time | |
Total time: 0.056282 | |
Self time: 0.000031 | |
count total (s) self (s) | |
1 0.000001 let args = [] | |
1 0.000001 let options = a:default | |
1 0.000005 for arg in split(a:args, '\%(\\\@<!\s\)\+') | |
let arg = substitute(arg, '\\\( \)', '\1', 'g') | |
let arg_key = substitute(arg, '=\zs.*$', '', '') | |
let matched_list = filter(copy(vimfiler#variables#options()), 'v:val ==# arg_key') | |
for option in matched_list | |
let key = substitute(substitute(option, '-', '_', 'g'), '=$', '', '')[1:] | |
let options[key] = (option =~ '=$') ? arg[len(option) :] : 1 | |
break | |
endfor | |
if empty(matched_list) | |
call add(args, arg) | |
endif | |
1 0.000000 endfor | |
1 0.056262 0.000011 call vimfiler#init#_start(join(args), options) | |
FUNCTION SpaceVim#default#layers() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/default.vim line 144 | |
Called 1 time | |
Total time: 0.003486 | |
Self time: 0.000065 | |
count total (s) self (s) | |
1 0.000242 0.000024 call SpaceVim#layers#load('autocomplete') | |
1 0.000315 0.000006 call SpaceVim#layers#load('checkers') | |
1 0.000108 0.000004 call SpaceVim#layers#load('format') | |
1 0.000780 0.000004 call SpaceVim#layers#load('edit') | |
1 0.000269 0.000006 call SpaceVim#layers#load('ui') | |
1 0.000371 0.000004 call SpaceVim#layers#load('core') | |
1 0.000095 0.000005 call SpaceVim#layers#load('core#banner') | |
1 0.001046 0.000004 call SpaceVim#layers#load('core#statusline') | |
1 0.000260 0.000006 call SpaceVim#layers#load('core#tabline') | |
FUNCTION dein#call_hook() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein.vim line 158 | |
Called 3 times | |
Total time: 0.156562 | |
Self time: 0.000022 | |
count total (s) self (s) | |
3 0.156560 0.000021 return call('dein#util#_call_hook', [a:hook_name] + a:000) | |
FUNCTION <SNR>111_normalize_property_names() | |
Defined: ~/.SpaceVim/bundle/vim-textobj-user/autoload/textobj/user.vim line 403 | |
Called 3 times | |
Total time: 0.000155 | |
Self time: 0.000155 | |
count total (s) self (s) | |
7 0.000010 for spec in values(a:obj_specs) | |
20 0.000017 for old_prop_name in keys(spec) | |
16 0.000031 if old_prop_name =~ '^\*.*\*$' | |
4 0.000018 let new_prop_name = substitute(old_prop_name, '^\*\(.*\)\*$', '\1', '') | |
4 0.000006 let spec[new_prop_name] = spec[old_prop_name] | |
4 0.000003 unlet spec[old_prop_name] | |
16 0.000004 endif | |
20 0.000006 endfor | |
7 0.000003 endfor | |
FUNCTION unite#util#lcd() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/util.vim line 395 | |
Called 4 times | |
Total time: 0.000064 | |
Self time: 0.000064 | |
count total (s) self (s) | |
4 0.000012 if isdirectory(a:dir) | |
4 0.000049 execute (haslocaldir() ? 'lcd' : 'cd') fnameescape(a:dir) | |
4 0.000001 endif | |
FUNCTION SpaceVim#layers#isLoaded() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers.vim line 118 | |
Called 7 times | |
Total time: 0.000024 | |
Self time: 0.000024 | |
count total (s) self (s) | |
7 0.000022 return index(s:enabled_layers, a:layer) != -1 | |
FUNCTION <SNR>104_ftplugin() | |
Defined: ~/.cache/vimfiles/.cache/init.vim/.dein/ftplugin.vim line 10 | |
Called 3 times | |
Total time: 0.001998 | |
Self time: 0.001997 | |
count total (s) self (s) | |
3 0.000004 if exists("b:undo_ftplugin") | |
silent! execute b:undo_ftplugin | |
unlet! b:undo_ftplugin b:did_ftplugin | |
3 0.000001 endif | |
3 0.000005 let filetype = expand("<amatch>") | |
3 0.000003 if filetype !=# "" | |
3 0.000008 if &cpoptions =~# "S" && exists("b:did_ftplugin") | |
unlet b:did_ftplugin | |
3 0.000001 endif | |
6 0.000011 for ft in split(filetype, '\.') | |
3 0.001922 execute "runtime! ftplugin/" . ft . ".vim" "ftplugin/" . ft . "_*.vim" "ftplugin/" . ft . "/*.vim" | |
6 0.000005 endfor | |
3 0.000001 endif | |
3 0.000022 0.000021 call s:after_ftplugin() | |
FUNCTION SpaceVim#plugins#loadPluginBefore() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/plugins.vim line 274 | |
Called 5 times | |
Total time: 0.000269 | |
Self time: 0.000066 | |
count total (s) self (s) | |
5 0.000016 if matchend(a:plugin, "\\.vim") == len(a:plugin) | |
2 0.000192 0.000009 call SpaceVim#util#loadConfig('plugins_before/' . a:plugin) | |
3 0.000006 elseif matchend(a:plugin, "\\.nvim") == len(a:plugin) | |
call SpaceVim#util#loadConfig('plugins_before/' . a:plugin[:-6] . '.vim') | |
3 0.000001 else | |
3 0.000033 0.000013 call SpaceVim#util#loadConfig('plugins_before/' . a:plugin . '.vim') | |
5 0.000001 endif | |
FUNCTION SpaceVim#custom#apply() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/custom.vim line 88 | |
Called 1 time | |
Total time: 0.000430 | |
Self time: 0.000144 | |
count total (s) self (s) | |
" the type can be local or global | |
" local config can override global config | |
1 0.000002 if type(a:config) != type({}) | |
call SpaceVim#logger#info('config type is wrong!') | |
1 0.000000 else | |
1 0.000023 0.000004 call SpaceVim#logger#info('start to apply config [' . a:type . ']') | |
1 0.000002 let options = get(a:config, 'options', {}) | |
9 0.000010 for [name, value] in items(options) | |
8 0.000005 if name ==# 'filemanager' | |
if value ==# 'defx' && !has("python3") | |
call SpaceVim#logger#warn('defx requires +python3!', 0) | |
continue | |
endif | |
8 0.000002 endif | |
8 0.000018 exe 'let g:spacevim_' . name . ' = value' | |
8 0.000005 if name ==# 'project_rooter_patterns' | |
" clear rooter cache | |
call SpaceVim#plugins#projectmanager#current_root() | |
8 0.000002 endif | |
8 0.000003 unlet value | |
9 0.000003 endfor | |
1 0.000001 if g:spacevim_debug_level !=# 1 | |
call SpaceVim#logger#setLevel(g:spacevim_debug_level) | |
1 0.000000 endif | |
1 0.000002 let layers = get(a:config, 'layers', []) | |
3 0.000002 for layer in layers | |
2 0.000003 let enable = get(layer, 'enable', 1) | |
2 0.000006 if (type(enable) == type('') && !eval(enable)) || (type(enable) != type('') && !enable) | |
call SpaceVim#layers#disable(layer.name) | |
2 0.000001 else | |
2 0.000276 0.000009 call SpaceVim#layers#load(layer.name, layer) | |
2 0.000001 endif | |
3 0.000001 endfor | |
1 0.000002 let custom_plugins = get(a:config, 'custom_plugins', []) | |
1 0.000001 for plugin in custom_plugins | |
" name is an option for dein, we need to use repo instead | |
" but we also need to keep backward compatible! | |
" this the first argv should be get(plugin, 'repo', get(plugin, 'name', | |
" '')) | |
" BTW, we also need to check if the plugin has name or repo key | |
if has_key(plugin, 'repo') | |
call add(g:spacevim_custom_plugins, [plugin.repo, plugin]) | |
elseif has_key(plugin, 'name') | |
call add(g:spacevim_custom_plugins, [plugin.name, plugin]) | |
else | |
call SpaceVim#logger#warn('custom_plugins should contains repo key!') | |
call SpaceVim#logger#info(string(plugin)) | |
endif | |
1 0.000000 endfor | |
1 0.000002 let bootstrap_before = get(options, 'bootstrap_before', '') | |
1 0.000002 let g:_spacevim_bootstrap_after = get(options, 'bootstrap_after', '') | |
1 0.000001 if !empty(bootstrap_before) | |
try | |
call call(bootstrap_before, []) | |
catch | |
call SpaceVim#logger#error('failed to call bootstrap_before function: ' . bootstrap_before) | |
call SpaceVim#logger#error(' exception: ' . v:exception) | |
call SpaceVim#logger#error(' throwpoint: ' . v:throwpoint) | |
endtry | |
1 0.000000 endif | |
1 0.000000 endif | |
FUNCTION <SNR>111_normalize() | |
Defined: ~/.SpaceVim/bundle/vim-textobj-user/autoload/textobj/user.vim line 398 | |
Called 3 times | |
Total time: 0.000671 | |
Self time: 0.000036 | |
count total (s) self (s) | |
3 0.000171 0.000016 call s:normalize_property_names(a:obj_specs) | |
3 0.000499 0.000019 call s:normalize_property_values(a:obj_specs) | |
FUNCTION <SNR>26__function() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/edit.vim line 657 | |
Called 30 times | |
Total time: 0.000076 | |
Self time: 0.000076 | |
count total (s) self (s) | |
30 0.000071 return function(a:fstr) | |
FUNCTION unite#custom#get() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/custom.vim line 10 | |
Called 41 times | |
Total time: 0.000252 | |
Self time: 0.000252 | |
count total (s) self (s) | |
41 0.000058 if !exists('s:custom') | |
1 0.000001 let s:custom = {} | |
1 0.000001 let s:custom.sources = {} | |
1 0.000001 let s:custom.sources._ = {} | |
1 0.000001 let s:custom.actions = {} | |
1 0.000001 let s:custom.default_actions = {} | |
1 0.000001 let s:custom.aliases = {} | |
1 0.000001 let s:custom.profiles = {} | |
41 0.000012 endif | |
41 0.000024 return s:custom | |
FUNCTION matchup#perf#timeout() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup/perf.vim line 79 | |
Called 2 times | |
Total time: 0.000003 | |
Self time: 0.000003 | |
count total (s) self (s) | |
2 0.000003 return float2nr(s:timeout) | |
FUNCTION vimproc#util#substitute_path_separator() | |
Defined: ~/.SpaceVim/bundle/vimproc.vim/autoload/vimproc/util.vim line 91 | |
Called 1 time | |
Total time: 0.000002 | |
Self time: 0.000002 | |
count total (s) self (s) | |
1 0.000002 return s:is_windows ? substitute(a:path, '\\', '/', 'g') : a:path | |
FUNCTION <SNR>192_is_funcref() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vital/_vimfiler/Prelude.vim line 92 | |
Called 1 time | |
Total time: 0.000002 | |
Self time: 0.000002 | |
count total (s) self (s) | |
1 0.000002 return type(a:Value) ==# s:__TYPE_FUNCREF | |
FUNCTION SpaceVim#mapping#z#init() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/mapping/z.vim line 9 | |
Called 1 time | |
Total time: 0.000187 | |
Self time: 0.000187 | |
count total (s) self (s) | |
1 0.000005 nnoremap <silent><nowait> [Z] :<c-u>LeaderGuide "z"<CR> | |
1 0.000002 nmap z [Z] | |
1 0.000002 let g:_spacevim_mappings_z = {} | |
1 0.000002 let g:_spacevim_mappings_z['<CR>'] = ['call feedkeys("z\<CR>", "n")', 'cursor line to top'] | |
1 0.000003 nnoremap z<CR> z<CR> | |
1 0.000002 let g:_spacevim_mappings_z['+'] = ['call feedkeys("z+", "n")', 'cursor to screen top line N'] | |
1 0.000002 nnoremap z+ z+ | |
1 0.000002 let g:_spacevim_mappings_z['-'] = ['call feedkeys("z-", "n")', 'cursor to screen bottom line N'] | |
1 0.000002 nnoremap z- z- | |
1 0.000002 let g:_spacevim_mappings_z['^'] = ['call feedkeys("z^", "n")', 'cursor to screen bottom line N'] | |
1 0.000002 nnoremap z^ z^ | |
1 0.000002 let g:_spacevim_mappings_z['.'] = ['call feedkeys("z.", "n")', 'cursor line to center'] | |
1 0.000002 nnoremap z. z. | |
1 0.000002 let g:_spacevim_mappings_z['='] = ['call feedkeys("z=", "n")', 'spelling suggestions'] | |
1 0.000002 nnoremap z= z= | |
1 0.000002 let g:_spacevim_mappings_z['A'] = ['call feedkeys("zA", "n")', 'toggle folds recursively'] | |
1 0.000002 nnoremap zA zA | |
1 0.000002 let g:_spacevim_mappings_z['C'] = ['call feedkeys("zC", "n")', 'close folds recursively'] | |
1 0.000002 nnoremap zC zC | |
1 0.000002 let g:_spacevim_mappings_z['D'] = ['call feedkeys("zD", "n")', 'delete folds recursively'] | |
1 0.000002 nnoremap zD zD | |
1 0.000002 let g:_spacevim_mappings_z['E'] = ['call feedkeys("zE", "n")', 'eliminate all folds'] | |
1 0.000002 nnoremap zE zE | |
1 0.000002 let g:_spacevim_mappings_z['F'] = ['call feedkeys("zF", "n")', 'create a fold for N lines'] | |
1 0.000002 nnoremap zF zF | |
1 0.000002 let g:_spacevim_mappings_z['G'] = ['call feedkeys("zG", "n")', 'mark good spelled (update internal wordlist)'] | |
1 0.000002 nnoremap zG zG | |
1 0.000002 let g:_spacevim_mappings_z['H'] = ['call feedkeys("zH", "n")', 'scroll half a screenwidth to the right'] | |
1 0.000002 nnoremap zH zH | |
1 0.000002 let g:_spacevim_mappings_z['L'] = ['call feedkeys("zL", "n")', 'scroll half a screenwidth to the left'] | |
1 0.000002 nnoremap zL zL | |
1 0.000002 let g:_spacevim_mappings_z['M'] = ['call feedkeys("zM", "n")', 'set `foldlevel` to zero'] | |
1 0.000002 nnoremap zM zM | |
1 0.000001 let g:_spacevim_mappings_z['N'] = ['call feedkeys("zN", "n")', 'set `foldenable`'] | |
1 0.000002 nnoremap zN zN | |
1 0.000002 let g:_spacevim_mappings_z['O'] = ['call feedkeys("zO", "n")', 'open folds recursively'] | |
1 0.000002 nnoremap zO zO | |
1 0.000002 let g:_spacevim_mappings_z['R'] = ['call feedkeys("zR", "n")', 'set `foldlevel` to deepest fold'] | |
1 0.000002 nnoremap zR zR | |
1 0.000002 let g:_spacevim_mappings_z['W'] = ['call feedkeys("zW", "n")', 'mark wrong spelled (update internal wordlist)'] | |
1 0.000002 nnoremap zW zW | |
1 0.000001 let g:_spacevim_mappings_z['X'] = ['call feedkeys("zX", "n")', 're-apply `foldleve`'] | |
1 0.000002 nnoremap zX zX | |
1 0.000001 let g:_spacevim_mappings_z['a'] = ['call feedkeys("za", "n")', 'toggle a fold'] | |
1 0.000002 nnoremap za za | |
1 0.000002 let g:_spacevim_mappings_z['b'] = ['call feedkeys("zb", "n")', 'redraw, cursor line at bottom'] | |
1 0.000002 nnoremap zb zb | |
1 0.000001 let g:_spacevim_mappings_z['c'] = ['call feedkeys("zc", "n")', 'close a fold'] | |
1 0.000002 nnoremap zc zc | |
1 0.000001 let g:_spacevim_mappings_z['d'] = ['call feedkeys("zd", "n")', 'delete a fold'] | |
1 0.000002 nnoremap zd zd | |
1 0.000002 let g:_spacevim_mappings_z['e'] = ['call feedkeys("ze", "n")', 'right scroll horizontally to cursor position'] | |
1 0.000002 nnoremap ze ze | |
1 0.000002 let g:_spacevim_mappings_z['f'] = ['call feedkeys("zf", "n")', 'create a fold for motion'] | |
1 0.000002 nnoremap zf zf | |
1 0.000001 let g:_spacevim_mappings_z['g'] = ['call feedkeys("zg", "n")', 'mark good spelled'] | |
1 0.000002 nnoremap zg zg | |
1 0.000002 let g:_spacevim_mappings_z['h'] = ['call feedkeys("zh", "n")', 'scroll screen N characters to right'] | |
1 0.000002 nnoremap zh zh | |
1 0.000002 let g:_spacevim_mappings_z['<Left>'] = ['call feedkeys("zh", "n")', 'scroll screen N characters to right'] | |
1 0.000003 nnoremap z<Left> zh | |
1 0.000001 let g:_spacevim_mappings_z['i'] = ['call feedkeys("zi", "n")', 'toggle foldenable'] | |
1 0.000002 nnoremap zi zi | |
1 0.000002 let g:_spacevim_mappings_z['j'] = ['call feedkeys("zj", "n")', 'move to start of next fold'] | |
1 0.000002 nnoremap zj zj | |
1 0.000002 let g:_spacevim_mappings_z['J'] = ['call feedkeys("zjzx", "n")', 'move to and open next fold'] | |
1 0.000002 nnoremap zJ zjzx | |
1 0.000002 let g:_spacevim_mappings_z['k'] = ['call feedkeys("zk", "n")', 'move to end of previous fold'] | |
1 0.000002 nnoremap zk zk | |
1 0.000002 let g:_spacevim_mappings_z['K'] = ['call feedkeys("zkzx", "n")', 'move to and open previous fold'] | |
1 0.000002 nnoremap zK zkzx | |
1 0.000002 let g:_spacevim_mappings_z['l'] = ['call feedkeys("zl", "n")', 'scroll screen N characters to left'] | |
1 0.000002 nnoremap zl zl | |
1 0.000002 let g:_spacevim_mappings_z['<Right>'] = ['call feedkeys("zl", "n")', 'scroll screen N characters to left'] | |
1 0.000003 nnoremap z<Right> zl | |
1 0.000004 let g:_spacevim_mappings_z['m'] = ['call feedkeys("zm", "n")', 'subtract one from `foldlevel`'] | |
1 0.000002 nnoremap zm zm | |
1 0.000002 let g:_spacevim_mappings_z['n'] = ['call feedkeys("zn", "n")', 'reset `foldenable`'] | |
1 0.000002 nnoremap zn zn | |
1 0.000001 let g:_spacevim_mappings_z['o'] = ['call feedkeys("zo", "n")', 'open fold'] | |
1 0.000002 nnoremap zo zo | |
1 0.000001 let g:_spacevim_mappings_z['r'] = ['call feedkeys("zr", "n")', 'add one to `foldlevel`'] | |
1 0.000002 nnoremap zr zr | |
1 0.000002 let g:_spacevim_mappings_z.s = ['call feedkeys("zs", "n")', 'left scroll horizontally to cursor position'] | |
1 0.000002 nnoremap zs zs | |
1 0.000002 let g:_spacevim_mappings_z['t'] = ['call feedkeys("zt", "n")', 'cursor line at top of window'] | |
1 0.000002 nnoremap zt zt | |
1 0.000003 let g:_spacevim_mappings_z['v'] = ['call feedkeys("zv", "n")', 'open enough folds to view cursor line'] | |
1 0.000002 nnoremap zv zv | |
1 0.000004 let g:_spacevim_mappings_z['w'] = ['call feedkeys("zw", "n")', 'mark wrong spelled'] | |
1 0.000003 nnoremap zw zw | |
1 0.000003 let g:_spacevim_mappings_z['x'] = ['call feedkeys("zx", "n")', 're-apply foldlevel and do "zV"'] | |
1 0.000002 nnoremap zx zx | |
" smart scroll | |
1 0.000002 let g:_spacevim_mappings_z['z'] = ['call feedkeys("zz", "n")', 'smart scroll'] | |
1 0.000002 nnoremap zz zz | |
FUNCTION SpaceVim#custom#load() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/custom.vim line 161 | |
Called 1 time | |
Total time: 0.000616 | |
Self time: 0.000091 | |
count total (s) self (s) | |
" if file .SpaceVim.d/init.toml exist | |
1 0.000005 if filereadable('.SpaceVim.d/init.toml') | |
1 0.000017 0.000011 let g:_spacevim_config_path = s:CMP.resolve(fnamemodify('.SpaceVim.d/init.toml', ':p')) | |
1 0.000037 0.000014 let &rtp = s:FILE.unify_path(s:CMP.resolve(fnamemodify('.SpaceVim.d', ':p:h'))) . ',' . &rtp | |
1 0.000001 let local_conf = g:_spacevim_config_path | |
1 0.000025 0.000005 call SpaceVim#logger#info('find local conf: ' . local_conf) | |
1 0.000019 0.000005 let local_conf_cache = s:path_to_fname(local_conf) | |
1 0.000005 if getftime(local_conf) < getftime(local_conf_cache) | |
1 0.000021 0.000004 call SpaceVim#logger#info('loading cached local conf: ' . local_conf_cache) | |
1 0.000027 0.000015 let conf = s:JSON.json_decode(join(readfile(local_conf_cache, ''), '')) | |
1 0.000434 0.000004 call SpaceVim#custom#apply(conf, 'local') | |
else | |
let conf = s:TOML.parse_file(local_conf) | |
call SpaceVim#logger#info('generate local conf: ' . local_conf_cache) | |
call writefile([s:JSON.json_encode(conf)], local_conf_cache) | |
call SpaceVim#custom#apply(conf, 'local') | |
1 0.000000 endif | |
1 0.000001 if g:spacevim_force_global_config | |
call SpaceVim#logger#info('force loading global config >>>') | |
call s:load_glob_conf() | |
1 0.000000 endif | |
elseif filereadable('.SpaceVim.d/init.vim') | |
let g:_spacevim_config_path = fnamemodify('.SpaceVim.d/init.vim', ':p') | |
let &rtp = s:FILE.unify_path(s:CMP.resolve(fnamemodify('.SpaceVim.d', ':p:h'))) . ',' . &rtp | |
let local_conf = g:_spacevim_config_path | |
call SpaceVim#logger#info('find local conf: ' . local_conf) | |
exe 'source .SpaceVim.d/init.vim' | |
if g:spacevim_force_global_config | |
call SpaceVim#logger#info('force loading global config >>>') | |
call s:load_glob_conf() | |
endif | |
else | |
call SpaceVim#logger#info('Can not find project local config, start loading global config') | |
call s:load_glob_conf() | |
1 0.000000 endif | |
1 0.000001 if g:spacevim_enable_ycm && g:spacevim_snippet_engine !=# 'ultisnips' | |
call SpaceVim#logger#info('YCM only support ultisnips, change g:spacevim_snippet_engine to ultisnips') | |
let g:spacevim_snippet_engine = 'ultisnips' | |
1 0.000000 endif | |
FUNCTION unite#helper#convert_source_name() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/helper.vim line 279 | |
Called 2 times | |
Total time: 0.000047 | |
Self time: 0.000022 | |
count total (s) self (s) | |
2 0.000034 0.000010 let unite = unite#get_current_unite() | |
2 0.000010 return (len(unite.sources) == 1 || !unite.context.short_source_names) ? a:source_name : a:source_name !~ '\A' ? a:source_name[:1] : substitute(a:source_name, '\a\zs\a\+', '', 'g') | |
FUNCTION dein#_init() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein.vim line 7 | |
Called 1 time | |
Total time: 0.000054 | |
Self time: 0.000054 | |
count total (s) self (s) | |
1 0.000002 let g:dein#_cache_version = 150 | |
1 0.000002 let g:dein#_merged_format = "{'repo': v:val.repo, 'rev': get(v:val, 'rev', '')}" | |
1 0.000001 let g:dein#_merged_length = 3 | |
1 0.000001 let g:dein#name = '' | |
1 0.000001 let g:dein#plugin = {} | |
1 0.000001 let g:dein#_plugins = {} | |
1 0.000001 let g:dein#_base_path = '' | |
1 0.000001 let g:dein#_cache_path = '' | |
1 0.000001 let g:dein#_runtime_path = '' | |
1 0.000001 let g:dein#_hook_add = '' | |
1 0.000001 let g:dein#_ftplugin = {} | |
1 0.000001 let g:dein#_off1 = '' | |
1 0.000001 let g:dein#_off2 = '' | |
1 0.000001 let g:dein#_vimrcs = [] | |
1 0.000001 let g:dein#_block_level = 0 | |
1 0.000001 let g:dein#_event_plugins = {} | |
1 0.000005 let g:dein#_is_sudo = $SUDO_USER !=# '' && $USER !=# $SUDO_USER && $HOME !=# expand('~'.$USER) && $HOME ==# expand('~'.$SUDO_USER) | |
1 0.000002 let g:dein#_progname = fnamemodify(v:progname, ':r') | |
1 0.000002 let g:dein#_init_runtimepath = &runtimepath | |
1 0.000001 augroup dein | |
1 0.000001 autocmd! | |
1 0.000004 autocmd FuncUndefined * call dein#autoload#_on_func(expand('<afile>')) | |
1 0.000003 autocmd BufRead *? call dein#autoload#_on_default_event('BufRead') | |
1 0.000003 autocmd BufNew,BufNewFile *? call dein#autoload#_on_default_event('BufNew') | |
1 0.000002 autocmd VimEnter *? call dein#autoload#_on_default_event('VimEnter') | |
1 0.000002 autocmd FileType *? call dein#autoload#_on_default_event('FileType') | |
1 0.000005 autocmd BufWritePost *.vim,*.toml,vimrc,.vimrc call dein#util#_check_vimrcs() | |
1 0.000000 augroup END | |
1 0.000001 augroup dein-events | augroup END | |
1 0.000003 if !exists('##CmdUndefined') | return | endif | |
1 0.000003 autocmd dein CmdUndefined * call dein#autoload#_on_pre_cmd(expand('<afile>')) | |
FUNCTION unite#get_context() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite.vim line 163 | |
Called 14 times | |
Total time: 0.000230 | |
Self time: 0.000092 | |
count total (s) self (s) | |
14 0.000193 0.000056 let unite = unite#get_current_unite() | |
14 0.000030 return has_key(unite, 'context') ? unite.context : unite#init#_context({}) | |
FUNCTION <SNR>171_ResetConcealOption() | |
Defined: ~/.SpaceVim/bundle/indentLine/after/plugin/indentLine.vim line 110 | |
Called 4 times | |
Total time: 0.000032 | |
Self time: 0.000032 | |
count total (s) self (s) | |
4 0.000008 if exists("b:indentLine_ConcealOptionSet") && b:indentLine_ConcealOptionSet | |
1 0.000002 if exists("b:indentLine_original_concealcursor") | |
1 0.000002 let &l:concealcursor = b:indentLine_original_concealcursor | |
1 0.000000 endif | |
1 0.000001 if exists("b:indentLine_original_conceallevel") | |
1 0.000002 let &l:conceallevel = b:indentLine_original_conceallevel | |
1 0.000000 endif | |
1 0.000001 let b:indentLine_ConcealOptionSet = 0 | |
4 0.000001 endif | |
FUNCTION dein#autoload#_on_cmd() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/autoload.vim line 168 | |
Called 1 time | |
Total time: 0.066535 | |
Self time: 0.000145 | |
count total (s) self (s) | |
1 0.006366 0.000005 call dein#source(a:name) | |
1 0.000003 if exists(':' . a:command) != 2 | |
call dein#util#_error(printf('command %s is not found.', a:command)) | |
return | |
1 0.000000 endif | |
1 0.000003 let range = (a:line1 == a:line2) ? '' : (a:line1 == line("'<") && a:line2 == line("'>")) ? "'<,'>" : a:line1.','.a:line2 | |
1 0.000000 try | |
1 0.060156 0.000127 execute range.a:command.a:bang a:args | |
catch /^Vim\%((\a\+)\)\=:E481/ | |
" E481: No range allowed | |
execute a:command.a:bang a:args | |
1 0.000000 endtry | |
FUNCTION SpaceVim#mapping#space#init() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/mapping/space.vim line 13 | |
Called 1 time | |
Total time: 0.009302 | |
Self time: 0.001020 | |
count total (s) self (s) | |
1 0.000002 let g:_spacevim_mappings_space = {} | |
1 0.000002 let g:_spacevim_mappings_prefixs['[SPC]'] = {'name' : '+SPC prefix'} | |
1 0.000001 let g:_spacevim_mappings_space.t = {'name' : '+Toggles'} | |
1 0.000001 let g:_spacevim_mappings_space.t.h = {'name' : '+Toggles highlight'} | |
1 0.000001 let g:_spacevim_mappings_space.t.m = {'name' : '+modeline'} | |
1 0.000001 let g:_spacevim_mappings_space.T = {'name' : '+UI toggles/themes'} | |
1 0.000001 let g:_spacevim_mappings_space.a = {'name' : '+Applications'} | |
1 0.000001 let g:_spacevim_mappings_space.b = {'name' : '+Buffers'} | |
1 0.000001 let g:_spacevim_mappings_space.f = {'name' : '+Files'} | |
1 0.000001 let g:_spacevim_mappings_space.j = {'name' : '+Jump/Join/Split'} | |
1 0.000001 let g:_spacevim_mappings_space.m = {'name' : '+Major-mode'} | |
1 0.000001 let g:_spacevim_mappings_space.w = {'name' : '+Windows'} | |
1 0.000001 let g:_spacevim_mappings_space.p = {'name' : '+Projects/Packages'} | |
1 0.000001 let g:_spacevim_mappings_space.h = {'name' : '+Help'} | |
1 0.000001 let g:_spacevim_mappings_space.n = {'name' : '+Narrow/Numbers'} | |
1 0.000001 let g:_spacevim_mappings_space.q = {'name' : '+Quit'} | |
1 0.000001 let g:_spacevim_mappings_space.l = {'name' : '+Language Specified'} | |
1 0.000001 let g:_spacevim_mappings_space.s = {'name' : '+Searching/Symbol'} | |
1 0.000003 let g:_spacevim_mappings_space.r = {'name' : '+Registers/rings/resume'} | |
1 0.000001 let g:_spacevim_mappings_space.d = {'name' : '+Debug'} | |
1 0.000009 0.000007 if s:has_map_to_spc() | |
return | |
1 0.000000 endif | |
1 0.000007 nnoremap <silent><nowait> [SPC] :<c-u>LeaderGuide " "<CR> | |
1 0.000005 vnoremap <silent><nowait> [SPC] :<c-u>LeaderGuideVisual " "<CR> | |
1 0.000003 nmap <Space> [SPC] | |
1 0.000003 vmap <Space> [SPC] | |
1 0.000002 if !g:spacevim_vimcompatible && g:spacevim_enable_language_specific_leader | |
1 0.000003 nmap , [SPC]l | |
1 0.000002 xmap , [SPC]l | |
1 0.000000 endif | |
" Windows | |
10 0.000008 for i in range(1, 9) | |
9 0.000654 0.000078 exe "call SpaceVim#mapping#space#def('nnoremap', [" . i . "], 'call SpaceVim#layers#core#statusline#jump(" . i . ")', 'window-" . i . "', 1)" | |
10 0.000004 endfor | |
1 0.000002 let g:_spacevim_mappings_space.w['<Tab>'] = ['wincmd w', 'alternate-window'] | |
1 0.000005 nnoremap <silent> [SPC]w<tab> :wincmd w<cr> | |
1 0.000010 0.000004 call SpaceVim#mapping#menu('alternate-window', '[SPC]w<Tab>', 'wincmd w') | |
1 0.000074 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['w', '+'], 'call call(' . string(function('s:windows_layout_toggle')) . ', [])', 'windows-layout-toggle', 1) | |
1 0.000002 let s:lnum = expand('<slnum>') + s:funcbeginline | |
1 0.000077 0.000011 call SpaceVim#mapping#space#def('nnoremap', ['w', '.'], 'call call(' . string(s:_function('s:windows_transient_state')) . ', [])', ['buffer-transient-state', [ '[SPC w .] is to open the buffer transient state', '', 'Definition: ' . s:file . ':' . s:lnum, ] ] , 1) | |
1 0.000002 let s:lnum = expand('<slnum>') + s:funcbeginline | |
1 0.000070 0.000007 call SpaceVim#mapping#space#def('nnoremap', ['w', 'd'], 'close', ['close-current-windows', [ '[SPC w d] is to close current windows', '', 'Definition: ' . s:file . ':' . s:lnum, ] ] , 1) | |
1 0.000002 let s:lnum = expand('<slnum>') + s:funcbeginline | |
1 0.000069 0.000007 call SpaceVim#mapping#space#def('nnoremap', ['w', 'D'], 'ChooseWin | close | wincmd w', ['delete-window-(other-windows)', [ '[SPC w D] is to select a windows to close', '', 'Definition: ' . s:file . ':' . s:lnum, ] ] , 1) | |
1 0.000002 let s:lnum = expand('<slnum>') + s:funcbeginline | |
1 0.000066 0.000007 call SpaceVim#mapping#space#def('nnoremap', ['w', 'f'], 'tabnew', ['create-new-tab', [ '[SPC w f] is to create new tab', '', 'Definition: ' . s:file . ':' . s:lnum, ] ] , 1) | |
1 0.000002 let s:lnum = expand('<slnum>') + s:funcbeginline | |
1 0.000073 0.000010 call SpaceVim#mapping#space#def('nnoremap', ['w', 'F'], 'call call(' . string(function('s:create_new_named_tab')) . ', [])', ['create-new-named-tab', [ '[SPC w F] is to create new named tab', '', 'Definition: ' . s:file . ':' . s:lnum, ] ] , 1) | |
1 0.000002 let s:lnum = expand('<slnum>') + s:funcbeginline | |
1 0.000068 0.000007 call SpaceVim#mapping#space#def('nnoremap', ['w', 'h'], 'wincmd h', ['window-left', [ '[SPC w h] is to jump to the left window', '', 'Definition: ' . s:file . ':' . s:lnum, ] ] , 1) | |
1 0.000002 let s:lnum = expand('<slnum>') + s:funcbeginline | |
1 0.000067 0.000007 call SpaceVim#mapping#space#def('nnoremap', ['w', 'j'], 'wincmd j', ['window-down', [ '[SPC w j] is to jump to the window below current windows', '', 'Definition: ' . s:file . ':' . s:lnum, ] ] , 1) | |
1 0.000002 let s:lnum = expand('<slnum>') + s:funcbeginline | |
1 0.000068 0.000007 call SpaceVim#mapping#space#def('nnoremap', ['w', 'x'], 'wincmd x', ['window-switch-placement', [ '[SPC w x] is to jump to exchange current window with next one.', '', 'Definition: ' . s:file . ':' . s:lnum, ] ] , 1) | |
1 0.000002 let s:lnum = expand('<slnum>') + s:funcbeginline | |
1 0.000065 0.000007 call SpaceVim#mapping#space#def('nnoremap', ['w', 'k'], 'wincmd k', ['window-up', [ '[SPC w k] is to jump to the window above current windows', '', 'Definition: ' . s:file . ':' . s:lnum, ] ] , 1) | |
1 0.000002 let s:lnum = expand('<slnum>') + s:funcbeginline | |
1 0.000064 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['w', 'l'], 'wincmd l', ['window-right', [ '[SPC w l] is to jump to the right window', '', 'Definition: ' . s:file . ':' . s:lnum, ] ] , 1) | |
1 0.000002 let s:lnum = expand('<slnum>') + s:funcbeginline | |
1 0.000065 0.000007 call SpaceVim#mapping#space#def('nnoremap', ['w', 'H'], 'wincmd H', ['window-far-left', [ '[SPC w H] is to jump to the far left window', '', 'Definition: ' . s:file . ':' . s:lnum, ] ] , 1) | |
1 0.000002 let s:lnum = expand('<slnum>') + s:funcbeginline | |
1 0.000068 0.000007 call SpaceVim#mapping#space#def('nnoremap', ['w', 'J'], 'wincmd J', ['window-far-down', [ '[SPC w J] is to jump to the far down window', '', 'Definition: ' . s:file . ':' . s:lnum, ] ] , 1) | |
1 0.000002 let s:lnum = expand('<slnum>') + s:funcbeginline | |
1 0.000065 0.000007 call SpaceVim#mapping#space#def('nnoremap', ['w', 'K'], 'wincmd K', ['window-far-up', [ '[SPC w K] is to jump to the far up window', '', 'Definition: ' . s:file . ':' . s:lnum, ] ] , 1) | |
1 0.000002 let s:lnum = expand('<slnum>') + s:funcbeginline | |
1 0.000064 0.000007 call SpaceVim#mapping#space#def('nnoremap', ['w', 'L'], 'wincmd L', ['window-far-right', [ '[SPC w L] is to jump to the far right window', '', 'Definition: ' . s:file . ':' . s:lnum, ] ] , 1) | |
1 0.000002 let s:lnum = expand('<slnum>') + s:funcbeginline | |
1 0.000067 0.000008 call SpaceVim#mapping#space#def('nnoremap', ['w', 'm'], 'only', ['maximize/minimize window', [ '[SPC w m] is to maximize/minimize window', '', 'Definition: ' . s:file . ':' . s:lnum, ] ] , 1) | |
1 0.000002 let s:lnum = expand('<slnum>') + s:funcbeginline | |
1 0.000070 0.000008 call SpaceVim#mapping#space#def('nnoremap', ['w', 'M'], "execute eval(\"winnr('$')<=2 ? 'wincmd x' : 'ChooseWinSwap'\")", ['swap window', [ '[SPC w M] is to swap window', '', 'Definition: ' . s:file . ':' . s:lnum, ] ] , 1) | |
1 0.000002 let s:lnum = expand('<slnum>') + s:funcbeginline | |
1 0.000067 0.000007 call SpaceVim#mapping#space#def('nnoremap', ['w', 'o'], 'tabnext', ['other-tabs', [ '[SPC w o] is to switch to next tabs', '', 'Definition: ' . s:file . ':' . s:lnum, ] ] , 1) | |
1 0.000002 let s:lnum = expand('<slnum>') + s:funcbeginline | |
1 0.000067 0.000007 call SpaceVim#mapping#space#def('nnoremap', ['w', '/'], 'belowright vsplit | wincmd w', ['split-windows-right', [ '[SPC w /] is to split windows on the right', '', 'Definition: ' . s:file . ':' . s:lnum, ] ] , 1) | |
1 0.000002 let s:lnum = expand('<slnum>') + s:funcbeginline | |
1 0.000067 0.000007 call SpaceVim#mapping#space#def('nnoremap', ['w', 'v'], 'belowright vsplit | wincmd w', ['split-windows-right', [ '[SPC w v] is to split windows on the right', '', 'Definition: ' . s:file . ':' . s:lnum, ] ] , 1) | |
1 0.000002 let s:lnum = expand('<slnum>') + s:funcbeginline | |
1 0.000067 0.000007 call SpaceVim#mapping#space#def('nnoremap', ['w', '-'], 'bel split | wincmd w', ['split-windows-below', [ '[SPC w -] is to split windows below', '', 'Definition: ' . s:file . ':' . s:lnum, ] ] , 1) | |
1 0.000002 let s:lnum = expand('<slnum>') + s:funcbeginline | |
1 0.000068 0.000008 call SpaceVim#mapping#space#def('nnoremap', ['w', 's'], 'bel split | wincmd w', ['split-windows-below', [ '[SPC w s] is to split windows below', '', 'Definition: ' . s:file . ':' . s:lnum, ] ] , 1) | |
1 0.000002 let s:lnum = expand('<slnum>') + s:funcbeginline | |
1 0.000066 0.000007 call SpaceVim#mapping#space#def('nnoremap', ['w', 'S'], 'bel split', ['split-focus-windows-below', [ '[SPC w S] is to split windows below and focus on new windows', '', 'Definition: ' . s:file . ':' . s:lnum, ] ] , 1) | |
1 0.000002 let s:lnum = expand('<slnum>') + s:funcbeginline | |
1 0.000069 0.000007 call SpaceVim#mapping#space#def('nnoremap', ['w', '2'], 'silent only | vs | wincmd w', ['layout-double-columns', [ '[SPC w 2] is to change current windows layout to double columns', '', 'Definition: ' . s:file . ':' . s:lnum, ] ] , 1) | |
1 0.000002 let s:lnum = expand('<slnum>') + s:funcbeginline | |
1 0.000067 0.000007 call SpaceVim#mapping#space#def('nnoremap', ['w', '3'], 'silent only | vs | vs | wincmd H', ['layout-three-columns', [ '[SPC w 3] is to change current windows layout to three columns', '', 'Definition: ' . s:file . ':' . s:lnum, ] ] , 1) | |
1 0.000064 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['w', 'V'], 'bel vs', 'split-window-right-focus', 1) | |
1 0.000062 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['w', '='], 'wincmd =', 'balance-windows', 1) | |
1 0.000063 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['w', 'w'], 'wincmd w', 'cycle and focus between windows', 1) | |
1 0.000064 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['w', 'W'], 'ChooseWin', 'select window', 1) | |
1 0.000066 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['w', 'u'], 'call SpaceVim#plugins#windowsmanager#UndoQuitWin()', 'undo quieted window', 1) | |
1 0.000064 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['w', 'U'], 'call SpaceVim#plugins#windowsmanager#RedoQuitWin()', 'redo quieted window', 1) | |
1 0.000002 let s:lnum = expand('<slnum>') + s:funcbeginline | |
1 0.000068 0.000008 call SpaceVim#mapping#space#def('nnoremap', ['b', 'n'], 'bnext', ['next-buffer', [ '[SPC b n] is running :bnext, jump to next buffer', 'which is a vim build in command', 'It is bound to SPC b n, ] b,', '', 'Definition: ' . s:file . ':' . s:lnum, ] ] , 1) | |
1 0.000090 0.000008 call SpaceVim#mapping#space#def('nnoremap', ['b', 's'], 'call call(' . string(function('s:switch_scratch_buffer')) . ', [])', 'switch-to-scratch-buffer', 1) | |
1 0.000002 let s:lnum = expand('<slnum>') + 3 | |
1 0.000071 0.000008 call SpaceVim#mapping#space#def('nnoremap', ['b', 'p'], 'bp', ['previous-buffer', [ 'SPC b p is running :bp, jump to previous buffer', 'which is a vim build in command', 'It is bound to SPC b p, [ b,', '', 'Definition: ' . s:file . ':' . s:lnum, ] ] , 1) | |
1 0.000002 let g:_spacevim_mappings_space.e = {'name' : '+Errors/Encoding'} | |
1 0.000001 let g:_spacevim_mappings_space.B = {'name' : '+Global buffers'} | |
1 0.000001 if g:spacevim_relativenumber | |
1 0.000007 nnoremap <silent> [SPC]tn :<C-u>setlocal nonumber! norelativenumber!<CR> | |
1 0.000002 let g:_spacevim_mappings_space.t.n = ['setlocal nonumber! norelativenumber!', 'toggle-line-number'] | |
1 0.000010 0.000004 call SpaceVim#mapping#menu('toggle line number', '[SPC]tn', 'set nu!') | |
else | |
nnoremap <silent> [SPC]tn :<C-u>setlocal number!<CR> | |
let g:_spacevim_mappings_space.t.n = ['setlocal number!', 'toggle-line-number'] | |
call SpaceVim#mapping#menu('toggle line number', '[SPC]tn', 'setlocal number!') | |
1 0.000000 endif | |
1 0.000004 call extend(g:_spacevim_mappings_prefixs['[SPC]'], get(g:, '_spacevim_mappings_space', {})) | |
" Searching in current buffer | |
1 0.000073 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['s', 's'], "call SpaceVim#plugins#flygrep#open({'input' : input(\"grep pattern:\"), 'files': bufname(\"%\")})", 'grep-in-current-buffer', 1) | |
1 0.000069 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'S'], "call SpaceVim#plugins#flygrep#open({'input' : expand(\"<cword>\"), 'files': bufname(\"%\")})", 'grep-cword-in-current-buffer', 1) | |
" Searching in all loaded buffers | |
1 0.000067 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['s', 'b'], "call SpaceVim#plugins#flygrep#open({'input' : input(\"grep pattern:\"), 'files':'@buffers'})", 'grep-in-all-buffers', 1) | |
1 0.000068 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'B'], "call SpaceVim#plugins#flygrep#open({'input' : expand(\"<cword>\"), 'files':'@buffers'})", 'grep-cword-in-all-buffers', 1) | |
" Searching in buffer directory | |
1 0.000072 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['s', 'd'], "call SpaceVim#plugins#flygrep#open({'input' :" . " input(\"grep pattern:\"), 'dir' : fnamemodify(expand('%'), ':p:h')})", 'grep-in-buffer-directory', 1) | |
1 0.000068 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['s', 'D'], "call SpaceVim#plugins#flygrep#open({'input' :" . " expand(\"<cword>\"), 'dir' : fnamemodify(expand('%'), ':p:h')})", 'grep-cword-in-buffer-directory', 1) | |
" Searching in files in an arbitrary directory | |
1 0.000107 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['s', 'f'], "call SpaceVim#plugins#flygrep#open({'input' :" . " input(\"grep pattern:\"), 'dir' : input(\"arbitrary dir:\", '', 'dir')})", 'grep-in-arbitrary-directory', 1) | |
1 0.000070 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['s', 'F'], "call SpaceVim#plugins#flygrep#open({'input' :" . " expand(\"<cword>\"), 'dir' : input(\"arbitrary dir:\", '', 'dir')})", 'grep-cword-in-arbitrary-directory', 1) | |
" Searching in project | |
1 0.000070 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['s', 'p'], 'call SpaceVim#plugins#flygrep#open(' . "{'input' : input(\"grep pattern:\"), 'dir' : get(b:, \"rootDir\", getcwd())})", 'grep-in-project', 1) | |
1 0.000068 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['s', 'P'], "call SpaceVim#plugins#flygrep#open({'input' : expand(\"<cword>\"), 'dir' : get(b:, \"rootDir\", getcwd())})", 'grep-cword-in-project', 1) | |
" Searching background | |
1 0.000067 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'j'], 'call SpaceVim#plugins#searcher#find("", SpaceVim#mapping#search#default_tool()[0])', 'background-search-in-project', 1) | |
1 0.000070 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['s', 'J'], 'call SpaceVim#plugins#searcher#find(expand("<cword>"),SpaceVim#mapping#search#default_tool()[0])', 'background-search-cwords-in-project', 1) | |
1 0.000066 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'l'], 'call SpaceVim#plugins#searcher#list()', 'list-all-searching-results', 1) | |
" Searching tools | |
" ag | |
1 0.000003 let g:_spacevim_mappings_space.s.a = {'name' : '+ag'} | |
1 0.000069 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'a', 'b'], 'call SpaceVim#mapping#search#grep("a", "b")', 'search in all buffers with ag', 1) | |
1 0.000066 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'a', 'B'], 'call SpaceVim#mapping#search#grep("a", "B")', 'search cursor word in all buffers with ag', 1) | |
1 0.000066 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'a', 'd'], 'call SpaceVim#mapping#search#grep("a", "d")', 'search in buffer directory with ag', 1) | |
1 0.000065 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'a', 'D'], 'call SpaceVim#mapping#search#grep("a", "D")', 'search cursor word in buffer directory with ag', 1) | |
1 0.000069 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['s', 'a', 'p'], 'call SpaceVim#mapping#search#grep("a", "p")', 'search in project with ag', 1) | |
1 0.000064 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'a', 'P'], 'call SpaceVim#mapping#search#grep("a", "P")', 'search cursor word in project with ag', 1) | |
1 0.000064 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'a', 'f'], 'call SpaceVim#mapping#search#grep("a", "f")', 'search in arbitrary directory with ag', 1) | |
1 0.000067 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'a', 'F'], 'call SpaceVim#mapping#search#grep("a", "F")', 'search cursor word in arbitrary directory with ag', 1) | |
1 0.000067 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'a', 'j'], 'call SpaceVim#plugins#searcher#find("", "ag")', 'Background search in project with ag', 1) | |
1 0.000067 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['s', 'a', 'J'], 'call SpaceVim#plugins#searcher#find(expand("<cword>"), "ag")', 'Background search cursor words in project with ag', 1) | |
" grep | |
1 0.000002 let g:_spacevim_mappings_space.s.g = {'name' : '+grep'} | |
1 0.000065 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'g', 'b'], 'call SpaceVim#mapping#search#grep("g", "b")', 'search in all buffers with grep', 1) | |
1 0.000067 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'g', 'B'], 'call SpaceVim#mapping#search#grep("g", "B")', 'search cursor word in all buffers with grep', 1) | |
1 0.000066 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'g', 'd'], 'call SpaceVim#mapping#search#grep("g", "d")', 'search in buffer directory with grep', 1) | |
1 0.000065 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'g', 'D'], 'call SpaceVim#mapping#search#grep("g", "D")', 'search cursor word in buffer directory with grep', 1) | |
1 0.000064 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'g', 'p'], 'call SpaceVim#mapping#search#grep("g", "p")', 'search in project with grep', 1) | |
1 0.000064 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'g', 'P'], 'call SpaceVim#mapping#search#grep("g", "P")', 'search cursor word in project with grep', 1) | |
1 0.000067 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'g', 'f'], 'call SpaceVim#mapping#search#grep("g", "f")', 'search in arbitrary directory with grep', 1) | |
1 0.000066 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['s', 'g', 'F'], 'call SpaceVim#mapping#search#grep("g", "F")', 'search cursor word in arbitrary directory with grep', 1) | |
1 0.000065 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'g', 'j'], 'call SpaceVim#plugins#searcher#find("", "grep")', 'Background search cursor words in project with grep', 1) | |
1 0.000076 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'g', 'J'], 'call SpaceVim#plugins#searcher#find(expand("<cword>"), "grep")', 'Background search cursor words in project with grep', 1) | |
" git grep | |
1 0.000002 let g:_spacevim_mappings_space.s.G = {'name' : '+git grep'} | |
1 0.000066 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'G', 'b'], 'call SpaceVim#mapping#search#grep("G", "b")', 'search in all buffers with git-grep', 1) | |
1 0.000066 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'G', 'B'], 'call SpaceVim#mapping#search#grep("G", "B")', 'search cursor word in all buffers with git-grep', 1) | |
1 0.000107 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'G', 'd'], 'call SpaceVim#mapping#search#grep("G", "d")', 'search in buffer directory with grep', 1) | |
1 0.000069 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['s', 'G', 'D'], 'call SpaceVim#mapping#search#grep("G", "D")', 'search cursor word in buffer directory with git-grep', 1) | |
1 0.000069 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'G', 'p'], 'call SpaceVim#mapping#search#grep("G", "p")', 'search in project with git-grep', 1) | |
1 0.000066 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'G', 'P'], 'call SpaceVim#mapping#search#grep("G", "P")', 'search cursor word in project with git-grep', 1) | |
1 0.000064 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'G', 'f'], 'call SpaceVim#mapping#search#grep("G", "f")', 'search in arbitrary directory with git-grep', 1) | |
1 0.000065 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'G', 'F'], 'call SpaceVim#mapping#search#grep("G", "F")', 'search cursor word in arbitrary directory with git-grep', 1) | |
" ack | |
1 0.000002 let g:_spacevim_mappings_space.s.k = {'name' : '+ack'} | |
1 0.000068 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'k', 'b'], 'call SpaceVim#mapping#search#grep("k", "b")', 'search in all buffers with ack', 1) | |
1 0.000066 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'k', 'B'], 'call SpaceVim#mapping#search#grep("k", "B")', 'search cursor word in all buffers with ack', 1) | |
1 0.000070 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['s', 'k', 'd'], 'call SpaceVim#mapping#search#grep("k", "d")', 'search in buffer directory with ack', 1) | |
1 0.000065 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'k', 'D'], 'call SpaceVim#mapping#search#grep("k", "D")', 'search cursor word in buffer directory with ack', 1) | |
1 0.000065 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'k', 'p'], 'call SpaceVim#mapping#search#grep("k", "p")', 'search in project with ack', 1) | |
1 0.000065 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'k', 'P'], 'call SpaceVim#mapping#search#grep("k", "P")', 'search cursor word in project with ack', 1) | |
1 0.000067 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'k', 'f'], 'call SpaceVim#mapping#search#grep("k", "f")', 'search in arbitrary directory with ack', 1) | |
1 0.000068 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'k', 'F'], 'call SpaceVim#mapping#search#grep("k", "F")', 'search cursor word in arbitrary directory with ack', 1) | |
1 0.000066 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'k', 'j'], 'call SpaceVim#plugins#searcher#find("", "ack")', 'Background search cursor words in project with ack', 1) | |
1 0.000068 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['s', 'k', 'J'], 'call SpaceVim#plugins#searcher#find(expand("<cword>"), "ack")', 'Background search cursor words in project with ack', 1) | |
" rg | |
1 0.000002 let g:_spacevim_mappings_space.s.r = {'name' : '+rg'} | |
1 0.000068 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'r', 'b'], 'call SpaceVim#mapping#search#grep("r", "b")', 'search in all buffers with rg', 1) | |
1 0.000068 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'r', 'B'], 'call SpaceVim#mapping#search#grep("r", "B")', 'search cursor word in all buffers with rg', 1) | |
1 0.000065 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'r', 'd'], 'call SpaceVim#mapping#search#grep("r", "d")', 'search in buffer directory with rg', 1) | |
1 0.000065 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['s', 'r', 'D'], 'call SpaceVim#mapping#search#grep("r", "D")', 'search cursor word in buffer directory with rg', 1) | |
1 0.000065 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'r', 'p'], 'call SpaceVim#mapping#search#grep("r", "p")', 'search in project with rg', 1) | |
1 0.000067 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['s', 'r', 'P'], 'call SpaceVim#mapping#search#grep("r", "P")', 'search cursor word in project with rg', 1) | |
1 0.000068 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'r', 'f'], 'call SpaceVim#mapping#search#grep("r", "f")', 'search in arbitrary directory with rg', 1) | |
1 0.000065 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'r', 'F'], 'call SpaceVim#mapping#search#grep("r", "F")', 'search cursor word in arbitrary directory with rg', 1) | |
1 0.000129 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['s', 'r', 'j'], 'call SpaceVim#plugins#searcher#find("", "rg")', 'Background search cursor words in project with rg', 1) | |
1 0.000079 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['s', 'r', 'J'], 'call SpaceVim#plugins#searcher#find(expand("<cword>"), "rg")', 'Background search cursor words in project with rg', 1) | |
" findstr | |
1 0.000002 let g:_spacevim_mappings_space.s.i = {'name' : '+findstr'} | |
1 0.000069 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['s', 'i', 'b'], 'call SpaceVim#mapping#search#grep("i", "b")', 'search in all buffers with findstr', 1) | |
1 0.000132 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['s', 'i', 'B'], 'call SpaceVim#mapping#search#grep("i", "B")', 'search cursor word in all buffers with findstr', 1) | |
1 0.000071 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['s', 'i', 'd'], 'call SpaceVim#mapping#search#grep("i", "d")', 'search in buffer directory with findstr', 1) | |
1 0.000068 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'i', 'D'], 'call SpaceVim#mapping#search#grep("i", "D")', 'search cursor word in buffer directory with findstr', 1) | |
1 0.000066 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'i', 'p'], 'call SpaceVim#mapping#search#grep("i", "p")', 'search in project with findstr', 1) | |
1 0.000066 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'i', 'P'], 'call SpaceVim#mapping#search#grep("i", "P")', 'search cursor word in project with findstr', 1) | |
1 0.000065 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'i', 'f'], 'call SpaceVim#mapping#search#grep("i", "f")', 'search in arbitrary directory with findstr', 1) | |
1 0.000068 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'i', 'F'], 'call SpaceVim#mapping#search#grep("i", "F")', 'search cursor word in arbitrary directory with findstr', 1) | |
1 0.000068 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['s', 'i', 'j'], 'call SpaceVim#plugins#searcher#find("", "findstr")', 'Background search cursor words in project with findstr', 1) | |
1 0.000068 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'i', 'J'], 'call SpaceVim#plugins#searcher#find(expand("<cword>"), "findstr")', 'Background search cursor words in project with findstr', 1) | |
" pt | |
1 0.000002 let g:_spacevim_mappings_space.s.t = {'name' : '+pt'} | |
1 0.000068 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 't', 'b'], 'call SpaceVim#mapping#search#grep("t", "b")', 'search in all buffers with pt', 1) | |
1 0.000066 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 't', 'B'], 'call SpaceVim#mapping#search#grep("t", "B")', 'search cursor word in all buffers with pt', 1) | |
1 0.000067 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 't', 'd'], 'call SpaceVim#mapping#search#grep("t", "d")', 'search in buffer directory with pt', 1) | |
1 0.000066 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 't', 'D'], 'call SpaceVim#mapping#search#grep("t", "D")', 'search cursor word in buffer directory with pt', 1) | |
1 0.000065 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 't', 'p'], 'call SpaceVim#mapping#search#grep("t", "p")', 'search in project with pt', 1) | |
1 0.000068 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 't', 'P'], 'call SpaceVim#mapping#search#grep("t", "P")', 'search cursor word in project with pt', 1) | |
1 0.000086 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 't', 'f'], 'call SpaceVim#mapping#search#grep("t", "f")', 'search in arbitrary directory with pt', 1) | |
1 0.000069 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['s', 't', 'F'], 'call SpaceVim#mapping#search#grep("t", "F")', 'search cursor word in arbitrary directory with pt', 1) | |
1 0.000069 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 't', 'j'], 'call SpaceVim#plugins#searcher#find("", "pt")', 'Background search cursor words in project with pt', 1) | |
1 0.000068 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 't', 'J'], 'call SpaceVim#plugins#searcher#find(expand("<cword>"), "pt")', 'Background search cursor words in project with pt', 1) | |
1 0.000065 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', '/'], 'call SpaceVim#plugins#flygrep#open({})', 'grep-on-the-fly', 1) | |
1 0.000066 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['s', 'c'], 'call SpaceVim#plugins#searcher#clear()', 'clear-search-results', 1) | |
"Symbol | |
1 0.000009 nnoremap <silent> <plug>SpaceVim-plugin-iedit :call SpaceVim#plugins#iedit#start()<cr> | |
1 0.000007 xnoremap <silent> <plug>SpaceVim-plugin-iedit :call SpaceVim#plugins#iedit#start(1)<cr> | |
1 0.000085 0.000006 call SpaceVim#mapping#space#def('nmap', ['s', 'e'], '<plug>SpaceVim-plugin-iedit', 'start-iedit-mode', 0, 1) | |
1 0.000066 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'H'], 'call SpaceVim#plugins#highlight#start(1)', 'highlight-all-symbols', 1) | |
1 0.000065 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['s', 'h'], 'call SpaceVim#plugins#highlight#start(0)', 'highlight-current-symbols', 1) | |
" Getting help | |
1 0.000002 let g:_spacevim_mappings_space.h.d = {'name' : '+help describe'} | |
1 0.000068 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['h', 'd', 'k'], 'call SpaceVim#plugins#help#describe_key()', 'describe-key-bindings', 1) | |
1 0.000008 0.000005 call SpaceVim#custom#SPC('nnoremap', ['a', 'o'], 'call SpaceVim#plugins#todo#list()', 'open-todo-manager', 1) | |
FUNCTION <SNR>95_find_root_directory() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/plugins/projectmanager.vim line 176 | |
Called 2 times | |
Total time: 0.000834 | |
Self time: 0.000249 | |
count total (s) self (s) | |
" @question confused about expand and fnamemodify | |
" ref: https://github.com/vim/vim/issues/6793 | |
" get the current path of buffer | |
" If it is a empty buffer, do nothing? | |
2 0.000014 let fd = expand('%:p') | |
2 0.000002 if empty(fd) | |
1 0.000039 0.000004 call s:LOGGER.info('buffer name is empty, skipped!') | |
1 0.000000 return '' | |
1 0.000000 endif | |
1 0.000001 let dirs = [] | |
1 0.000072 0.000009 call s:LOGGER.info('Start to find root for: ' . s:FILE.unify_path(fd)) | |
7 0.000006 for pattern in s:project_rooter_patterns | |
6 0.000007 if stridx(pattern, '/') != -1 | |
6 0.000004 if g:spacevim_project_rooter_outermost | |
6 0.000452 0.000036 let find_path = s:FILE.finddir(pattern, fd, -1) | |
else | |
let find_path = s:FILE.finddir(pattern, fd) | |
6 0.000001 endif | |
else | |
if g:spacevim_project_rooter_outermost | |
let find_path = s:FILE.findfile(pattern, fd, -1) | |
else | |
let find_path = s:FILE.findfile(pattern, fd) | |
endif | |
6 0.000001 endif | |
6 0.000012 let path_type = getftype(find_path) | |
6 0.000055 0.000051 if ( path_type ==# 'dir' || path_type ==# 'file' ) && find_path !=# expand('~/.SpaceVim.d/') && find_path !=# expand('~/.Rprofile') && !s:is_ignored_dir(find_path) | |
1 0.000025 0.000005 let find_path = s:FILE.unify_path(find_path, ':p') | |
1 0.000001 if path_type ==# 'dir' | |
1 0.000016 0.000005 let dir = s:FILE.unify_path(find_path, ':h:h') | |
else | |
let dir = s:FILE.unify_path(find_path, ':h') | |
1 0.000000 endif | |
1 0.000029 0.000004 call s:LOGGER.info(' (' . pattern . '):' . dir) | |
1 0.000001 call add(dirs, dir) | |
6 0.000002 endif | |
7 0.000003 endfor | |
1 0.000013 0.000005 return s:sort_dirs(deepcopy(dirs)) | |
FUNCTION <SNR>81_get_list() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/util.vim line 29 | |
Called 6 times | |
Total time: 0.000537 | |
Self time: 0.000037 | |
count total (s) self (s) | |
6 0.000009 if !exists('s:List') | |
1 0.000513 0.000013 let s:List = unite#util#get_vital().import('Data.List') | |
6 0.000002 endif | |
6 0.000004 return s:List | |
FUNCTION dein#util#_get_plugins() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/util.vim line 629 | |
Called 3 times | |
Total time: 0.000050 | |
Self time: 0.000031 | |
count total (s) self (s) | |
3 0.000048 0.000029 return empty(a:plugins) ? values(dein#get()) : filter(map(dein#util#_convert2list(a:plugins), 'type(v:val) == 4 ? v:val : dein#get(v:val)'), '!empty(v:val)') | |
FUNCTION vimfiler#init#_start() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/init.vim line 349 | |
Called 1 time | |
Total time: 0.056251 | |
Self time: 0.000206 | |
count total (s) self (s) | |
1 0.000006 0.000004 if vimfiler#util#is_cmdwin() | |
call vimfiler#util#print_error( 'Command line buffer is detected!') | |
call vimfiler#util#print_error( 'Please close command line buffer.') | |
return | |
1 0.000000 endif | |
1 0.000001 let path = a:path | |
1 0.000009 0.000004 if vimfiler#util#is_win_path(path) | |
let path = vimfiler#util#substitute_path_separator( fnamemodify(vimfiler#util#expand(path), ':p')) | |
1 0.000000 endif | |
1 0.000472 0.000005 let context = vimfiler#initialize_context(get(a:000, 0, {})) | |
1 0.000011 if (!&l:hidden && &l:modified) || (&l:hidden && &l:bufhidden =~# 'unload\|delete\|wipe') | |
" Split automatically. | |
1 0.000001 let context.split = 1 | |
1 0.000000 endif | |
1 0.000001 if context.toggle && !context.create | |
1 0.001811 0.000122 if vimfiler#mappings#close(context.buffer_name) | |
return | |
1 0.000000 endif | |
1 0.000000 endif | |
1 0.000001 if context.project | |
let path = vimfiler#util#path2project_directory(path) | |
1 0.000000 endif | |
1 0.000000 if !context.create | |
1 0.000001 if filereadable(path) | |
let source_name = 'file' | |
let source_args = [path] | |
1 0.000000 else | |
1 0.000370 0.000004 let ret = vimfiler#parse_path(path) | |
1 0.000001 let source_name = ret[0] | |
1 0.000001 let source_args = ret[1:] | |
1 0.000000 endif | |
1 0.005971 0.000006 let ret = unite#vimfiler_check_filetype( [insert(source_args, source_name)]) | |
1 0.000002 if empty(ret) || ret[0] ==# 'directory' || context.find | |
" Search vimfiler buffer. | |
1 0.000011 for bufnr in filter(insert(range(1, bufnr('$')), bufnr('%')), "bufloaded(v:val) && getbufvar(v:val, '&filetype') =~# 'vimfiler'") | |
let vimfiler = getbufvar(bufnr, 'vimfiler') | |
if type(vimfiler) == type({}) && vimfiler.context.buffer_name ==# context.buffer_name && (exists('t:vimfiler') && has_key(t:vimfiler, bufnr)) && (!context.invisible || bufwinnr(bufnr) < 0) | |
call vimfiler#init#_switch_vimfiler(bufnr, context, path) | |
return | |
endif | |
unlet vimfiler | |
1 0.000000 endfor | |
1 0.000000 endif | |
1 0.000000 endif | |
1 0.047559 0.000007 call s:create_vimfiler_buffer(path, context) | |
FUNCTION neomake#utils#GetHighlight() | |
Defined: ~/.SpaceVim/bundle/neomake/autoload/neomake/utils.vim line 328 | |
Called 12 times | |
Total time: 0.000368 | |
Self time: 0.000312 | |
count total (s) self (s) | |
12 0.000015 let fallback = a:0 ? a:1 : '' | |
12 0.000015 let mode = a:what[-1:] ==# '#' ? 'gui' : 'cterm' | |
12 0.000060 let reverse = synIDattr(synIDtrans(hlID(a:group)), 'reverse', mode) | |
12 0.000010 let what = a:what | |
12 0.000006 if reverse | |
12 0.000103 0.000046 let what = neomake#utils#ReverseSynIDattr(what) | |
12 0.000003 endif | |
12 0.000008 if what[-1:] ==# '#' | |
6 0.000028 let val = synIDattr(synIDtrans(hlID(a:group)), what, mode) | |
6 0.000002 else | |
6 0.000029 let val = synIDattr(synIDtrans(hlID(a:group)), what, mode) | |
12 0.000003 endif | |
12 0.000013 if empty(val) || val == -1 | |
4 0.000003 if !empty(fallback) | |
" NOTE: this might still be NONE also for "Normal", with | |
" e.g. `vim -u NONE`. | |
return neomake#utils#GetHighlight(fallback, a:what) | |
4 0.000001 endif | |
4 0.000002 return 'NONE' | |
8 0.000002 endif | |
8 0.000004 return val | |
FUNCTION <SNR>162_LoadRemotePlugins() | |
Defined: /usr/share/nvim/runtime/plugin/rplugin.vim line 56 | |
Called 1 time | |
Total time: 0.000427 | |
Self time: 0.000029 | |
count total (s) self (s) | |
1 0.000041 0.000006 let g:loaded_remote_plugins = s:GetManifest() | |
1 0.000003 if filereadable(g:loaded_remote_plugins) | |
1 0.000382 0.000019 execute 'source' fnameescape(g:loaded_remote_plugins) | |
1 0.000000 endif | |
FUNCTION <SNR>63_loadLayerConfig() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/plugins.vim line 57 | |
Called 10 times | |
Total time: 0.016662 | |
Self time: 0.000086 | |
count total (s) self (s) | |
10 0.000006 try | |
10 0.016636 0.000060 call SpaceVim#layers#{a:layer}#config() | |
catch /^Vim\%((\a\+)\)\=:E117/ | |
10 0.000005 endtry | |
FUNCTION StartifyEntryFormat() | |
Defined: ~/.SpaceVim/config/plugins/vim-startify.vim line 74 | |
Called 2 times | |
Total time: 0.000003 | |
Self time: 0.000003 | |
count total (s) self (s) | |
2 0.000002 return 'FileIcon(entry_path) ." ". entry_path' | |
FUNCTION <SNR>219__vital_created() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/vital/_unite/Data/String.vim line 30 | |
Called 1 time | |
Total time: 0.000007 | |
Self time: 0.000007 | |
count total (s) self (s) | |
" Expose script-local funcref | |
1 0.000001 if exists('s:strchars') | |
1 0.000002 let a:module.strchars = s:strchars | |
1 0.000000 endif | |
1 0.000001 if exists('s:wcswidth') | |
1 0.000002 let a:module.wcswidth = s:wcswidth | |
1 0.000000 endif | |
FUNCTION <SNR>123_init_delim_skip() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup/loader.vim line 659 | |
Called 4 times | |
Total time: 0.000016 | |
Self time: 0.000016 | |
count total (s) self (s) | |
4 0.000007 let l:skip = get(b:, 'match_skip', '') | |
4 0.000007 if empty(l:skip) | return '' | endif | |
" s:foo becomes (current syntax item) =~ foo | |
" S:foo becomes (current syntax item) !~ foo | |
" r:foo becomes (line before cursor) =~ foo | |
" R:foo becomes (line before cursor) !~ foo | |
let l:cursyn = "synIDattr(synID(s:effline('.'),s:effcol('.'),1),'name')" | |
let l:preline = "strpart(s:geteffline('.'),0,s:effcol('.'))" | |
if l:skip =~# '^[sSrR]:' | |
let l:syn = strpart(l:skip, 2) | |
let l:skip = { 's': l:cursyn."=~?'".l:syn."'", 'S': l:cursyn."!~?'".l:syn."'", 'r': l:preline."=~?'".l:syn."'", 'R': l:preline."!~?'".l:syn."'",}[l:skip[0]] | |
endif | |
for [l:pat, l:str] in [ [ '\<col\ze(', 's:effcol' ], [ '\<line\ze(', 's:effline' ], [ '\<getline\ze(', 's:geteffline' ],] | |
let l:skip = substitute(l:skip, l:pat, l:str, 'g') | |
endfor | |
return l:skip | |
FUNCTION SpaceVim#plugins#begin() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/plugins.vim line 150 | |
Called 1 time | |
Total time: 0.001068 | |
Self time: 0.000040 | |
count total (s) self (s) | |
1 0.000003 let g:unite_source_menu_menus.AddedPlugins = {'description': 'All the Added plugins' . ' <leader>lp'} | |
1 0.000001 let g:unite_source_menu_menus.AddedPlugins.command_candidates = [] | |
1 0.000001 if g:spacevim_plugin_manager ==# 'neobundle' | |
call neobundle#begin(a:path) | |
1 0.000001 elseif g:spacevim_plugin_manager ==# 'dein' | |
1 0.001058 0.000030 call dein#begin(a:path) | |
elseif g:spacevim_plugin_manager ==# 'vim-plug' | |
call plug#begin(a:path) | |
1 0.000000 endif | |
FUNCTION dein#util#_get_myvimrc() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/util.vim line 62 | |
Called 2 times | |
Total time: 0.000022 | |
Self time: 0.000015 | |
count total (s) self (s) | |
2 0.000007 let vimrc = $MYVIMRC !=# '' ? $MYVIMRC : matchstr(split(dein#util#_redir('scriptnames'), '\n')[0], '^\s*\d\+:\s\zs.*') | |
2 0.000014 0.000007 return dein#util#_substitute_path(vimrc) | |
FUNCTION dein#autoload#_on_default_event() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/autoload.vim line 80 | |
Called 13 times | |
Total time: 0.001618 | |
Self time: 0.001136 | |
count total (s) self (s) | |
13 0.000436 0.000068 let lazy_plugins = dein#util#_get_lazy_plugins() | |
13 0.000012 let plugins = [] | |
13 0.000039 let path = expand('<afile>') | |
" For ":edit ~". | |
13 0.000020 if fnamemodify(path, ':t') ==# '~' | |
let path = '~' | |
13 0.000005 endif | |
13 0.000134 0.000042 let path = dein#util#_expand(path) | |
26 0.000045 for filetype in split(&l:filetype, '\.') | |
13 0.000228 let plugins += filter(copy(lazy_plugins), "index(get(v:val, 'on_ft', []), filetype) >= 0") | |
26 0.000012 endfor | |
13 0.000293 let plugins += filter(copy(lazy_plugins), "!empty(filter(copy(get(v:val, 'on_path', [])), 'path =~? v:val'))") | |
13 0.000261 let plugins += filter(copy(lazy_plugins), "!has_key(v:val, 'on_event') && has_key(v:val, 'on_if') && eval(v:val.on_if)") | |
13 0.000082 0.000060 call s:source_events(a:event, plugins) | |
FUNCTION SpaceVim#api#vim#tab#get() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/vim/tab.vim line 57 | |
Called 1 time | |
Total time: 0.000005 | |
Self time: 0.000005 | |
count total (s) self (s) | |
1 0.000004 return deepcopy(s:self) | |
FUNCTION <SNR>36_current_tag() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/core/statusline.vim line 329 | |
Called 1 time | |
Total time: 0.000002 | |
Self time: 0.000002 | |
count total (s) self (s) | |
1 0.000001 return '%{SpaceVim#layers#core#statusline#_current_tag()}' | |
FUNCTION <SNR>36_active() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/core/statusline.vim line 542 | |
Called 1 time | |
Total time: 0.145452 | |
Self time: 0.000160 | |
count total (s) self (s) | |
1 0.000001 let lsec = [] | |
7 0.000006 for section in s:loaded_sections_l | |
6 0.000009 if has_key(s:registed_sections, section) | |
6 0.001106 0.000037 call add(lsec, call(s:registed_sections[section], [])) | |
6 0.000002 endif | |
7 0.000002 endfor | |
1 0.000001 let rsec = [] | |
4 0.000005 for section in s:loaded_sections_r | |
3 0.000006 if has_key(s:registed_sections, section) | |
3 0.002060 0.000056 call add(rsec, call(s:registed_sections[section], [])) | |
3 0.000003 endif | |
4 0.000002 endfor | |
1 0.000012 0.000005 let fname = s:buffer_name() | |
1 0.000005 0.000003 let tag = s:current_tag() | |
1 0.142224 0.000014 return s:STATUSLINE.build(lsec, rsec, s:lsep, s:rsep, fname, tag, 'SpaceVim_statusline_a', 'SpaceVim_statusline_b', 'SpaceVim_statusline_c', 'SpaceVim_statusline_z', winwidth(winnr())) | |
FUNCTION <SNR>140_ExtraMappings() | |
Defined: ~/.SpaceVim/bundle/delimitMate/plugin/delimitMate.vim line 325 | |
Called 6 times | |
Total time: 0.001881 | |
Self time: 0.001545 | |
count total (s) self (s) | |
" If pair is empty, delete both delimiters: | |
6 0.000085 inoremap <silent> <Plug>delimitMateBS <C-R>=delimitMate#BS()<CR> | |
6 0.000105 if !hasmapto('<Plug>delimitMateBS','i') | |
6 0.000076 if empty(maparg('<BS>', 'i')) | |
6 0.000073 silent! imap <unique> <buffer> <BS> <Plug>delimitMateBS | |
6 0.000002 endif | |
6 0.000067 if empty(maparg('<C-H>', 'i')) | |
6 0.000066 silent! imap <unique> <buffer> <C-h> <Plug>delimitMateBS | |
6 0.000002 endif | |
6 0.000002 endif | |
" If pair is empty, delete closing delimiter: | |
6 0.000077 inoremap <silent> <expr> <Plug>delimitMateS-BS delimitMate#WithinEmptyPair() ? "\<Del>" : "\<S-BS>" | |
6 0.000137 if !hasmapto('<Plug>delimitMateS-BS','i') && maparg('<S-BS>', 'i') == '' | |
6 0.000067 silent! imap <unique> <buffer> <S-BS> <Plug>delimitMateS-BS | |
6 0.000002 endif | |
" Expand return if inside an empty pair: | |
6 0.000076 inoremap <expr><silent> <Plug>delimitMateCR <SID>TriggerAbb()."\<C-R>=delimitMate#ExpandReturn()\<CR>" | |
6 0.000130 0.000031 if s:get('expand_cr') && !hasmapto('<Plug>delimitMateCR', 'i') && maparg('<CR>', 'i') == '' | |
silent! imap <unique> <buffer> <CR> <Plug>delimitMateCR | |
6 0.000002 endif | |
" Expand space if inside an empty pair: | |
6 0.000089 inoremap <expr><silent> <Plug>delimitMateSpace <SID>TriggerAbb()."\<C-R>=delimitMate#ExpandSpace()\<CR>" | |
6 0.000178 0.000028 if s:get('expand_space') && !hasmapto('<Plug>delimitMateSpace', 'i') && maparg('<Space>', 'i') == '' | |
silent! imap <unique> <buffer> <Space> <Plug>delimitMateSpace | |
6 0.000002 endif | |
" Jump over any delimiter: | |
6 0.000091 inoremap <expr><silent> <Plug>delimitMateS-Tab <SID>TriggerAbb()."\<C-R>=delimitMate#JumpAny()\<CR>" | |
6 0.000217 0.000130 if s:get('tab2exit') && !hasmapto('<Plug>delimitMateS-Tab', 'i') && maparg('<S-Tab>', 'i') == '' | |
silent! imap <unique> <buffer> <S-Tab> <Plug>delimitMateS-Tab | |
6 0.000002 endif | |
" Jump over next delimiters | |
6 0.000092 inoremap <expr><buffer> <Plug>delimitMateJumpMany <SID>TriggerAbb()."\<C-R>=delimitMate#JumpMany()\<CR>" | |
6 0.000136 if !hasmapto('<Plug>delimitMateJumpMany', 'i') && maparg("<C-G>g", 'i') == '' | |
6 0.000069 imap <silent> <buffer> <C-G>g <Plug>delimitMateJumpMany | |
6 0.000002 endif | |
FUNCTION vimfiler#mappings#cd() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/mappings.vim line 463 | |
Called 1 time | |
Total time: 0.016001 | |
Self time: 0.000080 | |
count total (s) self (s) | |
1 0.000001 if &filetype !=# 'vimfiler' | |
return | |
1 0.000000 endif | |
1 0.000002 let save_history = get(a:000, 0, 1) | |
1 0.000001 let previous_current_dir = b:vimfiler.current_dir | |
1 0.000003 if previous_current_dir =~ '/$' | |
1 0.000002 let previous_current_dir = previous_current_dir[: -2] | |
1 0.000000 endif | |
" Save current pos. | |
1 0.000002 let save_pos = getpos('.') | |
1 0.000003 let b:vimfiler.directory_cursor_pos[b:vimfiler.current_dir] = deepcopy(save_pos) | |
1 0.000001 let prev_dir = b:vimfiler.current_dir | |
1 0.000001 if b:vimfiler.source !=# 'file' | |
let prev_dir = b:vimfiler.source . ':' . prev_dir | |
1 0.000000 endif | |
1 0.000091 0.000005 let fullpath = vimfiler#helper#_get_cd_path(a:dir) | |
1 0.000001 let b:vimfiler.current_dir = fullpath | |
1 0.000001 if b:vimfiler.context.auto_cd | |
call vimfiler#mappings#_change_vim_current_dir() | |
1 0.000000 endif | |
" Save changed directories. | |
1 0.000001 if save_history | |
1 0.000008 0.000004 let histories = vimfiler#get_histories() | |
1 0.000002 call add(histories, [bufname('%'), prev_dir]) | |
1 0.000002 let max_save = g:vimfiler_max_directories_history > 0 ? g:vimfiler_max_directories_history : 10 | |
1 0.000001 if len(histories) >= max_save | |
" Get last max_save num elements. | |
let histories = histories[-max_save :] | |
1 0.000000 endif | |
1 0.000005 0.000004 call vimfiler#set_histories(histories) | |
1 0.000000 endif | |
" Check sort type. | |
1 0.000027 0.000005 let cache_dir = vimfiler#variables#get_data_directory() . '/' . 'sort' | |
1 0.000002 let path = b:vimfiler.source.'/'.b:vimfiler.current_dir | |
1 0.000043 0.000005 if s:Cache.filereadable(cache_dir, path) | |
let b:vimfiler.local_sort_type = s:Cache.readfile(cache_dir, path)[0] | |
1 0.000000 else | |
1 0.000002 let b:vimfiler.local_sort_type = b:vimfiler.global_sort_type | |
1 0.000000 endif | |
1 0.000003 let b:vimfiler.original_files = [] | |
1 0.000001 let b:vimfiler.all_files = [] | |
1 0.000001 let b:vimfiler.current_files = [] | |
1 0.000001 let b:vimfiler.all_files_len = 0 | |
" Redraw. | |
1 0.015699 0.000005 call vimfiler#force_redraw_screen() | |
1 0.000084 0.000008 call s:restore_cursor(a:dir, fullpath, save_pos, previous_current_dir) | |
FUNCTION <SNR>67_is_reset_ftplugin() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/autoload.vim line 342 | |
Called 1 time | |
Total time: 0.000357 | |
Self time: 0.000357 | |
count total (s) self (s) | |
1 0.000001 if &filetype ==# '' | |
return 0 | |
1 0.000000 endif | |
2 0.000002 for plugin in a:plugins | |
1 0.000002 let ftplugin = plugin.rtp . '/ftplugin/' . &filetype | |
1 0.000001 let after = plugin.rtp . '/after/ftplugin/' . &filetype | |
1 0.000338 if !empty(filter(['ftplugin', 'indent', 'after/ftplugin', 'after/indent',], "filereadable(printf('%s/%s/%s.vim', plugin.rtp, v:val, &filetype))")) || isdirectory(ftplugin) || isdirectory(after) || glob(ftplugin. '_*.vim') !=# '' || glob(after . '_*.vim') !=# '' | |
return 1 | |
1 0.000000 endif | |
2 0.000001 endfor | |
1 0.000001 return 0 | |
FUNCTION vital#_vimfiler#Vim#Buffer#import() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vital/_vimfiler/Vim/Buffer.vim line 5 | |
Called 1 time | |
Total time: 0.000018 | |
Self time: 0.000018 | |
count total (s) self (s) | |
1 0.000018 return map({'parse_cmdarg': '', '_vital_depends': '', 'read_content': '', 'get_selected_text': '', 'is_cmdwin': '', 'edit_content': '', 'open': '', 'get_last_selected': '', '_vital_loaded': ''}, 'function("s:" . v:key)') | |
FUNCTION SpaceVim#layers#core#tabline#get() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/core/tabline.vim line 123 | |
Called 1 time | |
Total time: 0.000112 | |
Self time: 0.000106 | |
count total (s) self (s) | |
1 0.000002 let tabpage_counts = tabpagenr('$') | |
1 0.000001 let all_tabline_items = [] | |
1 0.000001 let shown_items = [] | |
1 0.000001 if tabpage_counts > 1 | |
let current_tabnr = tabpagenr() | |
let previous_tabnr = s:TAB.previous_tabpagenr() | |
let matched_len = 0 | |
for i in range(1, tabpage_counts) | |
call add(all_tabline_items, s:buffer_item(tabpagebuflist(i)[tabpagewinnr(i) - 1], i)) | |
endfor | |
if previous_tabnr < current_tabnr | |
for i in range(previous_tabnr == 0 ? 1 : previous_tabnr, current_tabnr) | |
call add(shown_items, all_tabline_items[i - 1]) | |
if s:check_len(shown_items) | |
let matched_len = 1 | |
call remove(shown_items, 0) | |
endif | |
endfor | |
if !matched_len && current_tabnr < tabpage_counts | |
for i in range(current_tabnr + 1, tabpage_counts) | |
call add(shown_items, all_tabline_items[i - 1]) | |
if s:check_len(shown_items) | |
let matched_len = 1 | |
call remove(shown_items, -1) | |
break | |
endif | |
endfor | |
endif | |
if !matched_len && previous_tabnr > 1 | |
for i in reverse(range(1, previous_tabnr - 1)) | |
call insert(shown_items, all_tabline_items[i - 1]) | |
if s:check_len(shown_items) | |
call remove(shown_items, 0) | |
break | |
endif | |
endfor | |
endif | |
else | |
for i in range(current_tabnr, previous_tabnr > tabpage_counts ? tabpage_counts : previous_tabnr) | |
call add(shown_items, all_tabline_items[i - 1]) | |
if s:check_len(shown_items) | |
let matched_len = 1 | |
call remove(shown_items, -1) | |
break | |
endif | |
endfor | |
if !matched_len && current_tabnr > 1 | |
for i in reverse(range(1, current_tabnr - 1)) | |
call insert(shown_items, all_tabline_items[i - 1]) | |
if s:check_len(shown_items) | |
let matched_len = 1 | |
call remove(shown_items, 0) | |
break | |
endif | |
endfor | |
endif | |
if !matched_len && previous_tabnr < tabpage_counts | |
for i in range(previous_tabnr + 1, tabpage_counts) | |
call add(shown_items, all_tabline_items[i - 1]) | |
if s:check_len(shown_items) | |
call remove(shown_items, -1) | |
break | |
endif | |
endfor | |
endif | |
endif | |
let s:shown_items = shown_items | |
if empty(shown_items) | |
return '' | |
endif | |
let t = '' | |
let right_hidden_tab_number = shown_items[0].tabnr - 1 | |
let left_hidden_tab_number = tabpage_counts - shown_items[-1].tabnr | |
if right_hidden_tab_number > 0 | |
let t .= '%#SpaceVim_tabline_a#' . ' << '. right_hidden_tab_number | |
endif | |
if current_tabnr == shown_items[0].tabnr | |
if s:is_modified(shown_items[0].bufnr) | |
if right_hidden_tab_number > 0 | |
let t .= ' %#SpaceVim_tabline_a_SpaceVim_tabline_m#' . s:lsep | |
endif | |
let t .= '%#SpaceVim_tabline_m# ' | |
else | |
if right_hidden_tab_number > 0 | |
let t .= ' ' . s:ilsep | |
endif | |
let t .= '%#SpaceVim_tabline_a# ' | |
endif | |
else | |
if right_hidden_tab_number > 0 | |
let t .= ' %#SpaceVim_tabline_a_SpaceVim_tabline_b#' . s:lsep | |
endif | |
let t .= '%#SpaceVim_tabline_b# ' | |
endif | |
let index = 1 | |
for item in shown_items[:-2] | |
if has('tablineat') | |
let t .= '%' . index . '@SpaceVim#layers#core#tabline#jump@' | |
endif | |
let t .= s:wrap_id(index) | |
let index += 1 | |
let t .= s:get_no_empty(gettabvar(item.tabnr, '_spacevim_tab_name'), item.bufname) | |
if item.tabnr == current_tabnr - 1 | |
let t .= ' %#SpaceVim_tabline_b_SpaceVim_tabline_a#' . s:lsep . '%#SpaceVim_tabline_a# ' | |
elseif item.tabnr == current_tabnr | |
let t .= ' %#SpaceVim_tabline_a_SpaceVim_tabline_b#' . s:lsep . '%#SpaceVim_tabline_b# ' | |
else | |
let t .= ' ' . s:ilsep . ' ' | |
endif | |
endfor | |
let item = shown_items[-1] | |
if has('tablineat') | |
let t .= '%' . index . '@SpaceVim#layers#core#tabline#jump@' | |
endif | |
let t .= s:wrap_id(index) . s:get_no_empty(gettabvar(item.tabnr, '_spacevim_tab_name'), item.bufname) | |
if item.tabnr == current_tabnr | |
if left_hidden_tab_number > 0 | |
if s:is_modified(item.bufnr) | |
let t .= ' %#SpaceVim_tabline_m_SpaceVim_tabline_a#' . s:lsep | |
let t .= ' %#SpaceVim_tabline_a#' . left_hidden_tab_number . ' >>' | |
let t .= ' %#SpaceVim_tabline_a_SpaceVim_tabline_b#' . s:lsep . '%#SpaceVim_tabline_b#' | |
else | |
let t .= ' ' . s:ilsep | |
let t .= ' ' . left_hidden_tab_number . ' >>' | |
let t .= ' %#SpaceVim_tabline_a_SpaceVim_tabline_b#' . s:lsep . '%#SpaceVim_tabline_b#' | |
endif | |
else | |
if s:is_modified(item.bufnr) | |
let t .= ' %#SpaceVim_tabline_m_SpaceVim_tabline_b#' . s:lsep . '%#SpaceVim_tabline_b#' | |
else | |
let t .= ' %#SpaceVim_tabline_a_SpaceVim_tabline_b#' . s:lsep . '%#SpaceVim_tabline_b#' | |
endif | |
endif | |
else | |
if left_hidden_tab_number > 0 | |
let t .= ' %#SpaceVim_tabline_b_SpaceVim_tabline_a#' . s:lsep | |
let t .= ' %#SpaceVim_tabline_a#' . left_hidden_tab_number . ' >>' | |
let t .= ' %#SpaceVim_tabline_a_SpaceVim_tabline_b#' . s:lsep . '%#SpaceVim_tabline_b#' | |
else | |
let t .= ' ' . s:ilsep | |
endif | |
endif | |
" how many buffers after the last item are hidden? | |
let t .= '%=%#SpaceVim_tabline_a_SpaceVim_tabline_b#' . s:rsep | |
let t .= '%#SpaceVim_tabline_a# Tabs ' | |
return t | |
1 0.000000 else | |
1 0.000016 0.000009 let s:buffers = s:BUFFER.listed_buffers() | |
1 0.000001 if empty(s:buffers) | |
1 0.000001 return '' | |
endif | |
for i in range(len(s:buffers)) | |
call add(all_tabline_items, s:buffer_item(s:buffers[i])) | |
endfor | |
let current_buf_index = index(s:buffers, s:BUFFER.bufnr()) | |
let previous_buf_index = index(s:buffers, s:BUFFER.bufnr('#')) | |
let matched_len = 0 | |
if current_buf_index ==# -1 | |
let shown_items = filter(s:shown_items, 'buflisted(v:val.bufnr)') | |
else | |
if previous_buf_index < current_buf_index | |
if previous_buf_index == -1 | |
let previous_buf_index = 0 | |
endif | |
for i in range(previous_buf_index, current_buf_index) | |
call add(shown_items, all_tabline_items[i]) | |
if s:check_len(shown_items) | |
let matched_len = 1 | |
call remove(shown_items, 0) | |
endif | |
endfor | |
if !matched_len && current_buf_index < len(s:buffers) - 1 | |
for i in range(current_buf_index + 1, len(s:buffers) - 1) | |
call add(shown_items, all_tabline_items[i]) | |
if s:check_len(shown_items) | |
let matched_len = 1 | |
call remove(shown_items, -1) | |
break | |
endif | |
endfor | |
endif | |
if !matched_len && previous_buf_index > 0 | |
for i in reverse(range(0, previous_buf_index - 1)) | |
call insert(shown_items, all_tabline_items[i]) | |
if s:check_len(shown_items) | |
call remove(shown_items, 0) | |
break | |
endif | |
endfor | |
endif | |
else | |
if previous_buf_index == -1 | |
let previous_buf_index = len(s:buffers) - 1 | |
endif | |
for i in range(current_buf_index, previous_buf_index) | |
call add(shown_items, all_tabline_items[i]) | |
if s:check_len(shown_items) | |
let matched_len = 1 | |
call remove(shown_items, -1) | |
break | |
endif | |
endfor | |
if !matched_len && current_buf_index > 0 | |
for i in reverse(range(0, current_buf_index - 1)) | |
call insert(shown_items, all_tabline_items[i]) | |
if s:check_len(shown_items) | |
let matched_len = 1 | |
call remove(shown_items, 0) | |
break | |
endif | |
endfor | |
endif | |
if !matched_len && previous_buf_index < len(s:buffers) - 1 | |
for i in range(previous_buf_index + 1, len(s:buffers) - 1) | |
call add(shown_items, all_tabline_items[i]) | |
if s:check_len(shown_items) | |
call remove(shown_items, -1) | |
break | |
endif | |
endfor | |
endif | |
endif | |
let s:shown_items = shown_items | |
let g:_spacevim_list_buffers = map(deepcopy(s:shown_items), 'v:val.bufnr') | |
endif | |
if empty(shown_items) | |
return '' | |
endif | |
let t = '' | |
" how many buffers before the first item are hidden. | |
let right_hidden_buffer_number = index(s:buffers, shown_items[0].bufnr) | |
let left_hidden_buffer_number = len(s:buffers) - 1 - index(s:buffers, shown_items[-1].bufnr) | |
if right_hidden_buffer_number > 0 | |
let t .= '%#SpaceVim_tabline_a#' . ' << '. right_hidden_buffer_number | |
endif | |
if s:BUFFER.bufnr() == shown_items[0].bufnr | |
if s:is_modified(shown_items[0].bufnr) | |
if right_hidden_buffer_number > 0 | |
let t .= ' %#SpaceVim_tabline_a_SpaceVim_tabline_m#' . s:lsep | |
endif | |
let t .= '%#SpaceVim_tabline_m# ' | |
else | |
if right_hidden_buffer_number > 0 | |
let t .= ' ' . s:ilsep | |
endif | |
let t .= '%#SpaceVim_tabline_a# ' | |
endif | |
else | |
if right_hidden_buffer_number > 0 | |
let t .= ' %#SpaceVim_tabline_a_SpaceVim_tabline_b#' . s:lsep | |
endif | |
let t .= s:is_modified(shown_items[0].bufnr) ? '%#SpaceVim_tabline_m_i# ' : '%#SpaceVim_tabline_b# ' | |
endif | |
let index = 1 | |
for item in shown_items[:-2] | |
if has('tablineat') | |
let t .= '%' . index . '@SpaceVim#layers#core#tabline#jump@' | |
endif | |
let t .= s:wrap_id(index) . item.bufname | |
let index += 1 | |
if item.bufnr == s:BUFFER.bufnr() | |
if s:is_modified(item.bufnr) | |
let t .= ' %#SpaceVim_tabline_m_SpaceVim_tabline_b#' . s:lsep | |
else | |
let t .= ' %#SpaceVim_tabline_a_SpaceVim_tabline_b#' . s:lsep | |
endif | |
let t .= s:is_modified(s:buffers[index(s:buffers, item.bufnr) + 1]) ? '%#SpaceVim_tabline_m_i# ' : '%#SpaceVim_tabline_b# ' | |
elseif index(s:buffers, s:BUFFER.bufnr()) > 0 && item.bufnr == s:buffers[index(s:buffers, s:BUFFER.bufnr()) - 1] | |
if s:is_modified(s:BUFFER.bufnr()) | |
let t .= ' %#SpaceVim_tabline_b_SpaceVim_tabline_m#' . s:lsep . '%#SpaceVim_tabline_m# ' | |
else | |
let t .= ' %#SpaceVim_tabline_b_SpaceVim_tabline_a#' . s:lsep . '%#SpaceVim_tabline_a# ' | |
endif | |
else | |
let t .= s:is_modified(s:buffers[index(s:buffers, item.bufnr) + 1]) ? '%#SpaceVim_tabline_m_i# ' : '%#SpaceVim_tabline_b# ' | |
let t .= s:ilsep . ' ' | |
endif | |
endfor | |
let item = shown_items[-1] | |
if has('tablineat') | |
let t .= '%' . index . '@SpaceVim#layers#core#tabline#jump@' | |
endif | |
let t .= s:wrap_id(index) . item.bufname | |
if item.bufnr == s:BUFFER.bufnr() | |
if left_hidden_buffer_number > 0 | |
if s:is_modified(item.bufnr) | |
let t .= ' %#SpaceVim_tabline_m_SpaceVim_tabline_a#' . s:lsep | |
let t .= ' %#SpaceVim_tabline_a#' . left_hidden_buffer_number . ' >>' | |
let t .= ' %#SpaceVim_tabline_a_SpaceVim_tabline_b#' . s:lsep . '%#SpaceVim_tabline_b#' | |
else | |
let t .= ' ' . s:ilsep | |
let t .= ' ' . left_hidden_buffer_number . ' >>' | |
let t .= ' %#SpaceVim_tabline_a_SpaceVim_tabline_b#' . s:lsep . '%#SpaceVim_tabline_b#' | |
endif | |
else | |
if s:is_modified(item.bufnr) | |
let t .= ' %#SpaceVim_tabline_m_SpaceVim_tabline_b#' . s:lsep . '%#SpaceVim_tabline_b#' | |
else | |
let t .= ' %#SpaceVim_tabline_a_SpaceVim_tabline_b#' . s:lsep . '%#SpaceVim_tabline_b#' | |
endif | |
endif | |
else | |
if left_hidden_buffer_number > 0 | |
let t .= ' %#SpaceVim_tabline_b_SpaceVim_tabline_a#' . s:lsep | |
let t .= ' %#SpaceVim_tabline_a#' . left_hidden_buffer_number . ' >>' | |
let t .= ' %#SpaceVim_tabline_a_SpaceVim_tabline_b#' . s:lsep . '%#SpaceVim_tabline_b#' | |
else | |
let t .= ' ' . s:ilsep | |
endif | |
endif | |
" how many buffers after the last item are hidden? | |
let t .= '%=%#SpaceVim_tabline_a_SpaceVim_tabline_b#' . s:rsep | |
let t .= '%#SpaceVim_tabline_a# Buffers ' | |
return t | |
endif | |
FUNCTION <SNR>111_objnoremap() | |
Defined: ~/.SpaceVim/bundle/vim-textobj-user/autoload/textobj/user.vim line 645 | |
Called 8 times | |
Total time: 0.000664 | |
Self time: 0.000082 | |
count total (s) self (s) | |
8 0.000225 0.000034 let v = s:proper_visual_mode(a:lhs) | |
8 0.000436 0.000046 call s:_map([v.'noremap', 'onoremap'], a:forced_p, a:lhs, a:rhs) | |
FUNCTION <SNR>221_print_error() | |
Defined: ~/.SpaceVim/bundle/vimproc.vim/autoload/vimproc.vim line 37 | |
Called 1 time | |
Total time: 0.000055 | |
Self time: 0.000055 | |
count total (s) self (s) | |
1 0.000055 echohl Error | echomsg '[vimproc] ' . a:string | echohl None | |
FUNCTION unite#version() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite.vim line 18 | |
Called 1 time | |
Total time: 0.000004 | |
Self time: 0.000004 | |
count total (s) self (s) | |
1 0.000004 return str2nr(printf('%02d%02d', 6, 3)) | |
FUNCTION provider#python3#Call() | |
Defined: /usr/share/nvim/runtime/autoload/provider/python3.vim line 26 | |
Called 1 time | |
Total time: 0.044747 | |
Self time: 0.000721 | |
count total (s) self (s) | |
1 0.000001 if s:err != '' | |
return | |
1 0.000000 endif | |
1 0.000001 if !exists('s:host') | |
1 0.000003 let s:rpcrequest = function('rpcrequest') | |
" Ensure that we can load the Python3 host before bootstrapping | |
1 0.000000 try | |
1 0.044033 0.000008 let s:host = remote#host#Require('legacy-python3-provider') | |
catch | |
let s:err = v:exception | |
echohl WarningMsg | |
echomsg v:exception | |
echohl None | |
return | |
1 0.000000 endtry | |
1 0.000000 endif | |
1 0.000701 return call(s:rpcrequest, insert(insert(a:args, 'python_'.a:method), s:host)) | |
FUNCTION <SNR>219__vital_loaded() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/vital/_unite/Data/String.vim line 21 | |
Called 1 time | |
Total time: 0.000059 | |
Self time: 0.000010 | |
count total (s) self (s) | |
1 0.000001 let s:V = a:V | |
1 0.000058 0.000008 let s:L = s:V.import('Data.List') | |
FUNCTION SpaceVim#plugins#projectmanager#RootchandgeCallback() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/plugins/projectmanager.vim line 87 | |
Called 5 times | |
Total time: 0.000125 | |
Self time: 0.000084 | |
count total (s) self (s) | |
5 0.000028 let project = { 'path' : getcwd(), 'name' : fnamemodify(getcwd(), ':t') } | |
5 0.000062 0.000021 call s:cache_project(project) | |
5 0.000007 let g:_spacevim_project_name = project.name | |
5 0.000009 let b:_spacevim_project_name = g:_spacevim_project_name | |
5 0.000007 for Callback in s:project_callback | |
call call(Callback, []) | |
5 0.000003 endfor | |
FUNCTION 101() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/vim/buffer.vim line 133 | |
Called 2 times | |
Total time: 0.000011 | |
Self time: 0.000011 | |
count total (s) self (s) | |
2 0.000011 return filter(range(1, bufnr('$')), 'buflisted(v:val)') | |
FUNCTION 107() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/vim/statusline.vim line 25 | |
Called 15 times | |
Total time: 0.141991 | |
Self time: 0.000166 | |
count total (s) self (s) | |
15 0.000068 let str = matchstr(a:sec, '%{.*}') | |
15 0.000011 if !empty(str) | |
9 0.141890 0.000065 return len(a:sec) - len(str) + len(eval(str[2:-2])) + 4 | |
6 0.000002 else | |
6 0.000005 return len(a:sec) + 4 | |
endif | |
FUNCTION 109() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/vim/statusline.vim line 38 | |
Called 1 time | |
Total time: 0.142210 | |
Self time: 0.000188 | |
count total (s) self (s) | |
1 0.000003 let l = '%#' . a:hi_a . '#' . a:left_sections[0] | |
1 0.000003 let l .= '%#' . a:hi_a . '_' . a:hi_b . '#' . a:lsep | |
1 0.000001 let flag = 1 | |
1 0.000001 let len = 0 | |
4 0.000011 for sec in filter(a:left_sections[1:], '!empty(v:val)') | |
3 0.000057 0.000011 if self.check_width(len, sec, a:winwidth) | |
3 0.000031 0.000009 let len += self.len(sec) | |
3 0.000002 if flag == 1 | |
2 0.000004 let l .= '%#' . a:hi_b . '#' . sec | |
2 0.000006 let l .= '%#' . a:hi_b . '_' . a:hi_c . '#' . a:lsep | |
1 0.000000 else | |
1 0.000003 let l .= '%#' . a:hi_c . '#' . sec | |
1 0.000002 let l .= '%#' . a:hi_c . '_' . a:hi_b . '#' . a:lsep | |
3 0.000001 endif | |
3 0.000003 let flag = flag * -1 | |
3 0.000001 endif | |
4 0.000002 endfor | |
1 0.000004 let l = l[:len(a:lsep) * -1 - 1] | |
1 0.000001 if empty(a:right_sections) | |
if flag == 1 | |
return l . '%#' . a:hi_c . '#' | |
else | |
return l . '%#' . a:hi_b . '#' | |
endif | |
1 0.000000 endif | |
1 0.000013 0.000004 if self.check_width(len, a:fname, a:winwidth) | |
1 0.000008 0.000003 let len += self.len(a:fname) | |
1 0.000000 if flag == 1 | |
let l .= '%#' . a:hi_c . '_' . a:hi_z . '#' . a:lsep . '%#' . a:hi_z . '#' . a:fname . '%=' | |
1 0.000000 else | |
1 0.000004 let l .= '%#' . a:hi_b . '_' . a:hi_z . '#' . a:lsep . '%#' . a:hi_z . '#' . a:fname . '%=' | |
1 0.000000 endif | |
else | |
if flag == 1 | |
let l .= '%#' . a:hi_c . '_' . a:hi_z . '#' . a:lsep . '%=' | |
else | |
let l .= '%#' . a:hi_b . '_' . a:hi_z . '#' . a:lsep . '%=' | |
endif | |
1 0.000000 endif | |
1 0.141849 0.000005 if self.check_width(len, a:tag, a:winwidth) && g:spacevim_enable_statusline_tag | |
1 0.000008 let l .= '%#' . a:hi_z . '#' . a:tag | |
1 0.000000 endif | |
1 0.000003 let l .= '%#' . a:hi_b . '_' . a:hi_z . '#' . a:rsep | |
1 0.000001 let flag = 1 | |
4 0.000008 for sec in filter(a:right_sections, '!empty(v:val)') | |
3 0.000073 0.000013 if self.check_width(len, sec, a:winwidth) | |
3 0.000047 0.000010 let len += self.len(sec) | |
3 0.000002 if flag == 1 | |
2 0.000007 let l .= '%#' . a:hi_b . '#' . sec | |
2 0.000005 let l .= '%#' . a:hi_c . '_' . a:hi_b . '#' . a:rsep | |
1 0.000000 else | |
1 0.000002 let l .= '%#' . a:hi_c . '#' . sec | |
1 0.000004 let l .= '%#' . a:hi_b . '_' . a:hi_c . '#' . a:rsep | |
3 0.000001 endif | |
3 0.000003 let flag = flag * -1 | |
3 0.000001 endif | |
4 0.000002 endfor | |
1 0.000002 return l[:-4] | |
FUNCTION <SNR>181_get_index_as_string() | |
Defined: ~/.SpaceVim/bundle/vim-startify/autoload/startify.vim line 993 | |
Called 12 times | |
Total time: 0.000150 | |
Self time: 0.000150 | |
count total (s) self (s) | |
12 0.000015 if !empty(b:startify.indices) | |
return remove(b:startify.indices, 0) | |
12 0.000017 elseif exists('g:startify_custom_indices') | |
let listlen = len(g:startify_custom_indices) | |
if b:startify.entry_number < listlen | |
let idx = g:startify_custom_indices[b:startify.entry_number] | |
else | |
let idx = string(b:startify.entry_number - listlen) | |
endif | |
12 0.000003 else | |
12 0.000019 let idx = string(b:startify.entry_number) | |
12 0.000004 endif | |
12 0.000012 let b:startify.entry_number += 1 | |
12 0.000007 return idx | |
FUNCTION neomake#utils#get_verbosity() | |
Defined: ~/.SpaceVim/bundle/neomake/autoload/neomake/utils.vim line 5 | |
Called 3 times | |
Total time: 0.000020 | |
Self time: 0.000020 | |
count total (s) self (s) | |
3 0.000005 if a:0 && has_key(a:1, 'make_id') | |
return neomake#GetMakeOptions(a:1.make_id).verbosity | |
3 0.000001 endif | |
3 0.000007 return get(g:, 'neomake_verbose', 1) + &verbose | |
FUNCTION <SNR>181_print_section_header() | |
Defined: ~/.SpaceVim/bundle/vim-startify/autoload/startify.vim line 1013 | |
Called 2 times | |
Total time: 0.000039 | |
Self time: 0.000039 | |
count total (s) self (s) | |
2 0.000002 $ | |
2 0.000003 let curline = line('.') | |
8 0.000008 for lnum in range(curline, curline + len(s:last_message) + 1) | |
6 0.000008 call add(b:startify.section_header_lines, lnum) | |
8 0.000003 endfor | |
2 0.000009 call append('$', s:last_message + ['']) | |
2 0.000002 unlet s:last_message | |
FUNCTION <SNR>63_install_manager() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/plugins.vim line 109 | |
Called 1 time | |
Total time: 0.000028 | |
Self time: 0.000028 | |
count total (s) self (s) | |
" Fsep && Psep | |
1 0.000005 if has('win16') || has('win32') || has('win64') | |
let s:Psep = ';' | |
let s:Fsep = '\' | |
1 0.000000 else | |
1 0.000001 let s:Psep = ':' | |
1 0.000000 let s:Fsep = '/' | |
1 0.000000 endif | |
" auto install plugin manager | |
1 0.000001 if g:spacevim_plugin_manager ==# 'neobundle' | |
let g:_spacevim_neobundle_installed = 1 | |
exec 'set runtimepath+=' . g:_spacevim_root_dir . 'bundle/neobundle.vim/' | |
1 0.000001 elseif g:spacevim_plugin_manager ==# 'dein' | |
1 0.000001 let g:_spacevim_dein_installed = 1 | |
1 0.000005 exec 'set runtimepath+=' . g:_spacevim_root_dir . 'bundle/dein.vim/' | |
elseif g:spacevim_plugin_manager ==# 'vim-plug' | |
"auto install vim-plug | |
if filereadable(expand(g:spacevim_data_dir.'/vim-plug/autoload/plug.vim')) | |
let g:_spacevim_vim_plug_installed = 1 | |
else | |
if executable('curl') | |
exec '!curl -fLo ' . g:spacevim_data_dir.'/vim-plug/autoload/plug.vim' . ' --create-dirs ' . 'https://raw.githubusercontent.com/' . 'junegunn/vim-plug/master/plug.vim' | |
let g:_spacevim_vim_plug_installed = 1 | |
else | |
echohl WarningMsg | |
echom 'You need install curl!' | |
echohl None | |
endif | |
endif | |
exec 'set runtimepath+='g:spacevim_data_dir.'/vim-plug/' | |
1 0.000000 endif | |
FUNCTION <SNR>216_check_tree() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/view.vim line 343 | |
Called 5 times | |
Total time: 0.000144 | |
Self time: 0.000144 | |
count total (s) self (s) | |
5 0.000004 let level = 0 | |
5 0.000004 let _ = [] | |
37 0.000016 for file in a:files | |
32 0.000030 if file.vimfiler__nest_level == 0 || file.vimfiler__nest_level <= level + 1 | |
32 0.000028 call add(_, file) | |
32 0.000019 let level = file.vimfiler__nest_level | |
32 0.000008 endif | |
37 0.000009 endfor | |
5 0.000003 return _ | |
FUNCTION 25() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/vim/compatible.vim line 342 | |
Called 2 times | |
Total time: 0.000011 | |
Self time: 0.000011 | |
count total (s) self (s) | |
2 0.000010 return resolve(a:path) | |
FUNCTION 26() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/logger.vim line 38 | |
Called 1 time | |
Total time: 0.000001 | |
Self time: 0.000001 | |
count total (s) self (s) | |
1 0.000001 let self.silent = a:sl | |
FUNCTION 27() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/logger.vim line 42 | |
Called 1 time | |
Total time: 0.000001 | |
Self time: 0.000001 | |
count total (s) self (s) | |
1 0.000001 let self.verbose = a:vb | |
FUNCTION 28() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/logger.vim line 46 | |
Called 1 time | |
Total time: 0.000001 | |
Self time: 0.000001 | |
count total (s) self (s) | |
1 0.000001 let self.level = a:l | |
FUNCTION matchup#loader#init_module() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup/loader.vim line 10 | |
Called 1 time | |
Total time: 0.000045 | |
Self time: 0.000045 | |
count total (s) self (s) | |
1 0.000002 augroup matchup_filetype | |
1 0.000033 au! | |
1 0.000004 autocmd FileType * call matchup#loader#init_buffer() | |
1 0.000001 if g:matchup_delim_start_plaintext | |
1 0.000003 autocmd BufWinEnter,CmdWinEnter * call matchup#loader#bufwinenter() | |
1 0.000000 endif | |
1 0.000000 augroup END | |
FUNCTION unite#helper#get_substitute_input() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/helper.vim line 40 | |
Called 2 times | |
Total time: 0.000177 | |
Self time: 0.000063 | |
count total (s) self (s) | |
2 0.000024 0.000007 let unite = unite#get_current_unite() | |
2 0.000002 let input = a:input | |
2 0.000003 if empty(unite.args) && input =~ '^.\{-}\%(\\\@<!\s\)\+' | |
" Ignore source name | |
let input = matchstr(input, '^.\{-}\%(\\\@<!\s\)\+\zs.*') | |
2 0.000000 endif | |
2 0.000110 0.000018 let substitute_patterns = reverse(unite#util#sort_by( values(unite#custom#get_profile(unite.profile_name, 'substitute_patterns')), 'v:val.priority')) | |
2 0.000004 if unite.input != '' && stridx(input, unite.input) == 0 && !empty(unite.args) | |
" Substitute after input. | |
let input_save = input | |
let input = input_save[len(unite.input) :] | |
let head = input_save[: len(unite.input)-1] | |
2 0.000001 else | |
" Substitute all input. | |
2 0.000001 let head = '' | |
2 0.000000 endif | |
2 0.000016 0.000011 let inputs = unite#helper#get_substitute_input_loop( input, substitute_patterns) | |
2 0.000004 return map(inputs, 'head . v:val') | |
FUNCTION 110() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/vim/statusline.vim line 99 | |
Called 1 time | |
Total time: 0.000006 | |
Self time: 0.000004 | |
count total (s) self (s) | |
1 0.000006 0.000004 return self.__floating.exists() | |
FUNCTION <SNR>216_define_filename_regions() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/view.vim line 356 | |
Called 5 times | |
Total time: 0.000757 | |
Self time: 0.000437 | |
count total (s) self (s) | |
5 0.000092 0.000023 let leaf_icon = vimfiler#util#escape_pattern( g:vimfiler_tree_leaf_icon) | |
5 0.000076 0.000022 let file_icon = vimfiler#util#escape_pattern( g:vimfiler_file_icon) | |
5 0.000071 0.000021 let marked_file_icon = vimfiler#util#escape_pattern( g:vimfiler_marked_file_icon) | |
5 0.000069 0.000020 let opened_icon = vimfiler#util#escape_pattern( g:vimfiler_tree_opened_icon) | |
5 0.000068 0.000019 let closed_icon = vimfiler#util#escape_pattern( g:vimfiler_tree_closed_icon) | |
5 0.000072 0.000023 let ro_file_icon = vimfiler#util#escape_pattern( g:vimfiler_readonly_file_icon) | |
" Filename regions. | |
30 0.000047 for [icon, syntax] in [ [file_icon, 'vimfilerNormalFile'], [marked_file_icon, 'vimfilerMarkedFile'], [opened_icon, 'vimfilerOpenedFile'], [closed_icon, 'vimfilerClosedFile'], [ro_file_icon, 'vimfilerROFile'], ] | |
25 0.000196 execute 'syntax region '.syntax. ' start=''^\s*\%('.leaf_icon.'\)\?'. icon . ''' end=''\%'.a:max_len . 'v'' oneline contains=vimfilerNonMark' | |
25 0.000033 call add(b:vimfiler.syntaxes, syntax) | |
30 0.000011 endfor | |
FUNCTION <SNR>136_append() | |
Defined: ~/.SpaceVim/bundle/unite.vim/plugin/unite/buffer.vim line 22 | |
Called 3 times | |
Total time: 0.000294 | |
Self time: 0.000102 | |
count total (s) self (s) | |
3 0.000008 if bufnr('%') != expand('<abuf>') | |
return | |
3 0.000001 endif | |
3 0.000011 if !has('vim_starting') || bufname(bufnr('%')) != '' | |
1 0.000267 0.000075 call unite#sources#buffer#variables#append(bufnr('%')) | |
3 0.000001 endif | |
FUNCTION 30() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/logger.vim line 61 | |
Called 15 times | |
Total time: 0.000055 | |
Self time: 0.000055 | |
count total (s) self (s) | |
15 0.000029 call add(self.temp, a:msg) | |
15 0.000014 if empty(self.file) | |
15 0.000007 return | |
endif | |
if !isdirectory(fnamemodify(self.file, ':p:h')) | |
call mkdir(expand(fnamemodify(self.file, ':p:h')), 'p') | |
endif | |
let flags = filewritable(self.file) ? 'a' : '' | |
call writefile([a:msg], self.file, flags) | |
FUNCTION 32() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/logger.vim line 87 | |
Called 15 times | |
Total time: 0.000269 | |
Self time: 0.000214 | |
count total (s) self (s) | |
15 0.000014 if self.level > 1 | |
return | |
15 0.000005 endif | |
15 0.000065 let time = strftime('%H:%M:%S') | |
15 0.000047 let log = '[ ' . self.name . ' ] [' . time . '] [ ' . s:levels[0] . ' ] ' . a:msg | |
15 0.000015 if !self.silent && self.verbose >= 3 | |
echom log | |
15 0.000004 endif | |
15 0.000096 0.000041 call self.write(log) | |
FUNCTION 33() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/logger.vim line 99 | |
Called 19 times | |
Total time: 0.000022 | |
Self time: 0.000022 | |
count total (s) self (s) | |
19 0.000019 let self.name = a:name | |
FUNCTION 34() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/logger.vim line 103 | |
Called 3 times | |
Total time: 0.000005 | |
Self time: 0.000005 | |
count total (s) self (s) | |
3 0.000004 return self.name | |
FUNCTION 39() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/logger.vim line 127 | |
Called 9 times | |
Total time: 0.000231 | |
Self time: 0.000066 | |
count total (s) self (s) | |
9 0.000036 0.000025 call s:LOGGER.set_name(self.derive_name) | |
9 0.000163 0.000019 call s:LOGGER.info(a:msg) | |
9 0.000029 0.000020 call s:LOGGER.set_name(self.origin_name) | |
FUNCTION dein#autoload#_on_func() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/autoload.vim line 145 | |
Called 58 times | |
Total time: 0.003815 | |
Self time: 0.002222 | |
count total (s) self (s) | |
58 0.000469 let function_prefix = substitute(a:name, '[^#]*$', '', '') | |
58 0.000327 if function_prefix =~# '^dein#' || function_prefix =~# '^vital#' || has('vim_starting') | |
24 0.000013 return | |
34 0.000011 endif | |
34 0.002930 0.001337 call dein#autoload#_source(filter(dein#util#_get_lazy_plugins(), "stridx(function_prefix, v:val.normalized_name.'#') == 0 || (index(get(v:val, 'on_func', []), a:name) >= 0)")) | |
FUNCTION SpaceVim#util#haspy3lib() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/util.vim line 115 | |
Called 1 time | |
Total time: 0.044772 | |
Self time: 0.044772 | |
count total (s) self (s) | |
1 0.000002 if has_key(s:cache_py3_libs, a:lib) | |
return s:cache_py3_libs[a:lib] | |
1 0.000000 endif | |
1 0.000001 try | |
1 0.044755 exe 'py3 import ' . a:lib | |
catch | |
let s:cache_py3_libs[a:lib] = 0 | |
return 0 | |
1 0.000001 endtry | |
1 0.000004 let s:cache_py3_libs[a:lib] = 1 | |
1 0.000002 return 1 | |
FUNCTION <SNR>82__import() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/vital/unite.vim line 158 | |
Called 5 times | |
Total time: 0.001806 | |
Self time: 0.000808 | |
count total (s) self (s) | |
5 0.000009 if has_key(s:loaded, a:name) | |
1 0.000014 return copy(s:loaded[a:name]) | |
4 0.000001 endif | |
4 0.001424 0.000027 let module = self._get_module(a:name) | |
4 0.000006 if has_key(module, '_vital_created') | |
1 0.000014 0.000006 call module._vital_created(module) | |
4 0.000001 endif | |
4 0.000180 let export_module = filter(copy(module), 'v:key =~# "^\\a"') | |
" Cache module before calling module.vital_loaded() to avoid cyclic | |
" dependences but remove the cache if module._vital_loaded() fails. | |
" let s:loaded[a:name] = export_module | |
4 0.000008 let s:loaded[a:name] = export_module | |
4 0.000005 if has_key(module, '_vital_loaded') | |
1 0.000000 try | |
1 0.000032 0.000022 call module._vital_loaded(vital#{s:plugin_name}#new()) | |
catch | |
unlet s:loaded[a:name] | |
throw 'vital: fail to call ._vital_loaded(): ' . v:exception | |
1 0.000000 endtry | |
4 0.000001 endif | |
4 0.000033 return copy(s:loaded[a:name]) | |
FUNCTION vimfiler#mappings#define_default_mappings() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/mappings.vim line 15 | |
Called 1 time | |
Total time: 0.002470 | |
Self time: 0.002206 | |
count total (s) self (s) | |
" Plugin keymappings "{{{ | |
1 0.000041 nnoremap <buffer><expr> <Plug>(vimfiler_loop_cursor_down) (line('.') == line('$'))? (vimfiler#get_file_offset(b:vimfiler)+1).'Gzb' : 'j' | |
1 0.000018 nnoremap <buffer><silent><expr> <Plug>(vimfiler_loop_cursor_up) (line('.') == 1)? ":call \<SID>cursor_bottom()\<CR>" : 'k' | |
1 0.000015 nnoremap <buffer><silent> <Plug>(vimfiler_redraw_screen) :<C-u>call vimfiler#force_redraw_screen(1)<CR> | |
1 0.000015 nnoremap <buffer><silent> <Plug>(vimfiler_toggle_mark_current_line) :<C-u>call <SID>toggle_mark_current_line('j')<CR> | |
1 0.000014 nnoremap <buffer><silent> <Plug>(vimfiler_toggle_mark_current_line_up) :<C-u>call <SID>toggle_mark_current_line('k')<CR> | |
1 0.000017 vnoremap <buffer><silent> <Plug>(vimfiler_toggle_mark_selected_lines) :<C-u>call <SID>toggle_mark_lines(getpos("'<")[1], getpos("'>")[1])<CR> | |
1 0.000014 nnoremap <buffer><silent> <Plug>(vimfiler_toggle_mark_all_lines) :<C-u>call <SID>toggle_mark_all_lines()<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_mark_similar_lines) :<C-u>call <SID>mark_similar_lines()<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_clear_mark_all_lines) :<C-u>call <SID>clear_mark_all_lines(b:vimfiler)<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_mark_current_line) :<C-u>call <SID>mark_current_line()<CR> | |
1 0.000016 nmap <buffer><silent><expr> <Plug>(vimfiler_cd_or_edit) vimfiler#mappings#smart_cursor_map( "\<Plug>(vimfiler_cd_file)", "\<Plug>(vimfiler_edit_file)") | |
1 0.000015 nmap <buffer><silent><expr> <Plug>(vimfiler_expand_or_edit) vimfiler#mappings#smart_cursor_map( "\<Plug>(vimfiler_expand_tree)", "\<Plug>(vimfiler_edit_file)") | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_execute_system_associated) :<C-u>call <SID>execute_system_associated()<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_execute_vimfiler_associated) :<C-u>call <SID>execute_vimfiler_associated()<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_switch_to_parent_directory) :<C-u>call vimfiler#mappings#cd('..')<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_switch_to_home_directory) :<C-u>call vimfiler#mappings#cd('file:~')<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_switch_to_root_directory) :<C-u>call vimfiler#mappings#cd('file:/')<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_switch_to_project_directory) :<C-u>call vimfiler#mappings#cd_project()<CR> | |
1 0.000012 nnoremap <buffer><silent> <Plug>(vimfiler_switch_to_drive) :<C-u>call <SID>switch_to_drive()<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_switch_to_history_directory) :<C-u>call <SID>switch_to_history_directory()<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_toggle_visible_ignore_files) :<C-u>call <SID>toggle_visible_ignore_files()<CR> | |
1 0.000013 nmap <buffer><silent> <Plug>(vimfiler_toggle_visible_dot_files) <Plug>(vimfiler_toggle_visible_ignore_files) | |
1 0.000012 nnoremap <buffer><silent> <Plug>(vimfiler_popup_shell) :<C-u>call <SID>popup_shell()<CR> | |
1 0.000015 nnoremap <buffer><silent> <Plug>(vimfiler_edit_file) :<C-u>call vimfiler#mappings#do_switch_action( b:vimfiler, b:vimfiler.context.edit_action)<CR> | |
1 0.000012 nnoremap <buffer><silent> <Plug>(vimfiler_split_edit_file) :<C-u>call <SID>split_edit_file()<CR> | |
1 0.000012 nnoremap <buffer><silent> <Plug>(vimfiler_edit_binary_file) :<C-u>call <SID>edit_binary_file()<CR> | |
1 0.000024 nnoremap <buffer><silent> <Plug>(vimfiler_execute_external_filer) :<C-u>call <SID>execute_external_filer()<CR> | |
1 0.000015 nnoremap <buffer><silent> <Plug>(vimfiler_execute_shell_command) :<C-u>call <SID>execute_shell_command()<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_hide) :<C-u>call vimfiler#util#hide_buffer()<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_exit) :<C-u>call <SID>exit(b:vimfiler)<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_close) :<C-u>call <SID>close(b:vimfiler)<CR> | |
1 0.000012 nnoremap <buffer><silent> <Plug>(vimfiler_help) :<C-u>call <SID>help()<CR> | |
1 0.000015 nnoremap <buffer><silent> <Plug>(vimfiler_preview_file) :<C-u>call vimfiler#mappings#do_action( b:vimfiler, b:vimfiler.context.preview_action)<CR> | |
1 0.000014 nnoremap <buffer><silent> <Plug>(vimfiler_sync_with_current_vimfiler) :<C-u>call <SID>sync_with_current_vimfiler()<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_sync_with_another_vimfiler) :<C-u>call <SID>sync_with_another_vimfiler()<CR> | |
1 0.000014 nnoremap <buffer><silent> <Plug>(vimfiler_open_file_in_another_vimfiler) :<C-u>call <SID>open_file_in_another_vimfiler()<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_print_filename) :<C-u>call <SID>print_filename()<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_toggle_maximize_window) :<C-u>call <SID>toggle_maximize_window()<CR> | |
1 0.000012 nnoremap <buffer><silent> <Plug>(vimfiler_yank_full_path) :<C-u>call <SID>yank_full_path()<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_set_current_mask) :<C-u>call <SID>set_current_mask()<CR> | |
1 0.000012 nnoremap <buffer><silent> <Plug>(vimfiler_grep) :<C-u>call <SID>grep()<CR> | |
1 0.000012 nnoremap <buffer><silent> <Plug>(vimfiler_find) :<C-u>call <SID>find()<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_select_sort_type) :<C-u>call <SID>select_sort_type()<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_switch_to_other_window) :<C-u>call <SID>switch_to_other_window()<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_switch_to_another_vimfiler) :<C-u>call <SID>switch_to_another_vimfiler()<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_switch_vim_buffer_mode) :<C-u>call <SID>switch_vim_buffer_mode()<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_restore_vimfiler_mode) :<C-u>call <SID>restore_vimfiler_mode()<CR> | |
1 0.000013 nmap <buffer> <Plug>(vimfiler_cd) <Plug>(vimfiler_cd_vim_current_dir) | |
1 0.000014 nnoremap <buffer><silent> <Plug>(vimfiler_cd_vim_current_dir) :<C-u>call vimfiler#mappings#_change_vim_current_dir()<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_cd_file) :<C-u>call <SID>cd_file_directory()<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_choose_action) :<C-u>call <SID>choose_action()<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_toggle_safe_mode) :<C-u>call <SID>toggle_safe_mode()<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_toggle_simple_mode) :<C-u>call <SID>toggle_simple_mode()<CR> | |
1 0.000012 nnoremap <buffer><silent> <Plug>(vimfiler_pushd) :<C-u>call <SID>pushd()<CR> | |
1 0.000012 nnoremap <buffer><silent> <Plug>(vimfiler_popd) :<C-u>call <SID>popd()<CR> | |
1 0.000016 nmap <buffer><silent><expr> <Plug>(vimfiler_smart_h) (<SID>check_opened() ? "\<Plug>(vimfiler_unexpand_tree)" : "\<Plug>(vimfiler_switch_to_parent_directory)") | |
1 0.000001 if a:context.explorer | |
1 0.000013 nmap <buffer><silent> <Plug>(vimfiler_smart_l) <Plug>(vimfiler_expand_or_edit) | |
else | |
nmap <buffer><silent> <Plug>(vimfiler_smart_l) <Plug>(vimfiler_cd_or_edit) | |
1 0.000000 endif | |
1 0.000013 nnoremap <buffer><silent><expr> <Plug>(vimfiler_cursor_top) (vimfiler#get_file_offset(b:vimfiler)+1).'Gzb' | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_cursor_bottom) :<C-u>call <SID>cursor_bottom()<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_expand_tree) :<C-u>call <SID>toggle_tree(0)<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_unexpand_tree) :<C-u>call <SID>unexpand_tree()<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_expand_tree_recursive) :<C-u>call <SID>toggle_tree(1)<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_cd_input_directory) :<C-u>call <SID>cd_input_directory()<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_double_click) :<C-u>call <SID>on_double_click()<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_quick_look) :<C-u>call <SID>quick_look()<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_jump_first_child) :<C-u>call <SID>jump_child(1)<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_jump_last_child) :<C-u>call <SID>jump_child(0)<CR> | |
1 0.000001 if b:vimfiler.is_safe_mode | |
call s:unmapping_file_operations() | |
1 0.000000 else | |
1 0.000129 0.000006 call s:mapping_file_operations() | |
1 0.000000 endif | |
"}}} | |
1 0.000003 if exists('g:vimfiler_no_default_key_mappings') && g:vimfiler_no_default_key_mappings | |
return | |
1 0.000000 endif | |
1 0.000002 if a:context.split || !a:context.quit || a:context.explorer | |
" Change default mapping. | |
1 0.000025 0.000022 execute s:nowait_nmap() '<Tab>' '<Plug>(vimfiler_switch_to_other_window)' | |
else | |
execute s:nowait_nmap() '<Tab>' '<Plug>(vimfiler_switch_to_another_vimfiler)' | |
1 0.000000 endif | |
1 0.000022 0.000019 execute s:nowait_nmap() 'j' '<Plug>(vimfiler_loop_cursor_down)' | |
1 0.000021 0.000018 execute s:nowait_nmap() 'k' '<Plug>(vimfiler_loop_cursor_up)' | |
" Toggle mark. | |
1 0.000020 0.000018 execute s:nowait_nmap() '<C-l>' '<Plug>(vimfiler_redraw_screen)' | |
1 0.000021 0.000019 execute s:nowait_nmap() '<Space>' '<Plug>(vimfiler_toggle_mark_current_line)' | |
1 0.000022 0.000020 execute s:nowait_nmap() '<S-LeftMouse>' '<Plug>(vimfiler_toggle_mark_current_line)' | |
1 0.000021 0.000019 execute s:nowait_nmap() '<S-Space>' '<Plug>(vimfiler_toggle_mark_current_line_up)' | |
1 0.000015 vmap <buffer> <Space> <Plug>(vimfiler_toggle_mark_selected_lines) | |
" Toggle marks in all lines. | |
1 0.000022 0.000020 execute s:nowait_nmap() '*' '<Plug>(vimfiler_toggle_mark_all_lines)' | |
1 0.000020 0.000018 execute s:nowait_nmap() '#' '<Plug>(vimfiler_mark_similar_lines)' | |
" Clear marks in all lines. | |
1 0.000020 0.000018 execute s:nowait_nmap() 'U' '<Plug>(vimfiler_clear_mark_all_lines)' | |
" Copy files. | |
1 0.000019 0.000017 execute s:nowait_nmap() 'c' '<Plug>(vimfiler_copy_file)' | |
1 0.000021 0.000019 execute s:nowait_nmap() 'Cc' '<Plug>(vimfiler_clipboard_copy_file)' | |
" Move files. | |
1 0.000019 0.000017 execute s:nowait_nmap() 'm' '<Plug>(vimfiler_move_file)' | |
1 0.000021 0.000018 execute s:nowait_nmap() 'Cm' '<Plug>(vimfiler_clipboard_move_file)' | |
" Delete files. | |
1 0.000019 0.000017 execute s:nowait_nmap() 'd' '<Plug>(vimfiler_delete_file)' | |
" Rename. | |
1 0.000020 0.000018 execute s:nowait_nmap() 'r' '<Plug>(vimfiler_rename_file)' | |
" Make directory. | |
1 0.000019 0.000017 execute s:nowait_nmap() 'K' '<Plug>(vimfiler_make_directory)' | |
" New file. | |
1 0.000019 0.000017 execute s:nowait_nmap() 'N' '<Plug>(vimfiler_new_file)' | |
" Paste. | |
1 0.000020 0.000018 execute s:nowait_nmap() 'Cp' '<Plug>(vimfiler_clipboard_paste)' | |
" Execute or change directory. | |
1 0.000020 0.000018 execute s:nowait_nmap() '<Enter>' '<Plug>(vimfiler_cd_or_edit)' | |
1 0.000019 0.000017 execute s:nowait_nmap() 'o' '<Plug>(vimfiler_expand_or_edit)' | |
1 0.000019 0.000017 execute s:nowait_nmap() 'l' '<Plug>(vimfiler_smart_l)' | |
1 0.000020 0.000018 execute s:nowait_nmap() 'x' '<Plug>(vimfiler_execute_system_associated)' | |
1 0.000021 0.000019 execute s:nowait_nmap() 'X' '<Plug>(vimfiler_execute_vimfiler_associated)' | |
" Move to directory. | |
1 0.000019 0.000017 execute s:nowait_nmap() 'h' '<Plug>(vimfiler_smart_h)' | |
1 0.000019 0.000017 execute s:nowait_nmap() 'L' '<Plug>(vimfiler_switch_to_drive)' | |
1 0.000020 0.000018 execute s:nowait_nmap() '~' '<Plug>(vimfiler_switch_to_home_directory)' | |
1 0.000020 0.000018 execute s:nowait_nmap() '\' '<Plug>(vimfiler_switch_to_root_directory)' | |
1 0.000019 0.000017 execute s:nowait_nmap() '&' '<Plug>(vimfiler_switch_to_project_directory)' | |
1 0.000020 0.000018 execute s:nowait_nmap() '<C-j>' '<Plug>(vimfiler_switch_to_history_directory)' | |
1 0.000021 0.000019 execute s:nowait_nmap() '<BS>' '<Plug>(vimfiler_switch_to_parent_directory)' | |
1 0.000020 0.000018 execute s:nowait_nmap() '.' '<Plug>(vimfiler_toggle_visible_ignore_files)' | |
1 0.000019 0.000017 execute s:nowait_nmap() 'H' '<Plug>(vimfiler_popup_shell)' | |
" Edit file. | |
1 0.000019 0.000017 execute s:nowait_nmap() 'e' '<Plug>(vimfiler_edit_file)' | |
1 0.000019 0.000017 execute s:nowait_nmap() 'E' '<Plug>(vimfiler_split_edit_file)' | |
1 0.000019 0.000017 execute s:nowait_nmap() 'B' '<Plug>(vimfiler_edit_binary_file)' | |
" Choose action. | |
1 0.000019 0.000017 execute s:nowait_nmap() 'a' '<Plug>(vimfiler_choose_action)' | |
" Hide vimfiler. | |
1 0.000019 0.000017 execute s:nowait_nmap() 'q' '<Plug>(vimfiler_hide)' | |
" Exit vimfiler. | |
1 0.000020 0.000018 execute s:nowait_nmap() 'Q' '<Plug>(vimfiler_exit)' | |
" Close vimfiler. | |
1 0.000019 0.000017 execute s:nowait_nmap() '-' '<Plug>(vimfiler_close)' | |
1 0.000021 0.000019 execute s:nowait_nmap() 'ge' '<Plug>(vimfiler_execute_external_filer)' | |
1 0.000022 0.000020 execute s:nowait_nmap() '<RightMouse>' '<Plug>(vimfiler_execute_external_filer)' | |
1 0.000020 0.000018 execute s:nowait_nmap() '!' '<Plug>(vimfiler_execute_shell_command)' | |
1 0.000019 0.000017 execute s:nowait_nmap() 'g?' '<Plug>(vimfiler_help)' | |
1 0.000019 0.000017 execute s:nowait_nmap() 'v' '<Plug>(vimfiler_preview_file)' | |
1 0.000020 0.000018 execute s:nowait_nmap() 'O' '<Plug>(vimfiler_sync_with_current_vimfiler)' | |
1 0.000021 0.000018 execute s:nowait_nmap() 'go' '<Plug>(vimfiler_open_file_in_another_vimfiler)' | |
1 0.000020 0.000018 execute s:nowait_nmap() '<C-g>' '<Plug>(vimfiler_print_filename)' | |
1 0.000021 0.000018 execute s:nowait_nmap() 'g<C-g>' '<Plug>(vimfiler_toggle_maximize_window)' | |
1 0.000020 0.000018 execute s:nowait_nmap() 'yy' '<Plug>(vimfiler_yank_full_path)' | |
1 0.000020 0.000018 execute s:nowait_nmap() 'M' '<Plug>(vimfiler_set_current_mask)' | |
1 0.000019 0.000017 execute s:nowait_nmap() 'gr' '<Plug>(vimfiler_grep)' | |
1 0.000019 0.000017 execute s:nowait_nmap() 'gf' '<Plug>(vimfiler_find)' | |
1 0.000020 0.000018 execute s:nowait_nmap() 'S' '<Plug>(vimfiler_select_sort_type)' | |
1 0.000022 0.000019 execute s:nowait_nmap() '<C-v>' '<Plug>(vimfiler_switch_vim_buffer_mode)' | |
1 0.000021 0.000018 execute s:nowait_nmap() 'gc' '<Plug>(vimfiler_cd_vim_current_dir)' | |
1 0.000020 0.000018 execute s:nowait_nmap() 'gs' '<Plug>(vimfiler_toggle_safe_mode)' | |
1 0.000020 0.000018 execute s:nowait_nmap() 'gS' '<Plug>(vimfiler_toggle_simple_mode)' | |
1 0.000019 0.000017 execute s:nowait_nmap() 'gg' '<Plug>(vimfiler_cursor_top)' | |
1 0.000020 0.000018 execute s:nowait_nmap() 'G' '<Plug>(vimfiler_cursor_bottom)' | |
1 0.000019 0.000017 execute s:nowait_nmap() 't' '<Plug>(vimfiler_expand_tree)' | |
1 0.000020 0.000018 execute s:nowait_nmap() 'T' '<Plug>(vimfiler_expand_tree_recursive)' | |
1 0.000019 0.000017 execute s:nowait_nmap() 'I' '<Plug>(vimfiler_cd_input_directory)' | |
1 0.000022 0.000019 execute s:nowait_nmap() '<2-LeftMouse>' '<Plug>(vimfiler_double_click)' | |
" pushd/popd | |
1 0.000019 0.000017 execute s:nowait_nmap() 'Y' '<Plug>(vimfiler_pushd)' | |
1 0.000019 0.000017 execute s:nowait_nmap() 'P' '<Plug>(vimfiler_popd)' | |
1 0.000020 0.000018 execute s:nowait_nmap() 'gj' '<Plug>(vimfiler_jump_last_child)' | |
1 0.000020 0.000018 execute s:nowait_nmap() 'gk' '<Plug>(vimfiler_jump_first_child)' | |
FUNCTION SpaceVim#mapping#space#refrashLSPC() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/mapping/space.vim line 634 | |
Called 5 times | |
Total time: 0.000042 | |
Self time: 0.000042 | |
count total (s) self (s) | |
5 0.000014 let g:_spacevim_mappings_space.l = {'name' : '+Language Specified'} | |
5 0.000012 if !empty(&filetype) && has_key(s:language_specified_mappings, &filetype) | |
call call(s:language_specified_mappings[&filetype], []) | |
let b:spacevim_lang_specified_mappings = g:_spacevim_mappings_space.l | |
5 0.000001 endif | |
FUNCTION vimproc#util#set_default() | |
Defined: ~/.SpaceVim/bundle/vimproc.vim/autoload/vimproc/util.vim line 113 | |
Called 10 times | |
Total time: 0.000068 | |
Self time: 0.000068 | |
count total (s) self (s) | |
10 0.000025 if !exists(a:var) || type({a:var}) != type(a:val) | |
6 0.000010 let alternate_var = get(a:000, 0, '') | |
6 0.000016 let {a:var} = exists(alternate_var) ? {alternate_var} : a:val | |
10 0.000003 endif | |
FUNCTION SpaceVim#api#messletters#get() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/messletters.vim line 126 | |
Called 1 time | |
Total time: 0.000004 | |
Self time: 0.000004 | |
count total (s) self (s) | |
1 0.000003 return deepcopy(s:chars) | |
FUNCTION unite#sources#file#_get_files() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/sources/file.vim line 297 | |
Called 2 times | |
Total time: 0.003702 | |
Self time: 0.000091 | |
count total (s) self (s) | |
" Glob by directory name. | |
2 0.000013 let input = substitute(a:input, '[^/]*$', '', '') | |
2 0.000005 let directory = substitute(input, '\*', '', 'g') | |
2 0.000002 if directory == '' | |
let directory = getcwd() | |
2 0.000000 endif | |
2 0.000016 0.000014 let directory = unite#util#substitute_path_separator( fnamemodify(directory, ':p')) | |
2 0.000004 let is_vimfiler = get(a:context, 'is_vimfiler', 0) | |
2 0.000007 if !a:context.is_redraw && has_key(s:cache_files, directory) && getftime(directory) <= s:cache_files[directory].time && input ==# s:cache_files[directory].input | |
return copy(s:cache_files[directory].files) | |
2 0.000000 endif | |
2 0.000004 let glob = input . (input =~ '\*$' ? '' : '*') | |
" Substitute *. -> .* . | |
2 0.000005 let glob = substitute(glob, '\*\.', '.*', 'g') | |
2 0.003617 0.000009 let files = unite#util#glob(glob, !is_vimfiler) | |
2 0.000002 if !is_vimfiler | |
let files = sort(filter(copy(files), "v:val != '.' && isdirectory(v:val)"), 1) + sort(filter(copy(files), "!isdirectory(v:val)"), 1) | |
let s:cache_files[directory] = { 'time' : getftime(directory), 'input' : input, 'files' : files, } | |
2 0.000001 endif | |
2 0.000008 return copy(files) | |
FUNCTION SpaceVim#plugins#help#regist_root() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/plugins/help.vim line 17 | |
Called 5 times | |
Total time: 0.000032 | |
Self time: 0.000032 | |
count total (s) self (s) | |
5 0.000010 let keys = keys(a:dict) | |
5 0.000008 if type(a:dict) == 4 && len(keys) == 1 | |
5 0.000011 call extend(s:key_describ, a:dict) | |
5 0.000002 endif | |
FUNCTION SpaceVim#api#neovim#floating#get() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/neovim/floating.vim line 102 | |
Called 1 time | |
Total time: 0.000004 | |
Self time: 0.000004 | |
count total (s) self (s) | |
1 0.000004 return deepcopy(s:self) | |
FUNCTION dein#types#git#define() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/types/git.vim line 19 | |
Called 2 times | |
Total time: 0.000003 | |
Self time: 0.000003 | |
count total (s) self (s) | |
2 0.000002 return s:type | |
FUNCTION vital#unite#new() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/vital/unite.vim line 24 | |
Called 2 times | |
Total time: 0.000020 | |
Self time: 0.000008 | |
count total (s) self (s) | |
2 0.000019 0.000007 return s:new(s:plugin_name) | |
FUNCTION SpaceVim#plugins#tap() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/plugins.vim line 260 | |
Called 72 times | |
Total time: 0.001066 | |
Self time: 0.000442 | |
count total (s) self (s) | |
72 0.000079 if g:spacevim_plugin_manager ==# 'neobundle' | |
return neobundle#tap(a:plugin) | |
72 0.000061 elseif g:spacevim_plugin_manager ==# 'dein' | |
72 0.000827 0.000204 return dein#tap(a:plugin) | |
endif | |
FUNCTION <SNR>198__create_hash() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vital/_vimfiler/System/Cache/Deprecated.vim line 87 | |
Called 3 times | |
Total time: 0.000034 | |
Self time: 0.000034 | |
count total (s) self (s) | |
3 0.000006 if len(a:dir) + len(a:str) < 150 | |
3 0.000020 let hash = substitute(substitute( a:str, ':', '=-', 'g'), '[/\\]', '=+', 'g') | |
else | |
let hash = s:S.hash(a:str) | |
3 0.000001 endif | |
3 0.000002 return hash | |
FUNCTION SpaceVim#api#iconv#bytes#import() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/iconv/bytes.vim line 3 | |
Called 1 time | |
Total time: 0.000001 | |
Self time: 0.000001 | |
count total (s) self (s) | |
1 0.000001 return s:bytes | |
FUNCTION <SNR>121_where_init_module() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup.vim line 350 | |
Called 1 time | |
Total time: 0.000006 | |
Self time: 0.000006 | |
count total (s) self (s) | |
1 0.000001 if !g:matchup_where_enabled | return | endif | |
1 0.000004 command! -nargs=? -bang MatchupWhereAmI call matchup#where#print('<bang>' . <q-args>) | |
FUNCTION neomake#statusline#LoclistCounts() | |
Defined: ~/.SpaceVim/bundle/neomake/autoload/neomake/statusline.vim line 116 | |
Called 1 time | |
Total time: 0.000007 | |
Self time: 0.000007 | |
count total (s) self (s) | |
1 0.000003 let buf = a:0 ? a:1 : bufnr('%') | |
1 0.000001 if buf is# 'all' | |
return s:counts | |
1 0.000000 endif | |
1 0.000002 return get(s:counts, buf, {}) | |
FUNCTION 50() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/vim/signatures.vim line 45 | |
Called 1 time | |
Total time: 0.000015 | |
Self time: 0.000015 | |
count total (s) self (s) | |
1 0.000002 let self.group = a:group | |
1 0.000013 exe 'highlight ' . self.group . ' ctermbg=green guibg=green' | |
FUNCTION 51() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/vim/signatures.vim line 53 | |
Called 3 times | |
Total time: 0.000015 | |
Self time: 0.000015 | |
count total (s) self (s) | |
3 0.000013 call nvim_buf_clear_namespace(0, self._hi_namespace, 0, -1) | |
FUNCTION SpaceVim#api#vim#highlight#get() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/vim/highlight.vim line 189 | |
Called 1 time | |
Total time: 0.000004 | |
Self time: 0.000004 | |
count total (s) self (s) | |
1 0.000003 return deepcopy(s:self) | |
FUNCTION <SNR>183_close_last_vimfiler_windows() | |
Defined: ~/.SpaceVim/config/plugins/vimfiler.vim line 77 | |
Called 1 time | |
Total time: 0.000000 | |
Self time: 0.000000 | |
count total (s) self (s) | |
1 0.000008 0.000004 call SpaceVim#layers#shell#close_terminal() | |
q | |
FUNCTION dein#util#_get_base_path() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/util.vim line 30 | |
Called 4 times | |
Total time: 0.000006 | |
Self time: 0.000006 | |
count total (s) self (s) | |
4 0.000005 return g:dein#_base_path | |
FUNCTION <SNR>197_mapping_file_operations() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/mappings.vim line 1765 | |
Called 1 time | |
Total time: 0.000123 | |
Self time: 0.000123 | |
count total (s) self (s) | |
1 0.000015 nnoremap <buffer><silent> <Plug>(vimfiler_copy_file) :<C-u>call <SID>copy()<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_move_file) :<C-u>call <SID>move()<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_delete_file) :<C-u>call <SID>delete()<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_rename_file) :<C-u>call <SID>rename()<CR> | |
1 0.000015 nnoremap <buffer><silent> <Plug>(vimfiler_make_directory) :<C-u>call <SID>make_directory()<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_new_file) :<C-u>call <SID>new_file()<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_clipboard_copy_file) :<C-u>call <SID>clipboard_copy()<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_clipboard_move_file) :<C-u>call <SID>clipboard_move()<CR> | |
1 0.000013 nnoremap <buffer><silent> <Plug>(vimfiler_clipboard_paste) :<C-u>call <SID>clipboard_paste()<CR> | |
FUNCTION <SNR>121_text_obj_init_module() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup.vim line 299 | |
Called 1 time | |
Total time: 0.000111 | |
Self time: 0.000087 | |
count total (s) self (s) | |
1 0.000002 if !g:matchup_text_obj_enabled | return | endif | |
1 0.000005 0.000003 call matchup#perf#tic('loading_module') | |
2 0.000004 for [l:map, l:name, l:opt] in [ ['%', 'delimited', 'delim_all'],] | |
1 0.000001 let l:p1 = 'noremap <silent> <plug>(matchup-' | |
1 0.000002 let l:p2 = l:map . ') :<c-u>call matchup#text_obj#' . l:name | |
1 0.000002 let l:p3 = empty(l:opt) ? ')<cr>' : ', ''' . l:opt . ''')<cr>' | |
1 0.000015 execute 'x' . l:p1 . 'i' . l:p2 . '(1, 1' . l:p3 | |
1 0.000012 execute 'x' . l:p1 . 'a' . l:p2 . '(0, 1' . l:p3 | |
1 0.000011 execute 'o' . l:p1 . 'i' . l:p2 . '(1, 0' . l:p3 | |
1 0.000010 execute 'o' . l:p1 . 'a' . l:p2 . '(0, 0' . l:p3 | |
2 0.000001 endfor | |
1 0.000012 nnoremap <silent> <plug>(matchup-double-click) :<c-u>call matchup#text_obj#double_click()<cr> | |
1 0.000027 0.000005 call matchup#perf#toc('loading_module', 'motion') | |
FUNCTION SpaceVim#util#loadConfig() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/util.vim line 28 | |
Called 20 times | |
Total time: 0.167618 | |
Self time: 0.000390 | |
count total (s) self (s) | |
20 0.000124 if filereadable(g:_spacevim_root_dir. '/config/' . a:file) | |
15 0.167471 0.000244 execute 'source ' . g:_spacevim_root_dir . '/config/' . a:file | |
20 0.000008 endif | |
FUNCTION SpaceVim#layers#core#statusline#remove_section() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/core/statusline.vim line 872 | |
Called 1 time | |
Total time: 0.000389 | |
Self time: 0.000018 | |
count total (s) self (s) | |
1 0.000004 if index(s:loaded_sections_l, a:name) != -1 | |
call remove(s:loaded_sections_l, index(s:loaded_sections_l, a:name)) | |
1 0.000000 endif | |
1 0.000001 if index(s:loaded_sections_r, a:name) != -1 | |
call remove(s:loaded_sections_r, index(s:loaded_sections_l, a:name)) | |
1 0.000000 endif | |
1 0.000380 0.000008 let &l:statusline = SpaceVim#layers#core#statusline#get(1) | |
FUNCTION <SNR>186_create_vimfiler_buffer() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/init.vim line 491 | |
Called 1 time | |
Total time: 0.047552 | |
Self time: 0.000293 | |
count total (s) self (s) | |
1 0.000005 let search_path = fnamemodify(bufname('%'), ':p') | |
1 0.000001 let path = a:path | |
1 0.000001 if path == '' | |
" Use current directory. | |
1 0.000072 0.000006 let path = vimfiler#util#substitute_path_separator(getcwd()) | |
1 0.000000 endif | |
1 0.000001 let context = a:context | |
1 0.000001 if context.project | |
let path = vimfiler#util#path2project_directory(path) | |
1 0.000000 endif | |
1 0.000008 if (!&l:hidden && &l:modified) || (&l:hidden && &l:bufhidden =~# 'unload\|delete\|wipe') | |
" Split automatically. | |
1 0.000001 let context.split = 1 | |
1 0.000000 endif | |
" Create new buffer name. | |
1 0.000001 let prefix = 'vimfiler:' | |
1 0.000001 let prefix .= context.buffer_name | |
1 0.000002 if a:path =~ ':' && a:path !~ '/$' | |
let prefix .= '@' . a:path | |
1 0.000000 endif | |
1 0.000104 0.000006 let postfix = vimfiler#init#_get_postfix(prefix, 1) | |
1 0.000001 let bufname = prefix . postfix | |
1 0.000001 if context.split | |
1 0.000046 execute context.direction (context.horizontal ? 'split' : 'vsplit') | |
1 0.000001 endif | |
1 0.000002 if context.tab | |
tabnew | |
1 0.000000 endif | |
" Save swapfile option. | |
1 0.000002 let swapfile_save = &l:swapfile | |
1 0.000002 if !exists('t:vimfiler') | |
1 0.000001 let t:vimfiler = {} | |
1 0.000000 endif | |
" Save alternate buffer. | |
1 0.000003 let t:vimfiler[bufnr('%')] = 1 | |
1 0.000000 try | |
1 0.000003 setlocal noswapfile | |
1 0.000412 0.000010 let loaded = s:manager.open(bufname, 'silent edit') | |
1 0.000000 finally | |
1 0.000025 let &l:swapfile = swapfile_save | |
1 0.000001 endtry | |
1 0.000003 let t:vimfiler[bufnr('%')] = 1 | |
1 0.000001 if !loaded | |
call vimfiler#echo_error( '[vimfiler] Failed to open Buffer "'. bufname .'".') | |
return | |
1 0.000000 endif | |
1 0.000003 let context.path = path | |
" echomsg path | |
1 0.046775 0.000124 call vimfiler#handler#_event_handler('BufReadCmd', context) | |
1 0.000051 0.000009 call vimfiler#handler#_event_bufwin_enter(bufnr('%')) | |
1 0.000001 if context.find | |
call vimfiler#mappings#search_cursor( substitute(vimfiler#helper#_get_cd_path( search_path), '/$', '', '')) | |
1 0.000000 endif | |
1 0.000001 if !context.focus | |
if winbufnr(winnr('#')) > 0 | |
wincmd p | |
else | |
call vimfiler#util#winmove( bufwinnr(a:context.alternate_buffer)) | |
endif | |
1 0.000000 endif | |
FUNCTION unite#util#convert2list() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/util.vim line 335 | |
Called 111 times | |
Total time: 0.000199 | |
Self time: 0.000199 | |
count total (s) self (s) | |
111 0.000179 return type(a:expr) ==# type([]) ? a:expr : [a:expr] | |
FUNCTION <SNR>200_compare_filename() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/helper.vim line 308 | |
Called 234 times | |
Total time: 0.008891 | |
Self time: 0.003283 | |
count total (s) self (s) | |
234 0.003515 0.000747 let words_1 = s:get_words(a:i1.vimfiler__filename) | |
234 0.003670 0.000830 let words_2 = s:get_words(a:i2.vimfiler__filename) | |
234 0.000259 let words_1_len = len(words_1) | |
234 0.000220 let words_2_len = len(words_2) | |
240 0.000480 for i in range(0, min([words_1_len, words_2_len])-1) | |
240 0.000253 if words_1[i] >? words_2[i] | |
88 0.000033 return 1 | |
152 0.000154 elseif words_1[i] <? words_2[i] | |
146 0.000058 return -1 | |
6 0.000002 endif | |
6 0.000001 endfor | |
return words_1_len - words_2_len | |
FUNCTION 159() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/data/json.vim line 26 | |
Called 1 time | |
Total time: 0.000012 | |
Self time: 0.000012 | |
count total (s) self (s) | |
1 0.000001 if a:json ==# '' | |
" instead of throw error, if json is empty string, just return an empty | |
" string | |
return '' | |
1 0.000000 endif | |
1 0.000009 return json_decode(a:json) | |
FUNCTION EasyMotion#highlight#init() | |
Defined: ~/.SpaceVim/bundle/vim-easymotion/autoload/EasyMotion/highlight.vim line 124 | |
Called 1 time | |
Total time: 0.000419 | |
Self time: 0.000054 | |
count total (s) self (s) | |
1 0.000077 0.000007 call EasyMotion#highlight#InitHL(g:EasyMotion_hl_group_target, s:target_hl_defaults) | |
1 0.000066 0.000008 call EasyMotion#highlight#InitHL(g:EasyMotion_hl2_first_group_target, s:target_hl2_first_defaults) | |
1 0.000045 0.000008 call EasyMotion#highlight#InitHL(g:EasyMotion_hl2_second_group_target, s:target_hl2_second_defaults) | |
1 0.000059 0.000006 call EasyMotion#highlight#InitHL(g:EasyMotion_hl_group_shade, s:shade_hl_defaults) | |
1 0.000062 0.000007 call EasyMotion#highlight#InitHL(g:EasyMotion_hl_inc_search, s:target_hl_inc) | |
1 0.000062 0.000008 call EasyMotion#highlight#InitHL(g:EasyMotion_hl_inc_cursor, s:target_hl_inc_cursor) | |
1 0.000043 0.000007 call EasyMotion#highlight#InitHL(g:EasyMotion_hl_move, s:target_hl_move) | |
1 0.000003 if exists(':CSApprox') == 2 && g:EasyMotion_force_csapprox | |
"TODO: better solution or remove completly | |
CSApprox! | |
1 0.000000 endif | |
FUNCTION <SNR>95_update_rooter_patterns() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/plugins/projectmanager.vim line 23 | |
Called 1 time | |
Total time: 0.000017 | |
Self time: 0.000017 | |
count total (s) self (s) | |
1 0.000009 let s:project_rooter_patterns = filter(copy(g:spacevim_project_rooter_patterns), 'v:val !~# "^!"') | |
1 0.000008 let s:project_rooter_ignores = map(filter(copy(g:spacevim_project_rooter_patterns), 'v:val =~# "^!"'), 'v:val[1:]') | |
FUNCTION <SNR>191__vital_loaded() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vital/_vimfiler/Vim/Buffer.vim line 19 | |
Called 1 time | |
Total time: 0.001820 | |
Self time: 0.000012 | |
count total (s) self (s) | |
1 0.000001 let s:V = a:V | |
1 0.000505 0.000006 let s:P = s:V.import('Prelude') | |
1 0.001313 0.000005 let s:G = s:V.import('Vim.Guard') | |
FUNCTION <SNR>36_winnr() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/core/statusline.vim line 107 | |
Called 12 times | |
Total time: 0.000044 | |
Self time: 0.000044 | |
count total (s) self (s) | |
12 0.000011 if a:0 >= 1 | |
11 0.000010 if g:spacevim_windows_index_type == 3 | |
11 0.000009 return ' %{ get(w:, "winid", winnr()) } ' | |
else | |
return ' %{ SpaceVim#layers#core#statusline#winnr(get(w:, "winid", winnr())) } ' | |
endif | |
1 0.000000 else | |
1 0.000001 if g:spacevim_enable_statusline_mode == 1 | |
return '%{SpaceVim#layers#core#statusline#mode(mode())} %{SpaceVim#layers#core#statusline#mode_text(mode())} %{ SpaceVim#layers#core#statusline#winnr(get(w:, "winid", winnr())) } ' | |
1 0.000001 elseif g:spacevim_windows_index_type == 3 | |
1 0.000001 return '%{SpaceVim#layers#core#statusline#mode(mode())} %{ get(w:, "winid", winnr()) } ' | |
else | |
return '%{SpaceVim#layers#core#statusline#mode(mode())} %{ SpaceVim#layers#core#statusline#winnr(get(w:, "winid", winnr())) } ' | |
endif | |
endif | |
FUNCTION dein#util#_has_job() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/util.vim line 151 | |
Called 1 time | |
Total time: 0.000003 | |
Self time: 0.000003 | |
count total (s) self (s) | |
1 0.000003 return has('nvim') || (has('patch-7.4.1689') && has('job')) | |
FUNCTION vimfiler#variables#default_context() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/variables.vim line 29 | |
Called 2 times | |
Total time: 0.000075 | |
Self time: 0.000028 | |
count total (s) self (s) | |
2 0.000005 if !exists('s:default_context') | |
1 0.000053 0.000005 call s:initialize_default_options() | |
2 0.000001 endif | |
2 0.000013 return deepcopy(s:default_context) | |
FUNCTION vimproc#util#is_windows() | |
Defined: ~/.SpaceVim/bundle/vimproc.vim/autoload/vimproc/util.vim line 77 | |
Called 2 times | |
Total time: 0.000003 | |
Self time: 0.000003 | |
count total (s) self (s) | |
2 0.000002 return s:is_windows | |
FUNCTION 77() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/vim/highlight.vim line 23 | |
Called 58 times | |
Total time: 0.000853 | |
Self time: 0.000853 | |
count total (s) self (s) | |
58 0.000118 let id = hlID(a:name) | |
58 0.000035 if id == 0 | |
return { 'name' : '', 'ctermbg' : '', 'ctermfg' : '', 'bold' : '', 'italic' : '', 'reverse' : '', 'underline' : '', 'guibg' : '', 'guifg' : '', } | |
58 0.000017 endif | |
58 0.000546 let rst = { 'name' : synIDattr(id, 'name'), 'ctermbg' : synIDattr(id, 'bg', 'cterm'), 'ctermfg' : synIDattr(id, 'fg', 'cterm'), 'bold' : synIDattr(id, 'bold'), 'italic' : synIDattr(id, 'italic'), 'reverse' : synIDattr(id, 'reverse'), 'underline' : synIDattr(id, 'underline'), 'guibg' : tolower(synIDattr(id, 'bg#', 'gui')), 'guifg' : tolower(synIDattr(id, 'fg#', 'gui')), } | |
58 0.000034 return rst | |
FUNCTION 79() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/vim/highlight.vim line 65 | |
Called 56 times | |
Total time: 0.002414 | |
Self time: 0.002414 | |
count total (s) self (s) | |
56 0.000113 if empty(a:info) || get(a:info, 'name', '') ==# '' | |
return | |
56 0.000013 endif | |
56 0.000185 exe 'hi clear ' . a:info.name | |
56 0.000066 let cmd = 'hi! ' . a:info.name | |
56 0.000048 if !empty(a:info.ctermbg) | |
54 0.000067 let cmd .= ' ctermbg=' . a:info.ctermbg | |
56 0.000015 endif | |
56 0.000040 if !empty(a:info.ctermfg) | |
54 0.000055 let cmd .= ' ctermfg=' . a:info.ctermfg | |
56 0.000013 endif | |
56 0.000040 if !empty(a:info.guibg) | |
56 0.000058 let cmd .= ' guibg=' . a:info.guibg | |
56 0.000012 endif | |
56 0.000039 if !empty(a:info.guifg) | |
56 0.000055 let cmd .= ' guifg=' . a:info.guifg | |
56 0.000013 endif | |
56 0.000041 let style = [] | |
280 0.000180 for sty in ['bold', 'italic', 'underline', 'reverse'] | |
224 0.000245 if get(a:info, sty, '') ==# '1' | |
call add(style, sty) | |
224 0.000049 endif | |
280 0.000084 endfor | |
56 0.000042 if !empty(style) | |
let cmd .= ' gui=' . join(style, ',') . ' cterm=' . join(style, ',') | |
56 0.000014 endif | |
56 0.000018 try | |
56 0.000388 silent! exe cmd | |
catch | |
56 0.000023 endtry | |
FUNCTION <SNR>28_random() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/data/number.vim line 44 | |
Called 3 times | |
Total time: 0.000069 | |
Self time: 0.000053 | |
count total (s) self (s) | |
3 0.000004 let a = a:0 ? a:1 : 0 | |
3 0.000004 let b = a:0 > 1 ? a:2 : 0x1000000 | |
3 0.000017 0.000012 let t = s:xor(s:x, (s:x * 0x800)) | |
3 0.000007 let [s:x, s:y, s:z] = [s:y, s:z, s:w] | |
3 0.000032 0.000022 let s:w = s:xor(s:xor(s:w, (s:w / 0x80000)), s:xor(t, (t / 0x100))) | |
3 0.000003 return a + s:w % b | |
FUNCTION 168() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/types/git.vim line 29 | |
Called 119 times | |
Total time: 0.007205 | |
Self time: 0.002592 | |
count total (s) self (s) | |
119 0.000084 if !self.executable | |
return {} | |
119 0.000032 endif | |
119 0.002625 0.000706 if a:repo =~# '^/\|^\a:[/\\]' && s:is_git_dir(a:repo.'/.git') | |
" Local repository. | |
return { 'type': 'git', 'local': 1 } | |
119 0.000764 elseif a:repo =~# '//\%(raw\|gist\)\.githubusercontent\.com/\|/archive/[^/]\+\.zip$' | |
return {} | |
119 0.000029 endif | |
119 0.003134 0.000445 let uri = self.get_uri(a:repo, a:options) | |
119 0.000079 if uri ==# '' | |
116 0.000062 return {} | |
3 0.000001 endif | |
3 0.000010 let directory = substitute(uri, '\.git$', '', '') | |
3 0.000012 let directory = substitute(directory, '^https:/\+\|^git@', '', '') | |
3 0.000005 let directory = substitute(directory, ':', '/', 'g') | |
3 0.000022 0.000017 return { 'type': 'git', 'path': dein#util#_get_base_path().'/repos/'.directory } | |
FUNCTION 169() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/types/git.vim line 54 | |
Called 119 times | |
Total time: 0.002689 | |
Self time: 0.000900 | |
count total (s) self (s) | |
119 0.000280 if a:repo =~# '^/\|^\a:[/\\]' | |
116 0.002261 0.000472 return s:is_git_dir(a:repo.'/.git') ? a:repo : '' | |
3 0.000001 endif | |
3 0.000005 if a:repo =~# '^git@' | |
" Parse "git@host:name" pattern | |
let protocol = 'ssh' | |
let host = matchstr(a:repo[4:], '[^:]*') | |
let name = a:repo[4 + len(host) + 1 :] | |
3 0.000001 else | |
3 0.000015 let protocol = matchstr(a:repo, '^.\{-}\ze://') | |
3 0.000005 let rest = a:repo[len(protocol):] | |
3 0.000009 let name = substitute(rest, '^://[^/]*/', '', '') | |
3 0.000011 let host = substitute(matchstr(rest, '^://\zs[^/]*\ze/'), ':.*$', '', '') | |
3 0.000001 endif | |
3 0.000002 if host ==# '' | |
3 0.000002 let host = 'github.com' | |
3 0.000001 endif | |
3 0.000005 if protocol ==# '' || a:repo =~# '\<\%(gh\|github\|bb\|bitbucket\):\S\+' || has_key(a:options, 'type__protocol') | |
3 0.000006 let protocol = get(a:options, 'type__protocol', g:dein#types#git#default_protocol) | |
3 0.000001 endif | |
3 0.000003 if protocol !=# 'https' && protocol !=# 'ssh' | |
call dein#util#_error( printf('Repo: %s The protocol "%s" is unsecure and invalid.', a:repo, protocol)) | |
return '' | |
3 0.000001 endif | |
3 0.000004 if a:repo !~# '/' | |
call dein#util#_error( printf('vim-scripts.org is deprecated.' . ' You can use "vim-scripts/%s" instead.', a:repo)) | |
return '' | |
3 0.000001 else | |
3 0.000010 let uri = (protocol ==# 'ssh' && (host ==# 'github.com' || host ==# 'bitbucket.com' || host ==# 'bitbucket.org')) ? 'git@' . host . ':' . name : protocol . '://' . host . '/' . name | |
3 0.000001 endif | |
3 0.000002 return uri | |
FUNCTION SpaceVim#mapping#leader#defindKEYs() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/mapping/leader.vim line 201 | |
Called 1 time | |
Total time: 0.000044 | |
Self time: 0.000044 | |
count total (s) self (s) | |
1 0.000001 let g:_spacevim_mappings_prefixs = {} | |
1 0.000002 if !g:spacevim_vimcompatible && !empty(g:spacevim_windows_leader) | |
1 0.000003 let g:_spacevim_mappings_prefixs[g:spacevim_windows_leader] = {'name' : '+Window prefix'} | |
1 0.000008 call extend(g:_spacevim_mappings_prefixs[g:spacevim_windows_leader], g:_spacevim_mappings_windows) | |
1 0.000000 endif | |
1 0.000002 let g:_spacevim_mappings_prefixs['g'] = {'name' : '+g prefix'} | |
1 0.000011 call extend(g:_spacevim_mappings_prefixs['g'], g:_spacevim_mappings_g) | |
1 0.000002 let g:_spacevim_mappings_prefixs['z'] = {'name' : '+z prefix'} | |
1 0.000009 call extend(g:_spacevim_mappings_prefixs['z'], g:_spacevim_mappings_z) | |
1 0.000002 let leader = get(g:, 'mapleader', '\') | |
1 0.000002 let g:_spacevim_mappings_prefixs[leader] = {'name' : '+Leader prefix'} | |
1 0.000003 call extend(g:_spacevim_mappings_prefixs[leader], g:_spacevim_mappings) | |
FUNCTION 106() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/vim/statusline.vim line 18 | |
Called 8 times | |
Total time: 0.141959 | |
Self time: 0.000031 | |
count total (s) self (s) | |
8 0.141957 0.000030 return a:len + self.len(a:sec) < a:winwidth | |
FUNCTION SpaceVim#api#time#get() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/time.vim line 20 | |
Called 1 time | |
Total time: 0.000003 | |
Self time: 0.000003 | |
count total (s) self (s) | |
1 0.000002 return deepcopy(s:self) | |
FUNCTION vimfiler#get_directory_files() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler.vim line 68 | |
Called 2 times | |
Total time: 0.031355 | |
Self time: 0.000023 | |
count total (s) self (s) | |
2 0.031354 0.000022 return call('vimfiler#helper#_get_directory_files', [a:directory] + a:000) | |
FUNCTION vimfiler#init#_initialize() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/init.vim line 79 | |
Called 1 time | |
Total time: 0.000001 | |
Self time: 0.000001 | |
count total (s) self (s) | |
" Dummy initialize | |
FUNCTION <SNR>65_tsort_impl() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/util.vim line 681 | |
Called 10 times | |
Total time: 0.000090 | |
Self time: 0.000090 | |
count total (s) self (s) | |
10 0.000018 if empty(a:target) || has_key(a:mark, a:target.name) | |
return | |
10 0.000002 endif | |
10 0.000012 let a:mark[a:target.name] = 1 | |
10 0.000009 if has_key(a:target, 'depends') | |
for depend in a:target.depends | |
call s:tsort_impl(dein#get(depend), a:mark, a:sorted) | |
endfor | |
10 0.000002 endif | |
10 0.000011 call add(a:sorted, a:target) | |
FUNCTION SpaceVim#mapping#guide#has_configuration() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/mapping/guide.vim line 38 | |
Called 1 time | |
Total time: 0.000002 | |
Self time: 0.000002 | |
count total (s) self (s) | |
1 0.000002 return exists('s:desc_lookup') | |
FUNCTION 80() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/vim/highlight.vim line 98 | |
Called 2 times | |
Total time: 0.000253 | |
Self time: 0.000049 | |
count total (s) self (s) | |
2 0.000059 0.000008 let group = self.group2dict(a:name) | |
2 0.000002 if empty(group) | |
return | |
2 0.000000 endif | |
2 0.000005 if (exists('+termguicolors') && &termguicolors ) || has('gui_running') | |
2 0.000043 0.000008 let bg = self.group2dict('Normal').guibg | |
2 0.000002 if empty(bg) | |
return | |
2 0.000001 endif | |
2 0.000002 let group.guifg = bg | |
2 0.000001 let group.guibg = bg | |
else | |
let bg = self.group2dict('Normal').ctermbg | |
if empty(bg) | |
return | |
endif | |
let group.ctermfg = bg | |
let group.ctermbg = bg | |
2 0.000001 endif | |
2 0.000125 0.000007 call self.hi(group) | |
FUNCTION <SNR>90_log() | |
Defined: ~/.SpaceVim/bundle/neomake/autoload/neomake/log.vim line 34 | |
Called 3 times | |
Total time: 0.000055 | |
Self time: 0.000034 | |
count total (s) self (s) | |
3 0.000005 let context = a:0 ? a:1 : {} | |
3 0.000034 0.000014 let verbosity = neomake#utils#get_verbosity(context) | |
3 0.000005 let logfile = get(g:, 'neomake_logfile', '') | |
3 0.000007 if !s:is_testing && verbosity < a:level && empty(logfile) | |
3 0.000001 return | |
endif | |
let msg = s:indent_str . a:msg | |
if a:0 | |
if has_key(a:1, 'options') | |
let context = copy(a:1.options) | |
let context.make_id = a:1.make_id | |
else | |
let context = copy(a:1) | |
endif | |
let msg = printf('[%s.%s:%s:%d] %s', get(context, 'make_id', '-'), get(context, 'id', '-'), get(context, 'bufnr', get(context, 'file_mode', 0) ? '?' : '-'), get(context, 'winnr', winnr()), msg) | |
endif | |
" Use Vader's log for messages during tests. | |
" @vimlint(EVL104, 1, l:timediff) | |
if s:is_testing && (verbosity >= a:level || get(g:, 'neomake_test_log_all_messages', 0)) | |
let timediff = s:reltime_lastmsg() | |
if timediff !=# ' ' | |
let test_msg = '['.s:short_level_to_name[a:level].' '.timediff.']: '.msg | |
else | |
let test_msg = '['.s:level_to_name[a:level].']: '.msg | |
endif | |
if exists('*vader#log') | |
" Might not exist with rpcrequest-based nvim test, or throw errors | |
" if called too early. | |
call vader#log(test_msg) | |
endif | |
" Only keep context entries that are relevant for / used in the message. | |
let context = a:0 ? extend(filter(copy(context), "index(['id', 'make_id', 'bufnr', 'winnr'], v:key) != -1"), {'winnr': winnr()}, 'keep') : {} | |
call add(g:neomake_test_messages, [a:level, a:msg, context]) | |
if index(['.', '!', ')', ']'], a:msg[-1:-1]) == -1 | |
let g:neomake_test_errors += ['Log msg does not end with punctuation: "'.a:msg.'".'] | |
endif | |
elseif verbosity >= a:level | |
if verbosity > 2 | |
echom 'Neomake: '.msg | |
else | |
if a:level ==# 0 | |
echohl ErrorMsg | |
else | |
echohl WarningMsg | |
endif | |
" Use message without context for non-debug msgs. | |
echom 'Neomake: '.a:msg | |
echohl None | |
endif | |
endif | |
if !empty(logfile) | |
if !exists('s:logfile_writefile_opts') | |
" Use 'append' with writefile, but only if it is available. Otherwise, just | |
" overwrite the file. 'S' is used to disable fsync in Neovim | |
" (https://github.com/neovim/neovim/pull/6427). | |
if has('patch-7.4.503') | |
let s:logfile_writefile_opts = 'aS' | |
else | |
let s:logfile_writefile_opts = '' | |
echohl WarningMsg | |
echom 'Neomake: appending to the logfile is not supported in your Vim version.' | |
echohl NONE | |
endif | |
endif | |
let time = strftime('%H:%M:%S') | |
if !exists('timediff') | |
let timediff = s:reltime_lastmsg() | |
endif | |
try | |
call writefile([printf('%s %s [%s %s] %s', time, s:pid, s:short_level_to_name[a:level], timediff, msg)], logfile, s:logfile_writefile_opts) | |
catch | |
unlet g:neomake_logfile | |
call neomake#log#error(printf('Error when trying to write to logfile %s: %s. Unsetting g:neomake_logfile.', logfile, v:exception)) | |
endtry | |
endif | |
" @vimlint(EVL104, 0, l:timediff) | |
FUNCTION 177() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/types/raw.vim line 15 | |
Called 58 times | |
Total time: 0.000275 | |
Self time: 0.000275 | |
count total (s) self (s) | |
" No auto detect. | |
58 0.000213 if a:repo !~# '^https://.*\.vim$' || !has_key(a:options, 'script_type') | |
58 0.000030 return {} | |
endif | |
let directory = substitute(fnamemodify(a:repo, ':h'), '\.git$', '', '') | |
let directory = substitute(directory, '^https:/\+\|^git@', '', '') | |
let directory = substitute(directory, ':', '/', 'g') | |
return { 'name': dein#parse#_name_conversion(a:repo), 'type' : 'raw', 'path': dein#util#_get_base_path().'/repos/'.directory } | |
FUNCTION vimfiler#view#_redraw_screen() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/view.vim line 75 | |
Called 5 times | |
Total time: 0.005231 | |
Self time: 0.000550 | |
count total (s) self (s) | |
5 0.000008 if &filetype !=# 'vimfiler' | |
" Not vimfiler window. | |
return | |
5 0.000002 endif | |
5 0.000008 if !has_key(b:vimfiler, 'original_files') | |
return | |
5 0.000001 endif | |
5 0.000095 0.000020 let current_file = vimfiler#get_file(b:vimfiler) | |
5 0.000349 0.000186 let b:vimfiler.all_files = unite#filters#matcher_vimfiler_mask#define().filter( copy(b:vimfiler.original_files), { 'input' : b:vimfiler.current_mask }) | |
5 0.000004 if !b:vimfiler.is_visible_ignore_files | |
5 0.001471 0.000027 let b:vimfiler.all_files = vimfiler#helper#_call_filters( b:vimfiler.all_files, b:vimfiler.context) | |
5 0.000172 0.000029 let b:vimfiler.all_files = s:check_tree(b:vimfiler.all_files) | |
5 0.000002 endif | |
5 0.000007 let b:vimfiler.all_files_len = len(b:vimfiler.all_files) | |
5 0.000009 let b:vimfiler.winwidth = (winwidth(0)+1)/2*2 | |
5 0.000006 let b:vimfiler.current_files = b:vimfiler.all_files | |
5 0.000012 setlocal modifiable | |
5 0.000006 setlocal noreadonly | |
5 0.000011 let savedView = winsaveview() | |
5 0.000002 try | |
5 0.000007 let last_line = line('.') | |
" Clean up the screen. | |
5 0.000012 if line('$') > 1 && b:vimfiler.prompt_linenr + len(b:vimfiler.current_files) < line('$') | |
silent execute '$-'.(line('$')-b:vimfiler.prompt_linenr- len(b:vimfiler.current_files)).',$delete _' | |
5 0.000002 endif | |
5 0.000595 0.000024 call s:redraw_prompt() | |
" Print files. | |
5 0.002321 0.000047 call setline(b:vimfiler.prompt_linenr + 1, vimfiler#view#_get_print_lines(b:vimfiler.current_files)) | |
5 0.000003 finally | |
5 0.000012 setlocal nomodifiable | |
5 0.000005 setlocal readonly | |
5 0.000002 endtry | |
5 0.000012 call winrestview(savedView) | |
5 0.000010 let index = index(b:vimfiler.current_files, current_file) | |
5 0.000003 if index >= 0 | |
2 0.000023 0.000012 call cursor(vimfiler#get_line_number(b:vimfiler, index), 0) | |
3 0.000001 else | |
3 0.000004 call cursor(last_line, 0) | |
5 0.000001 endif | |
FUNCTION <SNR>183_setcolum() | |
Defined: ~/.SpaceVim/config/plugins/vimfiler.vim line 37 | |
Called 1 time | |
Total time: 0.000007 | |
Self time: 0.000007 | |
count total (s) self (s) | |
1 0.000002 if g:spacevim_enable_vimfiler_filetypeicon && !g:spacevim_enable_vimfiler_gitstatus | |
return 'filetypeicon' | |
1 0.000001 elseif !g:spacevim_enable_vimfiler_filetypeicon && g:spacevim_enable_vimfiler_gitstatus | |
return 'gitstatus' | |
1 0.000001 elseif g:spacevim_enable_vimfiler_filetypeicon && g:spacevim_enable_vimfiler_gitstatus | |
return 'filetypeicon:gitstatus' | |
1 0.000000 else | |
1 0.000000 return '' | |
endif | |
FUNCTION 91() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/neovim/floating.vim line 13 | |
Called 2 times | |
Total time: 0.000005 | |
Self time: 0.000005 | |
count total (s) self (s) | |
2 0.000004 return exists('*nvim_open_win') | |
FUNCTION dein#get() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein.vim line 109 | |
Called 2 times | |
Total time: 0.000024 | |
Self time: 0.000024 | |
count total (s) self (s) | |
2 0.000024 return empty(a:000) ? copy(g:dein#_plugins) : get(g:dein#_plugins, a:1, {}) | |
FUNCTION SpaceVim#layers#core#statusline#_current_tag() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/core/statusline.vim line 333 | |
Called 1 time | |
Total time: 0.141825 | |
Self time: 0.000076 | |
count total (s) self (s) | |
1 0.000001 let tag = '' | |
1 0.000001 try | |
1 0.141820 0.000071 let tag =tagbar#currenttag('%s ', '') | |
catch | |
1 0.000001 endtry | |
1 0.000001 return tag | |
FUNCTION <SNR>196_initialize_default_options() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/variables.vim line 53 | |
Called 1 time | |
Total time: 0.000047 | |
Self time: 0.000047 | |
count total (s) self (s) | |
1 0.000020 let s:default_context = { 'buffer_name' : 'default', 'quit' : 1, 'force_quit' : 0, 'force_hide' : 0, 'toggle' : 0, 'create' : 0, 'simple' : 0, 'double' : 0, 'split' : 0, 'status' : 0, 'parent' : 1, 'horizontal' : 0, 'winheight' : -1, 'winwidth' : -1, 'winminwidth' : -1, 'direction' : 'topleft', 'auto_cd' : 0, 'explorer' : 0, 'reverse' : 0, 'project' : 0, 'find' : 0, 'tab' : 0, 'alternate_buffer' : bufnr('%'), 'prev_winsaveview' : winsaveview(), 'focus' : 1, 'invisible' : 0, 'columns' : 'type:size:time', 'explorer_columns' : '', 'safe' : 1, 'auto_expand' : 0, 'sort_type' : 'filename', 'edit_action' : 'open', 'split_action' : 'right', 'preview_action' : 'preview', 'fnamewidth' : -1, 'vimfiler__prev_bufnr' : bufnr('%'), 'vimfiler__prev_winnr' : winnr(), 'vimfiler__winfixwidth' : &l:winfixwidth, 'vimfiler__winfixheight' : &l:winfixheight, } | |
" For compatibility(deprecated variables) | |
2 0.000021 for [context, var] in filter([ ['direction', 'g:vimfiler_split_rule'], ['auto_cd', 'g:vimfiler_enable_auto_cd'], ['columns', 'g:vimfiler_default_columns'], ['explorer_columns', 'g:vimfiler_explorer_columns'], ['safe', 'g:vimfiler_safe_mode_by_default'], ['sort_type', 'g:vimfiler_sort_type'], ['split_action', 'g:vimfiler_split_action'], ['edit_action', 'g:vimfiler_edit_action'], ['preview_action', 'g:vimfiler_preview_action'], ], "exists(v:val[1])") | |
1 0.000003 let s:default_context[context] = {var} | |
2 0.000001 endfor | |
FUNCTION vimfiler#init#_context() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/init.vim line 106 | |
Called 2 times | |
Total time: 0.000593 | |
Self time: 0.000333 | |
count total (s) self (s) | |
2 0.000430 0.000170 let default_context = extend(copy(vimfiler#variables#default_context()), vimfiler#custom#get_profile('default', 'context')) | |
2 0.000003 if get(a:context, 'explorer', 0) | |
" Change default value. | |
1 0.000001 let default_context.buffer_name = 'explorer' | |
1 0.000001 let default_context.profile_name = 'explorer' | |
1 0.000001 let default_context.split = 1 | |
1 0.000001 let default_context.parent = 0 | |
1 0.000001 let default_context.toggle = 1 | |
1 0.000001 let default_context.quit = 0 | |
1 0.000001 let default_context.winwidth = 35 | |
2 0.000000 endif | |
2 0.000005 let profile_name = get(a:context, 'profile_name', get(a:context, 'buffer_name', 'default')) | |
2 0.000002 if profile_name !=# 'default' | |
" Overwrite default_context by profile context. | |
call extend(default_context, unite#custom#get_profile(profile_name, 'context')) | |
2 0.000000 endif | |
2 0.000009 let context = extend(default_context, a:context) | |
" Generic no. | |
4 0.000103 for option in map(filter(items(context), "stridx(v:val[0], 'no_') == 0 && v:val[1]"), 'v:val[0]') | |
2 0.000003 let context[option[3:]] = 0 | |
4 0.000002 endfor | |
2 0.000003 let context.profile_name = profile_name | |
2 0.000002 if context.toggle && context.find | |
" Disable toggle feature. | |
let context.toggle = 0 | |
2 0.000000 endif | |
2 0.000001 if context.tab | |
" Force create new vimfiler buffer. | |
let context.create = 1 | |
let context.alternate_buffer = -1 | |
2 0.000000 endif | |
2 0.000001 if context.explorer | |
2 0.000002 let context.columns = context.explorer_columns | |
2 0.000000 endif | |
2 0.000001 return context | |
FUNCTION dein#util#_get_vimrcs() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/util.vim line 57 | |
Called 1 time | |
Total time: 0.000015 | |
Self time: 0.000005 | |
count total (s) self (s) | |
1 0.000014 0.000005 return !empty(a:vimrcs) ? map(dein#util#_convert2list(a:vimrcs), 'expand(v:val)') : [dein#util#_get_myvimrc()] | |
FUNCTION startify#insane_in_the_membrane() | |
Defined: ~/.SpaceVim/bundle/vim-startify/autoload/startify.vim line 42 | |
Called 1 time | |
Total time: 0.008692 | |
Self time: 0.000225 | |
count total (s) self (s) | |
" Handle vim -y, vim -M. | |
1 0.000001 if a:on_vimenter && (&insertmode || !&modifiable) | |
return | |
1 0.000000 endif | |
1 0.000001 if !&hidden && &modified | |
call s:warn('Save your changes first.') | |
return | |
1 0.000000 endif | |
1 0.000003 if !empty(v:servername) && exists('g:startify_skiplist_server') | |
for servname in g:startify_skiplist_server | |
if servname == v:servername | |
return | |
endif | |
endfor | |
1 0.000000 endif | |
1 0.000002 if line2byte('$') != -1 | |
noautocmd enew | |
1 0.000000 endif | |
1 0.000020 silent! setlocal bufhidden=wipe colorcolumn= foldcolumn=0 matchpairs= nobuflisted nocursorcolumn nocursorline nolist nonumber norelativenumber nospell noswapfile signcolumn=no synmaxcol& | |
1 0.000002 if empty(&statusline) | |
setlocal statusline=\ startify | |
1 0.000000 endif | |
" Must be global so that it can be read by syntax/startify.vim. | |
1 0.000014 0.000010 let g:startify_header = exists('g:startify_custom_header') ? s:set_custom_section(g:startify_custom_header) : (exists('*strwidth') ? startify#pad(startify#fortune#cowsay()) : []) | |
1 0.000001 if !empty(g:startify_header) | |
1 0.000002 let g:startify_header += [''] " add blank line | |
1 0.000000 endif | |
1 0.000013 call append('$', g:startify_header) | |
1 0.000003 let b:startify = { 'entries': {}, 'indices': [], 'leftmouse': 0, 'tick': 0, } | |
1 0.000001 if s:show_special | |
1 0.000003 call append('$', [s:padding_left .'[e] <empty buffer>', '']) | |
1 0.000000 endif | |
1 0.000011 0.000006 call s:register(line('$')-1, 'e', 'special', 'enew', '') | |
1 0.000001 let b:startify.entry_number = 0 | |
1 0.000006 if filereadable('Session.vim') | |
call append('$', [s:padding_left .'[0] '. getcwd() . s:sep .'Session.vim', '']) | |
call s:register(line('$')-1, '0', 'session', 'call startify#session_delete_buffers() | source', 'Session.vim') | |
let b:startify.entry_number = 1 | |
let l:show_session = 1 | |
1 0.000000 endif | |
1 0.000001 if empty(v:oldfiles) | |
call s:warn("Can't read viminfo file. Read :help startify-faq-02") | |
1 0.000000 endif | |
1 0.000001 let b:startify.section_header_lines = [] | |
1 0.000076 0.000004 let lists = s:get_lists() | |
1 0.003171 0.000006 call s:show_lists(lists) | |
1 0.000006 silent $delete _ | |
1 0.000001 if s:show_special | |
1 0.000004 call append('$', ['', s:padding_left .'[q] <quit>']) | |
1 0.000011 0.000005 call s:register(line('$'), 'q', 'special', 'call s:close()', '') | |
else | |
" Don't overwrite the last regular entry, thus +1 | |
call s:register(line('$')+1, 'q', 'special', 'call s:close()', '') | |
1 0.000000 endif | |
" compute first line offset | |
1 0.000001 let b:startify.firstline = 2 | |
1 0.000002 let b:startify.firstline += len(g:startify_header) | |
" no special, no local Session.vim, but a section header | |
1 0.000002 if !s:show_special && !exists('l:show_session') && has_key(lists[0], 'header') | |
let b:startify.firstline += len(lists[0].header) + 1 | |
1 0.000000 endif | |
1 0.000001 let b:startify.lastline = line('$') | |
1 0.000003 let footer = exists('g:startify_custom_footer') ? s:set_custom_section(g:startify_custom_footer) : [] | |
1 0.000001 if !empty(footer) | |
let footer = [''] + footer | |
1 0.000000 endif | |
1 0.000001 call append('$', footer) | |
1 0.000004 setlocal nomodifiable nomodified | |
1 0.000576 0.000004 call s:set_mappings() | |
1 0.000002 call cursor(b:startify.firstline, 5) | |
1 0.000005 autocmd startify CursorMoved <buffer> call s:set_cursor() | |
1 0.000006 silent! %foldopen! | |
1 0.000039 normal! zb | |
1 0.004648 0.000005 set filetype=startify | |
1 0.000001 if exists('##DirChanged') | |
1 0.000003 let b:startify.cwd = getcwd() | |
1 0.000004 autocmd startify DirChanged <buffer> if getcwd() !=# get(get(b:, 'startify', {}), 'cwd') | Startify | endif | |
1 0.000000 endif | |
1 0.000002 if exists('#User#Startified') | |
doautocmd <nomodeline> User Startified | |
1 0.000000 endif | |
1 0.000001 if exists('#User#StartifyReady') | |
doautocmd <nomodeline> User StartifyReady | |
1 0.000000 endif | |
FUNCTION <SNR>194_sort_by() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vital/_vimfiler/Data/List.vim line 120 | |
Called 1 time | |
Total time: 0.000014 | |
Self time: 0.000008 | |
count total (s) self (s) | |
1 0.000003 let pairs = map(a:list, printf('[v:val, %s]', a:expr)) | |
1 0.000011 0.000004 return map(s:sort(pairs, 'a:a[1] ==# a:b[1] ? 0 : a:a[1] ># a:b[1] ? 1 : -1'), 'v:val[0]') | |
FUNCTION <SNR>63_parser() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/plugins.vim line 220 | |
Called 36 times | |
Total time: 0.000033 | |
Self time: 0.000033 | |
count total (s) self (s) | |
36 0.000026 return a:args | |
FUNCTION <SNR>199__vital_loaded() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vital/_vimfiler/Data/String.vim line 21 | |
Called 1 time | |
Total time: 0.000062 | |
Self time: 0.000011 | |
count total (s) self (s) | |
1 0.000001 let s:V = a:V | |
1 0.000060 0.000009 let s:L = s:V.import('Data.List') | |
FUNCTION <SNR>31__function() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/ui.vim line 146 | |
Called 15 times | |
Total time: 0.000040 | |
Self time: 0.000040 | |
count total (s) self (s) | |
15 0.000037 return function(a:fstr) | |
FUNCTION unite#util#set_default() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/util.vim line 110 | |
Called 2 times | |
Total time: 0.000031 | |
Self time: 0.000031 | |
count total (s) self (s) | |
2 0.000006 if !exists(a:var) || type({a:var}) != type(a:val) | |
2 0.000004 if exists(a:var) && type({a:var}) != type(a:val) | |
call unite#print_error(printf( 'Current %s is wrong type. Ignored your config.', a:var)) | |
2 0.000001 endif | |
2 0.000004 let alternate_var = get(a:000, 0, '') | |
2 0.000003 unlet! {a:var} | |
2 0.000006 let {a:var} = exists(alternate_var) ? {alternate_var} : a:val | |
2 0.000001 endif | |
FUNCTION 196() | |
Defined: ~/.SpaceVim/bundle/vim-textobj-user/autoload/textobj/user.vim line 387 | |
Called 3 times | |
Total time: 0.000716 | |
Self time: 0.000033 | |
count total (s) self (s) | |
3 0.000021 let _ = extend({'name': a:plugin_name, 'obj_specs': a:obj_specs}, s:plugin, 'keep') | |
3 0.000692 0.000009 call _.normalize() | |
3 0.000002 return _ | |
FUNCTION 197() | |
Defined: ~/.SpaceVim/bundle/vim-textobj-user/autoload/textobj/user.vim line 394 | |
Called 3 times | |
Total time: 0.000683 | |
Self time: 0.000012 | |
count total (s) self (s) | |
3 0.000682 0.000011 call s:normalize(self.obj_specs) | |
FUNCTION 198() | |
Defined: ~/.SpaceVim/bundle/vim-textobj-user/autoload/textobj/user.vim line 453 | |
Called 3 times | |
Total time: 0.001813 | |
Self time: 0.000015 | |
count total (s) self (s) | |
3 0.001813 0.000015 call textobj#user#map(self.name, self.obj_specs, a:banged_p) | |
FUNCTION 199() | |
Defined: ~/.SpaceVim/bundle/vim-textobj-user/autoload/textobj/user.vim line 458 | |
Called 3 times | |
Total time: 0.001221 | |
Self time: 0.000370 | |
count total (s) self (s) | |
3 0.000010 let RHS_FORMAT = '<SID>(save-cursor-pos)' . ':<C-u>call g:__textobj_' . self.name . '.%s(' . '"%s",' . '"%s",' . '"<mode>"' . ')<Return>' | |
7 0.000010 for [obj_name, specs] in items(self.obj_specs) | |
12 0.000096 0.000070 for spec_name in filter(keys(specs), 's:is_ui_property_name(v:val)') | |
" lhs | |
8 0.000194 0.000034 let lhs = self.interface_mapping_name(obj_name, spec_name) | |
" rhs | |
8 0.000008 let _ = spec_name . '-function' | |
8 0.000010 if has_key(specs, _) | |
8 0.000006 let do = 'do_by_function' | |
elseif has_key(specs, 'pattern') | |
let do = 'do_by_pattern' | |
else | |
" skip to allow to define user's own {rhs} of the interface mapping. | |
continue | |
8 0.000003 endif | |
8 0.000019 let rhs = printf(RHS_FORMAT, do, spec_name, obj_name) | |
" map | |
8 0.000013 if spec_name =~# '^move' | |
let MapFunction = function('s:noremap') | |
8 0.000004 else " spec_name =~# '^select' | |
8 0.000021 let MapFunction = function('s:objnoremap') | |
8 0.000002 endif | |
8 0.000700 0.000036 call MapFunction(1, '<silent> <script>' . lhs, rhs) | |
12 0.000004 endfor | |
7 0.000003 endfor | |
FUNCTION unite#get_current_unite() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite.vim line 207 | |
Called 31 times | |
Total time: 0.000294 | |
Self time: 0.000182 | |
count total (s) self (s) | |
31 0.000286 0.000174 return exists('b:unite') && !unite#variables#use_current_unite() ? b:unite : unite#variables#current_unite() | |
FUNCTION <SNR>149_SetGlobalOptDefault() | |
Defined: ~/.SpaceVim/bundle/vim-table-mode/plugin/table-mode.vim line 11 | |
Called 34 times | |
Total time: 0.000107 | |
Self time: 0.000107 | |
count total (s) self (s) | |
34 0.000044 if !exists('g:' . a:opt) | |
34 0.000046 let g:{a:opt} = a:val | |
34 0.000009 endif | |
FUNCTION SpaceVim#api#vim#statusline#get() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/vim/statusline.vim line 180 | |
Called 1 time | |
Total time: 0.000010 | |
Self time: 0.000010 | |
count total (s) self (s) | |
1 0.000010 return deepcopy(s:self) | |
FUNCTION unite#sources#file#_get_input() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/sources/file.vim line 283 | |
Called 2 times | |
Total time: 0.000060 | |
Self time: 0.000031 | |
count total (s) self (s) | |
2 0.000035 0.000006 let input = unite#util#expand(a:context.input) | |
2 0.000014 if input !~ '^\%(/\|\a\+:/\)' && a:path != '' | |
2 0.000003 let input = a:path . input | |
2 0.000001 endif | |
2 0.000002 if s:is_windows && getftype(input) == 'link' | |
" Resolve link. | |
let input = resolve(input) | |
2 0.000000 endif | |
2 0.000001 return input | |
FUNCTION unite#filters#matcher_default#use() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/filters/matcher_default.vim line 44 | |
Called 1 time | |
Total time: 0.001169 | |
Self time: 0.000059 | |
count total (s) self (s) | |
1 0.001169 0.000059 let s:default_matchers = unite#util#convert2list(a:matchers) | |
FUNCTION <SNR>190__runtime() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vital/vimfiler.vim line 251 | |
Called 7 times | |
Total time: 0.001777 | |
Self time: 0.000874 | |
count total (s) self (s) | |
7 0.001775 0.000872 execute 'runtime' fnameescape(a:path) | |
FUNCTION matchup#loader#init_buffer() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup/loader.vim line 21 | |
Called 4 times | |
Total time: 0.002025 | |
Self time: 0.000138 | |
count total (s) self (s) | |
4 0.000031 0.000016 call matchup#perf#tic('loader_init_buffer') | |
" initialize lists of delimiter pairs and regular expressions | |
" this is the data obtained from parsing b:match_words | |
4 0.000498 0.000031 let b:matchup_delim_lists = s:init_delim_lists() | |
" this is the combined set of regular expressions used for matching | |
" its structure is matchup_delim_re[type][open,close,both,mid,both_all] | |
4 0.001334 0.000031 let b:matchup_delim_re = s:init_delim_regexes() | |
" process match_skip | |
4 0.000039 0.000023 let b:matchup_delim_skip = s:init_delim_skip() | |
" enable/disable for this buffer | |
4 0.000007 let b:matchup_delim_enabled = !empty(b:matchup_delim_lists.all.regex) | |
4 0.000104 0.000018 call matchup#perf#toc('loader_init_buffer', 'done') | |
FUNCTION <SNR>111_is_ui_property_name() | |
Defined: ~/.SpaceVim/bundle/vim-textobj-user/autoload/textobj/user.vim line 759 | |
Called 32 times | |
Total time: 0.000059 | |
Self time: 0.000059 | |
count total (s) self (s) | |
32 0.000053 return 0 <= index(s:ui_property_names, a:name) | |
FUNCTION textobj#user#map() | |
Defined: ~/.SpaceVim/bundle/vim-textobj-user/autoload/textobj/user.vim line 201 | |
Called 3 times | |
Total time: 0.001798 | |
Self time: 0.000539 | |
count total (s) self (s) | |
3 0.000003 if a:0 == 0 | |
" It seems to be directly called by user - a:obj_specs are not normalized. | |
call s:normalize(a:obj_specs) | |
3 0.000001 endif | |
3 0.000004 let banged_p = a:0 == 0 || a:1 | |
7 0.000011 for [obj_name, specs] in items(a:obj_specs) | |
20 0.000027 for [spec_name, spec_info] in items(specs) | |
16 0.000278 0.000081 let rhs = s:interface_mapping_name(a:plugin_name, obj_name, spec_name) | |
16 0.000094 0.000061 if s:is_non_ui_property_name(spec_name) | |
" ignore | |
8 0.000016 elseif spec_name =~# '^move-[npNP]$' | |
for lhs in spec_info | |
call s:map(banged_p, lhs, rhs) | |
endfor | |
8 0.000047 elseif spec_name =~# '^select\(\|-[ai]\)$' | |
16 0.000011 for lhs in spec_info | |
8 0.000561 0.000044 call s:objmap(banged_p, lhs, rhs) | |
16 0.000005 endfor | |
else | |
throw printf('Unknown property: %s given to %s', string(spec_name), string(obj_name)) | |
16 0.000005 endif | |
16 0.000011 unlet spec_info " to avoid E706. | |
20 0.000006 endfor | |
7 0.000003 endfor | |
3 0.000532 0.000021 call s:define_failsafe_key_mappings(a:plugin_name, a:obj_specs) | |
FUNCTION dein#autoload#_source() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/autoload.vim line 10 | |
Called 35 times | |
Total time: 0.006746 | |
Self time: 0.002124 | |
count total (s) self (s) | |
35 0.000344 0.000198 let plugins = empty(a:000) ? values(g:dein#_plugins) : dein#util#_convert2list(a:1) | |
35 0.000030 if empty(plugins) | |
34 0.000015 return | |
1 0.000000 endif | |
1 0.000001 if type(plugins[0]) != 4 | |
1 0.000012 0.000007 let plugins = map(dein#util#_convert2list(a:1), 'get(g:dein#_plugins, v:val, {})') | |
1 0.000000 endif | |
1 0.000016 0.000006 let rtps = dein#util#_split_rtp(&runtimepath) | |
1 0.000009 0.000007 let index = index(rtps, dein#util#_get_runtime_path()) | |
1 0.000001 if index < 0 | |
return 1 | |
1 0.000000 endif | |
1 0.000001 let sourced = [] | |
2 0.000005 for plugin in filter(plugins, "!empty(v:val) && !v:val.sourced && v:val.rtp !=# ''") | |
1 0.000116 0.000007 call s:source_plugin(rtps, index, plugin, sourced) | |
2 0.000001 endfor | |
1 0.000031 0.000006 let filetype_before = dein#util#_redir('autocmd FileType') | |
1 0.000021 0.000009 let &runtimepath = dein#util#_join_rtp(rtps, &runtimepath, '') | |
1 0.000615 0.000005 call dein#call_hook('source', sourced) | |
" Reload script files. | |
2 0.000002 for plugin in sourced | |
2 0.000011 for directory in filter(['plugin', 'after/plugin'], "isdirectory(plugin.rtp.'/'.v:val)") | |
2 0.000228 0.000009 for file in dein#util#_globlist(plugin.rtp.'/'.directory.'/**/*.vim') | |
1 0.000213 0.000021 execute 'source' fnameescape(file) | |
2 0.000001 endfor | |
2 0.000001 endfor | |
1 0.000003 if !has('vim_starting') | |
1 0.000002 let augroup = get(plugin, 'augroup', plugin.normalized_name) | |
1 0.000002 let events = ['VimEnter', 'BufRead', 'BufEnter', 'BufWinEnter', 'WinEnter'] | |
1 0.000003 if has('gui_running') && &term ==# 'builtin_gui' | |
call add(events, 'GUIEnter') | |
1 0.000000 endif | |
6 0.000003 for event in events | |
5 0.000045 if exists('#'.augroup.'#'.event) | |
4 0.000068 0.000015 silent execute 'doautocmd' augroup event | |
5 0.000001 endif | |
6 0.000002 endfor | |
1 0.000000 endif | |
2 0.000001 endfor | |
1 0.000029 0.000005 let filetype_after = dein#util#_redir('autocmd FileType') | |
1 0.000365 0.000008 let is_reset = s:is_reset_ftplugin(sourced) | |
1 0.000001 if is_reset | |
call s:reset_ftplugin() | |
1 0.000000 endif | |
1 0.000004 if (is_reset || filetype_before !=# filetype_after) && &filetype !=# '' | |
" Recall FileType autocmd | |
1 0.000185 let &filetype = &filetype | |
1 0.000000 endif | |
1 0.000003 if !has('vim_starting') | |
1 0.000049 0.000005 call dein#call_hook('post_source', sourced) | |
1 0.000000 endif | |
FUNCTION vimfiler#view#_get_print_lines() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/view.vim line 234 | |
Called 5 times | |
Total time: 0.002274 | |
Self time: 0.001244 | |
count total (s) self (s) | |
" Clear previous syntax. | |
55 0.000029 for syntax in b:vimfiler.syntaxes | |
50 0.000073 silent! execute 'syntax clear' syntax | |
55 0.000014 endfor | |
5 0.000008 let columns = (b:vimfiler.context.simple) ? [] : b:vimfiler.columns | |
5 0.000165 0.000025 let max_len = vimfiler#view#_get_max_len(a:files) | |
5 0.000784 0.000027 call s:define_filename_regions(max_len) | |
5 0.000167 0.000034 call s:define_column_regions(max_len, columns) | |
" Print files. | |
5 0.000004 let lines = [] | |
37 0.000018 for file in a:files | |
32 0.000026 let filename = file.vimfiler__abbr | |
32 0.000041 if file.vimfiler__is_directory && filename !~ '/$' | |
20 0.000017 let filename .= '/' | |
32 0.000007 endif | |
32 0.000015 let mark = '' | |
32 0.000018 if file.vimfiler__nest_level > 0 | |
let mark .= repeat(' ', file.vimfiler__nest_level * g:vimfiler_tree_indentation) . g:vimfiler_tree_leaf_icon | |
32 0.000007 endif | |
32 0.000017 if file.vimfiler__is_marked | |
let mark .= g:vimfiler_marked_file_icon | |
32 0.000015 elseif file.vimfiler__is_directory | |
20 0.000063 let mark .= !get(file, 'vimfiler__is_writable', 1) && !file.vimfiler__is_opened ? g:vimfiler_readonly_file_icon : file.vimfiler__is_opened ? g:vimfiler_tree_opened_icon : g:vimfiler_tree_closed_icon | |
12 0.000002 else | |
12 0.000025 let mark .= (!get(file, 'vimfiler__is_writable', 1) ? g:vimfiler_readonly_file_icon : g:vimfiler_file_icon) | |
32 0.000007 endif | |
32 0.000021 let mark .= ' ' | |
32 0.000028 let line = mark . filename | |
32 0.000029 if len(line) > max_len | |
let line = vimfiler#util#truncate_smart( line, max_len, max_len/2, '..') | |
32 0.000008 else | |
32 0.000063 let line .= repeat(' ', max_len - strwidth(line)) | |
32 0.000007 endif | |
32 0.000019 for column in columns | |
let column_string = column.get(file, b:vimfiler.context) | |
if len(column_string) > column.vimfiler__length | |
let column_string = vimfiler#util#truncate( column_string, column.vimfiler__length) | |
endif | |
let line .= ' ' . column_string | |
32 0.000009 endfor | |
32 0.000022 if line[-1] == ' ' | |
let line = substitute(line, '\s\+$', '', '') | |
32 0.000007 endif | |
32 0.000033 call add(lines, line) | |
37 0.000014 endfor | |
5 0.000004 return lines | |
FUNCTION <SNR>181_filter_oldfiles() | |
Defined: ~/.SpaceVim/bundle/vim-startify/autoload/startify.vim line 585 | |
Called 2 times | |
Total time: 0.001746 | |
Self time: 0.000877 | |
count total (s) self (s) | |
2 0.000005 let path_prefix = '\V'. escape(a:path_prefix, '\') | |
2 0.000002 let counter = s:numfiles | |
2 0.000002 let entries = {} | |
2 0.000002 let oldfiles = [] | |
32 0.000018 for fname in v:oldfiles | |
32 0.000018 if counter <= 0 | |
2 0.000001 break | |
30 0.000006 endif | |
30 0.000719 0.000108 if s:is_in_skiplist(fname) | |
" https://github.com/mhinz/vim-startify/issues/353 | |
continue | |
30 0.000021 endif | |
30 0.000246 let absolute_path = fnamemodify(resolve(fname), ":p") | |
" filter duplicates, bookmarks and entries from the skiplist | |
30 0.000453 0.000195 if has_key(entries, absolute_path) || !filereadable(absolute_path) || s:is_in_skiplist(absolute_path) || match(absolute_path, path_prefix) | |
18 0.000008 continue | |
12 0.000003 endif | |
12 0.000009 let entry_path = '' | |
12 0.000005 if s:tf | |
let entry_path = s:transform(absolute_path) | |
12 0.000003 endif | |
12 0.000010 if empty(entry_path) | |
12 0.000038 let entry_path = fnamemodify(absolute_path, a:path_format) | |
12 0.000004 endif | |
12 0.000016 let entries[absolute_path] = 1 | |
12 0.000010 let counter -= 1 | |
12 0.000033 let oldfiles += [[fnameescape(absolute_path), entry_path]] | |
14 0.000005 endfor | |
2 0.000001 if a:use_env | |
call s:init_env() | |
for i in range(len(oldfiles)) | |
for [k,v] in s:env | |
let p = oldfiles[i][0] | |
if !stridx(tolower(p), tolower(v)) | |
let oldfiles[i][1] = printf('$%s%s', k, p[len(v):]) | |
break | |
endif | |
endfor | |
endfor | |
2 0.000001 endif | |
2 0.000001 return oldfiles | |
FUNCTION SpaceVim#layers#core#tabline#def_colors() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/core/tabline.vim line 482 | |
Called 3 times | |
Total time: 0.001450 | |
Self time: 0.000241 | |
count total (s) self (s) | |
3 0.000007 let name = get(g:, 'colors_name', 'gruvbox') | |
3 0.000004 if !empty(g:spacevim_custom_color_palette) | |
let t = g:spacevim_custom_color_palette | |
3 0.000001 else | |
3 0.000001 try | |
3 0.000037 0.000019 let t = SpaceVim#mapping#guide#theme#{name}#palette() | |
catch /^Vim\%((\a\+)\)\=:E117/ | |
let t = SpaceVim#mapping#guide#theme#gruvbox#palette() | |
3 0.000001 endtry | |
3 0.000001 endif | |
3 0.000023 exe 'hi! SpaceVim_tabline_a ctermbg=' . t[0][2] . ' ctermfg=' . t[0][3] . ' guibg=' . t[0][1] . ' guifg=' . t[0][0] | |
3 0.000003 if name ==# 'palenight' | |
exe 'hi! SpaceVim_tabline_b ctermbg=' . '236' . ' ctermfg=' . t[1][3] . ' guibg=' .'#44475a'. ' guifg=' . t[1][0] | |
3 0.000001 else | |
3 0.000018 exe 'hi! SpaceVim_tabline_b ctermbg=' . t[1][2] . ' ctermfg=' . t[1][3] . ' guibg=' . t[1][1] . ' guifg=' . t[1][0] | |
3 0.000001 endif | |
" SpaceVim_tabline_c is for modified buffers | |
3 0.000035 exe 'hi! SpaceVim_tabline_m ctermbg=' . t[4][3] . ' ctermfg=' . t[4][2] . ' guibg=' . t[4][1] . ' guifg=' . t[4][0] | |
3 0.000004 if name ==# 'palenight' | |
exe 'hi! SpaceVim_tabline_m_i ctermbg=' . '236' . ' ctermfg=' . t[4][3] . ' guibg=' . '#44475a' . ' guifg=' . t[4][1] | |
3 0.000001 else | |
3 0.000037 exe 'hi! SpaceVim_tabline_m_i ctermbg=' . t[1][2] . ' ctermfg=' . t[4][3] . ' guibg=' . t[1][1] . ' guifg=' . t[4][1] | |
3 0.000002 endif | |
3 0.000392 0.000020 call s:HI.hi_separator('SpaceVim_tabline_a', 'SpaceVim_tabline_b') | |
3 0.000429 0.000017 call s:HI.hi_separator('SpaceVim_tabline_m', 'SpaceVim_tabline_b') | |
3 0.000427 0.000020 call s:HI.hi_separator('SpaceVim_tabline_m', 'SpaceVim_tabline_a') | |
FUNCTION unite#loaded_sources_list() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite.vim line 153 | |
Called 2 times | |
Total time: 0.000035 | |
Self time: 0.000007 | |
count total (s) self (s) | |
2 0.000035 0.000007 return unite#variables#loaded_sources() | |
FUNCTION <SNR>178_CheckForExCtags() | |
Defined: ~/.SpaceVim/bundle/tagbar/autoload/tagbar.vim line 387 | |
Called 1 time | |
Total time: 0.140651 | |
Self time: 0.140520 | |
count total (s) self (s) | |
1 0.000156 0.000056 call tagbar#debug#log('Checking for Exuberant Ctags') | |
1 0.000001 if !exists('g:tagbar_ctags_bin') | |
1 0.000001 let ctagsbins = [] | |
1 0.000002 let ctagsbins += ['ctags-exuberant'] " Debian | |
1 0.000001 let ctagsbins += ['exuberant-ctags'] | |
1 0.000001 let ctagsbins += ['exctags'] " FreeBSD, NetBSD | |
1 0.000001 let ctagsbins += ['/usr/local/bin/ctags'] " Homebrew | |
1 0.000001 let ctagsbins += ['/opt/local/bin/ctags'] " Macports | |
1 0.000001 let ctagsbins += ['ectags'] " OpenBSD | |
1 0.000001 let ctagsbins += ['ctags'] | |
1 0.000001 let ctagsbins += ['ctags.exe'] | |
1 0.000001 let ctagsbins += ['tags'] | |
10 0.000019 for ctags in ctagsbins | |
9 0.140335 if executable(ctags) | |
let g:tagbar_ctags_bin = ctags | |
break | |
9 0.000005 endif | |
10 0.000011 endfor | |
1 0.000003 if !exists('g:tagbar_ctags_bin') | |
1 0.000002 let errmsg = 'Tagbar: Exuberant ctags not found!' | |
1 0.000002 let infomsg = 'Please download Exuberant Ctags from' . ' ctags.sourceforge.net and install it in a' . ' directory in your $PATH or set g:tagbar_ctags_bin.' | |
1 0.000050 0.000018 call s:CtagsErrMsg(errmsg, infomsg, a:silent) | |
1 0.000001 let s:checked_ctags = 2 | |
1 0.000000 return 0 | |
endif | |
else | |
" reset 'wildignore' temporarily in case *.exe is included in it | |
let wildignore_save = &wildignore | |
set wildignore& | |
let g:tagbar_ctags_bin = expand(g:tagbar_ctags_bin) | |
let &wildignore = wildignore_save | |
if !executable(g:tagbar_ctags_bin) | |
let errmsg = "Tagbar: Exuberant ctags not found at " . "'" . g:tagbar_ctags_bin . "'!" | |
let infomsg = 'Please check your g:tagbar_ctags_bin setting.' | |
call s:CtagsErrMsg(errmsg, infomsg, a:silent) | |
let s:checked_ctags = 2 | |
return 0 | |
endif | |
endif | |
let ctags_cmd = s:EscapeCtagsCmd(g:tagbar_ctags_bin, '--version') | |
if ctags_cmd == '' | |
let s:checked_ctags = 2 | |
return 0 | |
endif | |
let ctags_output = s:ExecuteCtags(ctags_cmd) | |
call tagbar#debug#log("Command output:\n" . ctags_output) | |
call tagbar#debug#log("Exit code: " . v:shell_error) | |
if v:shell_error || ctags_output !~# '\(Exuberant\|Universal\) Ctags' | |
let errmsg = 'Tagbar: Ctags doesn''t seem to be Exuberant Ctags!' | |
let infomsg = 'BSD ctags will NOT WORK.' . ' Please download Exuberant Ctags from ctags.sourceforge.net' . ' and install it in a directory in your $PATH' . ' or set g:tagbar_ctags_bin.' | |
call s:CtagsErrMsg(errmsg, infomsg, a:silent, ctags_cmd, ctags_output, v:shell_error) | |
let s:checked_ctags = 2 | |
return 0 | |
elseif !s:CheckExCtagsVersion(ctags_output) | |
let errmsg = 'Tagbar: Exuberant Ctags is too old!' | |
let infomsg = 'You need at least version 5.5 for Tagbar to work.' . ' Please download a newer version from ctags.sourceforge.net.' | |
call s:CtagsErrMsg(errmsg, infomsg, a:silent, ctags_cmd, ctags_output) | |
let s:checked_ctags = 2 | |
return 0 | |
else | |
let s:checked_ctags = 1 | |
return 1 | |
endif | |
FUNCTION <SNR>5_filetypeIcon() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/file.vim line 148 | |
Called 12 times | |
Total time: 0.000555 | |
Self time: 0.000555 | |
count total (s) self (s) | |
12 0.000022 let file = fnamemodify(a:path, ':t') | |
12 0.000018 if has_key(s:file_node_exact_matches, file) | |
return s:file_node_exact_matches[file] | |
12 0.000003 endif | |
96 0.000097 for [k, v] in items(s:file_node_pattern_matches) | |
84 0.000224 if match(file, k) != -1 | |
return v | |
84 0.000017 endif | |
96 0.000026 endfor | |
12 0.000018 let ext = fnamemodify(file, ':e') | |
12 0.000017 if has_key(g:spacevim_filetype_icons, ext) | |
return g:spacevim_filetype_icons[ext] | |
12 0.000015 elseif has_key(s:file_node_extensions, ext) | |
8 0.000009 return s:file_node_extensions[ext] | |
4 0.000001 endif | |
4 0.000002 return '' | |
FUNCTION <SNR>162_GetManifest() | |
Defined: /usr/share/nvim/runtime/plugin/rplugin.vim line 42 | |
Called 1 time | |
Total time: 0.000035 | |
Self time: 0.000016 | |
count total (s) self (s) | |
1 0.000023 0.000004 let manifest = s:GetManifestPath() | |
1 0.000005 if !filereadable(manifest) | |
" Check if an old manifest file exists and move it to the new location. | |
for old_manifest in s:GetOldManifestPaths() | |
if filereadable(old_manifest) | |
call rename(old_manifest, manifest) | |
break | |
endif | |
endfor | |
1 0.000000 endif | |
1 0.000001 return manifest | |
FUNCTION remote#host#RegisterClone() | |
Defined: /usr/share/nvim/runtime/autoload/remote/host.vim line 19 | |
Called 2 times | |
Total time: 0.000026 | |
Self time: 0.000026 | |
count total (s) self (s) | |
2 0.000007 if !has_key(s:hosts, a:orig_name) | |
throw 'No host named "'.a:orig_name.'" is registered' | |
2 0.000000 endif | |
2 0.000005 let Factory = s:hosts[a:orig_name].factory | |
2 0.000008 let s:hosts[a:name] = { 'factory': Factory, 'channel': 0, 'initialized': 0, 'orig_name': a:orig_name } | |
FUNCTION SpaceVim#layers#shell#config() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/shell.vim line 39 | |
Called 1 time | |
Total time: 0.000243 | |
Self time: 0.000086 | |
count total (s) self (s) | |
1 0.000092 0.000011 call SpaceVim#mapping#space#def('nnoremap', ["'"], 'call call(' . string(function('s:open_default_shell')) . ', [0])', ['open-shell', [ "[SPC '] is to open or jump to default shell window", '', 'Definition: ' . s:file . ':' . s:lnum, ] ], 1) | |
1 0.000087 0.000011 call SpaceVim#mapping#space#def('nnoremap', ["\""], 'call call(' . string(function('s:open_default_shell')) . ', [1])', ['open-shell-in-buffer-dir', [ "[SPC \"] is to open or jump to default shell window with the current file's pwd", '', 'Definition: ' . s:file . ':' . s:lnum, ] ], 1) | |
1 0.000003 if has('nvim') || exists(':tnoremap') == 2 | |
1 0.000012 exe 'tnoremap <silent><C-Right> <C-\><C-n>:<C-u>wincmd l<CR>' | |
1 0.000008 exe 'tnoremap <silent><C-Left> <C-\><C-n>:<C-u>wincmd h<CR>' | |
1 0.000007 exe 'tnoremap <silent><C-Up> <C-\><C-n>:<C-u>wincmd k<CR>' | |
1 0.000007 exe 'tnoremap <silent><C-Down> <C-\><C-n>:<C-u>wincmd j<CR>' | |
1 0.000006 exe 'tnoremap <silent><M-Left> <C-\><C-n>:<C-u>bprev<CR>' | |
1 0.000007 exe 'tnoremap <silent><M-Right> <C-\><C-n>:<C-u>bnext<CR>' | |
1 0.000006 exe 'tnoremap <silent><esc> <C-\><C-n>' | |
1 0.000002 if s:SYSTEM.isWindows | |
exe 'tnoremap <expr><silent><C-d> SpaceVim#layers#shell#terminal()' | |
exe 'tnoremap <expr><silent><C-u> SpaceVim#layers#shell#ctrl_u()' | |
exe 'tnoremap <expr><silent><C-w> SpaceVim#layers#shell#ctrl_w()' | |
exe 'tnoremap <expr><silent><C-r> SpaceVim#layers#shell#ctrl_r()' | |
1 0.000000 endif | |
1 0.000000 endif | |
" in window gvim, use <C-d> to close terminal buffer | |
FUNCTION <SNR>171_DisableOnDiff() | |
Defined: ~/.SpaceVim/bundle/indentLine/after/plugin/indentLine.vim line 123 | |
Called 2 times | |
Total time: 0.000008 | |
Self time: 0.000008 | |
count total (s) self (s) | |
2 0.000003 if &diff | |
call s:IndentLinesDisable() | |
call s:LeadingSpaceDisable() | |
2 0.000001 endif | |
FUNCTION neomake#VimLeave() | |
Defined: ~/.SpaceVim/bundle/neomake/autoload/neomake.vim line 1598 | |
Called 1 time | |
Total time: 0.000038 | |
Self time: 0.000010 | |
count total (s) self (s) | |
1 0.000033 0.000005 call neomake#log#debug('Calling VimLeave.') | |
1 0.000002 for make_id in keys(s:make_info) | |
call neomake#CancelMake(make_id) | |
1 0.000000 endfor | |
FUNCTION unite#util#substitute_path_separator() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/util.vim line 130 | |
Called 16 times | |
Total time: 0.000020 | |
Self time: 0.000020 | |
count total (s) self (s) | |
16 0.000016 return a:path | |
FUNCTION SpaceVim#mapping#g#init() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/mapping/g.vim line 9 | |
Called 1 time | |
Total time: 0.000262 | |
Self time: 0.000188 | |
count total (s) self (s) | |
1 0.000005 nnoremap <silent><nowait> [G] :<c-u>LeaderGuide "g"<CR> | |
1 0.000002 nmap g [G] | |
1 0.000002 let g:_spacevim_mappings_g = {} | |
1 0.000002 let g:_spacevim_mappings_g['<C-G>'] = ['call feedkeys("g\<c-g>", "n")', 'show cursor info'] | |
1 0.000002 nnoremap g<c-g> g<c-g> | |
1 0.000002 let g:_spacevim_mappings_g['&'] = ['call feedkeys("g&", "n")', 'repeat last ":s" on all lines'] | |
1 0.000002 nnoremap g& g& | |
1 0.000002 let g:_spacevim_mappings_g["'"] = ['call feedkeys("g' . "'" . '", "n")', 'jump to mark'] | |
1 0.000002 nnoremap g' g' | |
1 0.000002 let g:_spacevim_mappings_g['`'] = ['call feedkeys("g' . '`' . '", "n")', 'jump to mark'] | |
1 0.000002 nnoremap g` g` | |
1 0.000001 let g:_spacevim_mappings_g['+'] = ['call feedkeys("g+", "n")', 'newer text state'] | |
1 0.000002 nnoremap g+ g+ | |
1 0.000001 let g:_spacevim_mappings_g['-'] = ['call feedkeys("g-", "n")', 'older text state'] | |
1 0.000002 nnoremap g- g- | |
1 0.000002 let g:_spacevim_mappings_g[','] = ['call feedkeys("g,", "n")', 'newer position in change list'] | |
1 0.000002 nnoremap g, g, | |
1 0.000002 let g:_spacevim_mappings_g[';'] = ['call feedkeys("g;", "n")', 'older position in change list'] | |
1 0.000002 nnoremap g; g; | |
1 0.000001 let g:_spacevim_mappings_g['@'] = ['call feedkeys("g@", "n")', 'call operatorfunc'] | |
1 0.000002 nnoremap g@ g@ | |
1 0.000002 let g:_spacevim_mappings_g['#'] = ['call feedkeys("\<Plug>(incsearch-nohl-g#)")', 'search under cursor backward'] | |
1 0.000002 let g:_spacevim_mappings_g['*'] = ['call feedkeys("\<Plug>(incsearch-nohl-g*)")', 'search under cursor forward'] | |
1 0.000002 let g:_spacevim_mappings_g['/'] = ['call feedkeys("\<Plug>(incsearch-stay)")', 'stay incsearch'] | |
1 0.000003 let g:_spacevim_mappings_g['$'] = ['call feedkeys("g$", "n")', 'go to rightmost character'] | |
1 0.000002 nnoremap g$ g$ | |
1 0.000002 let g:_spacevim_mappings_g['<End>'] = ['call feedkeys("g$", "n")', 'go to rightmost character'] | |
1 0.000003 nnoremap g<End> g<End> | |
1 0.000002 let g:_spacevim_mappings_g['0'] = ['call feedkeys("g0", "n")', 'go to leftmost character'] | |
1 0.000002 nnoremap g0 g0 | |
1 0.000002 let g:_spacevim_mappings_g['<Home>'] = ['call feedkeys("g0", "n")', 'go to leftmost character'] | |
1 0.000003 nnoremap g<Home> g<Home> | |
1 0.000002 let g:_spacevim_mappings_g['e'] = ['call feedkeys("ge", "n")', 'go to end of previous word'] | |
1 0.000002 nnoremap ge ge | |
1 0.000002 let g:_spacevim_mappings_g['<'] = ['call feedkeys("g<", "n")', 'last page of previous command output'] | |
1 0.000002 nnoremap g< g< | |
1 0.000002 let g:_spacevim_mappings_g['f'] = ['call feedkeys("gf", "n")', 'edit file under cursor'] | |
1 0.000002 nnoremap gf gf | |
1 0.000002 let g:_spacevim_mappings_g['F'] = ['call feedkeys("gF", "n")', 'edit file under cursor(jump to line after name)'] | |
1 0.000002 nnoremap gF gF | |
1 0.000002 let g:_spacevim_mappings_g['j'] = ['call feedkeys("gj", "n")', 'move cursor down screen line'] | |
1 0.000002 nnoremap gj gj | |
1 0.000002 let g:_spacevim_mappings_g['k'] = ['call feedkeys("gk", "n")', 'move cursor up screen line'] | |
1 0.000002 nnoremap gk gk | |
1 0.000002 let g:_spacevim_mappings_g['u'] = ['call feedkeys("gu", "n")', 'make motion text lowercase'] | |
1 0.000002 nnoremap gu gu | |
1 0.000001 let g:_spacevim_mappings_g['E'] = ['call feedkeys("gE", "n")', 'end of previous word'] | |
1 0.000002 nnoremap gE gE | |
1 0.000001 let g:_spacevim_mappings_g['U'] = ['call feedkeys("gU", "n")', 'make motion text uppercase'] | |
1 0.000002 nnoremap gU gU | |
1 0.000001 let g:_spacevim_mappings_g['H'] = ['call feedkeys("gH", "n")', 'select line mode'] | |
1 0.000002 nnoremap gH gH | |
1 0.000001 let g:_spacevim_mappings_g['h'] = ['call feedkeys("gh", "n")', 'select mode'] | |
1 0.000002 nnoremap gh gh | |
1 0.000002 let g:_spacevim_mappings_g['I'] = ['call feedkeys("gI", "n")', 'insert text in column 1'] | |
1 0.000002 nnoremap gI gI | |
1 0.000002 let g:_spacevim_mappings_g['i'] = ['call feedkeys("gi", "n")', "insert text after '^ mark"] | |
1 0.000002 nnoremap gi gi | |
1 0.000002 let g:_spacevim_mappings_g['J'] = ['call feedkeys("gJ", "n")', 'join lines without space'] | |
1 0.000002 nnoremap gJ gJ | |
1 0.000002 let g:_spacevim_mappings_g['N'] = ['call feedkeys("gN", "n")', 'visually select previous match'] | |
1 0.000002 nnoremap gN gN | |
1 0.000001 let g:_spacevim_mappings_g['n'] = ['call feedkeys("gn", "n")', 'visually select next match'] | |
1 0.000002 nnoremap gn gn | |
1 0.000001 let g:_spacevim_mappings_g['Q'] = ['call feedkeys("gQ", "n")', 'switch to Ex mode'] | |
1 0.000002 nnoremap gQ gQ | |
1 0.000001 let g:_spacevim_mappings_g['q'] = ['call feedkeys("gq", "n")', 'format Nmove text'] | |
1 0.000002 nnoremap gq gq | |
1 0.000001 let g:_spacevim_mappings_g['R'] = ['call feedkeys("gR", "n")', 'enter VREPLACE mode'] | |
1 0.000002 nnoremap gR gR | |
1 0.000001 let g:_spacevim_mappings_g['T'] = ['call feedkeys("gT", "n")', 'previous tag page'] | |
1 0.000003 nnoremap gT gT | |
1 0.000001 let g:_spacevim_mappings_g['t'] = ['call feedkeys("gt", "n")', 'next tag page'] | |
1 0.000002 nnoremap gt gt | |
1 0.000001 let g:_spacevim_mappings_g[']'] = ['call feedkeys("g]", "n")', 'tselect cursor tag'] | |
1 0.000002 nnoremap g] g] | |
1 0.000002 let g:_spacevim_mappings_g['^'] = ['call feedkeys("g^", "n")', 'go to leftmost no-white character'] | |
1 0.000002 nnoremap g^ g^ | |
1 0.000001 let g:_spacevim_mappings_g['_'] = ['call feedkeys("g_", "n")', 'go to last char'] | |
1 0.000002 nnoremap g_ g_ | |
1 0.000001 let g:_spacevim_mappings_g['~'] = ['call feedkeys("g~", "n")', 'swap case for Nmove text'] | |
1 0.000002 nnoremap g~ g~ | |
1 0.000002 let g:_spacevim_mappings_g['a'] = ['call feedkeys("ga", "n")', 'print ascii value of cursor character'] | |
1 0.000002 nnoremap ga ga | |
1 0.000003 let g:_spacevim_mappings_g['g'] = ['call feedkeys("gg", "n")', 'go to line N'] | |
1 0.000002 nnoremap gg gg | |
1 0.000003 let g:_spacevim_mappings_g['m'] = ['call feedkeys("gm", "n")', 'go to middle of screenline'] | |
1 0.000002 nnoremap gm gm | |
1 0.000003 let g:_spacevim_mappings_g['o'] = ['call feedkeys("go", "n")', 'goto byte N in the buffer'] | |
1 0.000002 nnoremap go go | |
1 0.000002 let g:_spacevim_mappings_g.s = ['call feedkeys("gs", "n")', 'sleep N seconds'] | |
1 0.000002 nnoremap gs gs | |
1 0.000002 let g:_spacevim_mappings_g['v'] = ['call feedkeys("gv", "n")', 'reselect the previous Visual area'] | |
1 0.000002 nnoremap gv gv | |
1 0.000002 let g:_spacevim_mappings_g['<C-]>'] = ['call feedkeys("g<c-]>", "n")', 'jump to tag under cursor'] | |
1 0.000002 nnoremap g<c-]> g<c-]> | |
1 0.000002 let g:_spacevim_mappings_g['d'] = ['call SpaceVim#mapping#gd()', 'goto definition'] | |
1 0.000085 0.000011 call SpaceVim#mapping#def('nnoremap <silent>', 'gd', ':call SpaceVim#mapping#gd()<CR>', 'Goto declaration', '') | |
FUNCTION vimfiler#handler#_event_cursor_moved() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/handler.vim line 192 | |
Called 1 time | |
Total time: 0.000005 | |
Self time: 0.000005 | |
count total (s) self (s) | |
1 0.000001 if !exists('b:vimfiler') | |
return | |
1 0.000000 endif | |
1 0.000002 if line('.') <= line('$') / 2 || b:vimfiler.all_files_len == len(b:vimfiler.current_files) | |
1 0.000000 return | |
endif | |
" Update current files. | |
let len_files = len(b:vimfiler.current_files) | |
let new_files = b:vimfiler.all_files[ len_files : (len_files + winheight(0) * 2)] | |
let b:vimfiler.current_files += new_files | |
setlocal modifiable | |
try | |
call append('$', vimfiler#view#_get_print_lines(new_files)) | |
finally | |
setlocal nomodifiable | |
endtry | |
FUNCTION SpaceVim#layers#core#statusline#config() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/core/statusline.vim line 669 | |
Called 1 time | |
Total time: 0.000734 | |
Self time: 0.000090 | |
count total (s) self (s) | |
1 0.000094 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['t', 'm', 'm'], 'call SpaceVim#layers#core#statusline#toggle_section("minor mode lighters")', 'toggle the minor mode lighters', 1) | |
1 0.000126 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['t', 'm', 'M'], 'call SpaceVim#layers#core#statusline#toggle_section("major mode")', 'toggle the major mode', 1) | |
1 0.000081 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['t', 'm', 'b'], 'call SpaceVim#layers#core#statusline#toggle_section("battery status")', 'toggle the battery status', 1) | |
1 0.000078 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['t', 'm', 'd'], 'call SpaceVim#layers#core#statusline#toggle_section("date")', 'toggle the date', 1) | |
1 0.000078 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['t', 'm', 'i'], 'call SpaceVim#layers#core#statusline#toggle_section("input method")', 'toggle the input method', 1) | |
1 0.000077 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['t', 'm', 't'], 'call SpaceVim#layers#core#statusline#toggle_section("time")', 'toggle the time', 1) | |
1 0.000077 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['t', 'm', 'p'], 'call SpaceVim#layers#core#statusline#toggle_section("cursorpos")', 'toggle the cursor position', 1) | |
1 0.000078 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['t', 'm', 'T'], 'if &laststatus == 2 | let &laststatus = 0 | else | let &laststatus = 2 | endif', 'toggle the statusline itself', 1) | |
1 0.000001 function! TagbarStatusline(...) abort | |
let name = (strwidth(a:3) > (g:spacevim_sidebar_width - 15)) ? a:3[:g:spacevim_sidebar_width - 20] . '..' : a:3 | |
return s:STATUSLINE.build([s:winnr(1),' Tagbar ', ' ' . name . ' '], [], s:lsep, s:rsep, '', '', 'SpaceVim_statusline_ia', 'SpaceVim_statusline_b', 'SpaceVim_statusline_c', 'SpaceVim_statusline_z', g:spacevim_sidebar_width) | |
endfunction | |
1 0.000005 let g:tagbar_status_func = 'TagbarStatusline' | |
1 0.000004 let g:unite_force_overwrite_statusline = 0 | |
1 0.000005 let g:ctrlp_status_func = { 'main': 'SpaceVim#layers#core#statusline#ctrlp', 'prog': 'SpaceVim#layers#core#statusline#ctrlp_status', } | |
FUNCTION SpaceVim#begin() | |
Defined: ~/.SpaceVim/autoload/SpaceVim.vim line 1361 | |
Called 1 time | |
Total time: 0.006471 | |
Self time: 0.000132 | |
count total (s) self (s) | |
1 0.000061 0.000007 call SpaceVim#util#loadConfig('functions.vim') | |
1 0.002113 0.000008 call SpaceVim#util#loadConfig('init.vim') | |
" Before loading SpaceVim, We need to parser argvs. | |
1 0.000015 0.000012 let s:status = s:parser_argv() | |
" If do not start Vim with filename, Define autocmd for opening welcome page | |
1 0.000001 if s:status[0] == 0 | |
1 0.000007 let g:_spacevim_enter_dir = fnamemodify(getcwd(), ':~') | |
1 0.000237 0.000026 call SpaceVim#logger#info('Startup with no argv, current dir is used: ' . g:_spacevim_enter_dir ) | |
1 0.000001 augroup SPwelcome | |
1 0.000001 au! | |
1 0.000005 autocmd VimEnter * call SpaceVim#welcome() | |
1 0.000000 augroup END | |
elseif s:status[0] == 1 | |
let g:_spacevim_enter_dir = fnamemodify(s:status[1], ':~') | |
call SpaceVim#logger#info('Startup with directory: ' . g:_spacevim_enter_dir ) | |
augroup SPwelcome | |
au! | |
autocmd VimEnter * call SpaceVim#welcome() | |
augroup END | |
else | |
call SpaceVim#logger#info('Startup with argv: ' . string(s:status[1]) ) | |
1 0.000000 endif | |
1 0.000380 0.000020 call SpaceVim#default#options() | |
1 0.003494 0.000009 call SpaceVim#default#layers() | |
1 0.000146 0.000026 call SpaceVim#commands#load() | |
FUNCTION neomake#config#set_dict() | |
Defined: ~/.SpaceVim/bundle/neomake/autoload/neomake/config.vim line 191 | |
Called 2 times | |
Total time: 0.000080 | |
Self time: 0.000010 | |
count total (s) self (s) | |
2 0.000080 0.000009 return s:set(a:dict, a:name, a:value, 0) | |
FUNCTION <SNR>148_on_vimleavepre() | |
Defined: ~/.SpaceVim/bundle/vim-startify/plugin/startify.vim line 52 | |
Called 1 time | |
Total time: 0.000008 | |
Self time: 0.000008 | |
count total (s) self (s) | |
1 0.000005 if get(g:, 'startify_session_persistence') && exists('v:this_session') && filewritable(v:this_session) | |
call startify#session_write(fnameescape(v:this_session)) | |
1 0.000000 endif | |
FUNCTION tagbar#debug#log() | |
Defined: ~/.SpaceVim/bundle/tagbar/autoload/tagbar/debug.vim line 40 | |
Called 2 times | |
Total time: 0.000012 | |
Self time: 0.000012 | |
count total (s) self (s) | |
2 0.000002 if s:debug_enabled | |
execute 'redir >> ' . s:debug_file | |
silent echon s:gettime() . ': ' . a:msg . "\n" | |
redir END | |
2 0.000001 endif | |
FUNCTION neomake#CursorMovedDelayed() | |
Defined: ~/.SpaceVim/bundle/neomake/autoload/neomake.vim line 2523 | |
Called 1 time | |
Total time: 0.000014 | |
Self time: 0.000014 | |
count total (s) self (s) | |
1 0.000002 if exists('s:cursormoved_timer') | |
call timer_stop(s:cursormoved_timer) | |
1 0.000000 endif | |
1 0.000003 let delay = get(g:, 'neomake_cursormoved_delay', 100) | |
1 0.000005 let s:cursormoved_timer = timer_start(delay, function('s:cursormoved_delayed_cb')) | |
1 0.000002 let s:cursormoved_last_pos = getpos('.') | |
FUNCTION unite#custom#action() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/custom.vim line 45 | |
Called 3 times | |
Total time: 0.000097 | |
Self time: 0.000019 | |
count total (s) self (s) | |
3 0.000096 0.000017 return s:custom_base('actions', a:kind, a:name, a:action) | |
FUNCTION tagbar#currenttag() | |
Defined: ~/.SpaceVim/bundle/tagbar/autoload/tagbar.vim line 3313 | |
Called 1 time | |
Total time: 0.140682 | |
Self time: 0.000020 | |
count total (s) self (s) | |
" Indicate that the statusline functionality is being used. This prevents | |
" the CloseWindow() function from removing the autocommands. | |
1 0.000002 let s:statusline_in_use = 1 | |
1 0.000001 if a:0 > 0 | |
" also test for non-zero value for backwards compatibility | |
let longsig = a:1 =~# 's' || (type(a:1) == type(0) && a:1 != 0) | |
let fullpath = a:1 =~# 'f' | |
let prototype = a:1 =~# 'p' | |
1 0.000000 else | |
1 0.000001 let longsig = 0 | |
1 0.000001 let fullpath = 0 | |
1 0.000001 let prototype = 0 | |
1 0.000000 endif | |
1 0.140669 0.000007 if !s:Init(1) | |
1 0.000001 return a:default | |
endif | |
let tag = s:GetNearbyTag(0, 1) | |
if !empty(tag) | |
if prototype | |
return tag.getPrototype(1) | |
else | |
return printf(a:fmt, tag.str(longsig, fullpath)) | |
endif | |
else | |
return a:default | |
endif | |
FUNCTION <SNR>89_maybe_reconfigure_buffer() | |
Defined: ~/.SpaceVim/bundle/neomake/autoload/neomake/configure.vim line 598 | |
Called 3 times | |
Total time: 0.000013 | |
Self time: 0.000013 | |
count total (s) self (s) | |
3 0.000007 if has_key(s:configured_buffers, a:bufnr) && !s:configured_buffers[a:bufnr].custom | |
call s:configure_buffer(a:bufnr) | |
3 0.000001 endif | |
FUNCTION <SNR>171_Disable() | |
Defined: ~/.SpaceVim/bundle/indentLine/after/plugin/indentLine.vim line 309 | |
Called 3 times | |
Total time: 0.000198 | |
Self time: 0.000048 | |
count total (s) self (s) | |
3 0.000005 if exists("b:indentLine_enabled") && b:indentLine_enabled | |
return | |
3 0.000005 elseif exists("b:indentLine_leadingSpaceEnabled") && b:indentLine_leadingSpaceEnabled | |
return | |
3 0.000019 0.000009 elseif s:Filter() == 0 | |
3 0.000128 0.000011 call s:IndentLinesDisable() | |
3 0.000035 0.000012 call s:LeadingSpaceDisable() | |
3 0.000001 endif | |
FUNCTION FileIcon() | |
Defined: ~/.SpaceVim/config/plugins/vim-startify.vim line 69 | |
Called 12 times | |
Total time: 0.000628 | |
Self time: 0.000073 | |
count total (s) self (s) | |
12 0.000610 0.000056 let icon = s:FILE.fticon(a:path) | |
12 0.000015 return empty(icon) ? ' ' : icon | |
FUNCTION dein#util#_begin() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/util.vim line 356 | |
Called 1 time | |
Total time: 0.000264 | |
Self time: 0.000109 | |
count total (s) self (s) | |
1 0.000003 if !exists('#dein') | |
1 0.000058 0.000004 call dein#_init() | |
1 0.000000 endif | |
" Reset variables | |
1 0.000002 if has('vim_starting') | |
1 0.000001 let g:dein#_plugins = {} | |
1 0.000001 let g:dein#_event_plugins = {} | |
1 0.000000 endif | |
1 0.000001 let g:dein#_ftplugin = {} | |
1 0.000001 let g:dein#_hook_add = '' | |
1 0.000007 0.000004 if !dein#util#_has_job() | |
call dein#util#_error('Does not work in the Vim (' . v:version . ').') | |
return 1 | |
1 0.000000 endif | |
1 0.000002 if a:path ==# '' || g:dein#_block_level != 0 | |
call dein#util#_error('Invalid begin/end block usage.') | |
return 1 | |
1 0.000000 endif | |
1 0.000001 let g:dein#_block_level += 1 | |
1 0.000012 0.000004 let g:dein#_base_path = dein#util#_expand(a:path) | |
1 0.000001 if g:dein#_base_path[-1:] ==# '/' | |
1 0.000001 let g:dein#_base_path = g:dein#_base_path[: -2] | |
1 0.000000 endif | |
1 0.000044 0.000004 call dein#util#_get_runtime_path() | |
1 0.000005 0.000004 call dein#util#_get_cache_path() | |
1 0.000018 0.000004 let g:dein#_vimrcs = dein#util#_get_vimrcs(a:vimrcs) | |
1 0.000001 let g:dein#_hook_add = '' | |
1 0.000001 if has('vim_starting') | |
" Filetype off | |
1 0.000002 if exists('g:did_load_filetypes') || has('nvim') | |
1 0.000001 let g:dein#_off1 = 'filetype off' | |
1 0.000041 0.000024 execute g:dein#_off1 | |
1 0.000000 endif | |
1 0.000002 if exists('b:did_indent') || exists('b:did_ftplugin') | |
let g:dein#_off2 = 'filetype plugin indent off' | |
execute g:dein#_off2 | |
1 0.000000 endif | |
else | |
execute 'set rtp-='.fnameescape(g:dein#_runtime_path) | |
execute 'set rtp-='.fnameescape(g:dein#_runtime_path.'/after') | |
1 0.000000 endif | |
" Insert dein runtimepath to the head in 'runtimepath'. | |
1 0.000011 0.000005 let rtps = dein#util#_split_rtp(&runtimepath) | |
1 0.000002 let idx = index(rtps, $VIMRUNTIME) | |
1 0.000001 if idx < 0 | |
call dein#util#_error('Invalid runtimepath.') | |
return 1 | |
1 0.000000 endif | |
1 0.000003 if fnamemodify(a:path, ':t') ==# 'plugin' && index(rtps, fnamemodify(a:path, ':h')) >= 0 | |
call dein#util#_error('You must not set the installation directory' .' under "&runtimepath/plugin"') | |
return 1 | |
1 0.000000 endif | |
1 0.000002 call insert(rtps, g:dein#_runtime_path, idx) | |
1 0.000010 0.000005 call dein#util#_add_after(rtps, g:dein#_runtime_path.'/after') | |
1 0.000011 0.000005 let &runtimepath = dein#util#_join_rtp(rtps, &runtimepath, g:dein#_runtime_path) | |
FUNCTION <SNR>89_parse_events_from_args() | |
Defined: ~/.SpaceVim/bundle/neomake/autoload/neomake/configure.vim line 364 | |
Called 1 time | |
Total time: 0.000286 | |
Self time: 0.000114 | |
count total (s) self (s) | |
" Get default delay from a:1. | |
1 0.000000 if a:0 | |
if has('timers') | |
let delay = a:1 | |
else | |
if a:1 != 0 | |
call neomake#log#warning('automake: timer support is required for delayed events.') | |
endif | |
let delay = 0 | |
endif | |
1 0.000000 else | |
1 0.000001 let delay = s:default_delay | |
1 0.000000 endif | |
1 0.000002 if type(a:string_or_dict_config) == type({}) | |
1 0.000002 let events = copy(a:string_or_dict_config) | |
" Validate events. | |
2 0.000004 for [event, config] in items(events) | |
1 0.000002 if !exists('##'.event) | |
call neomake#log#error(printf( 'automake: event %s does not exist.', event)) | |
unlet events[event] | |
continue | |
1 0.000000 endif | |
1 0.000002 if get(config, 'delay', 0) && !has('timers') | |
call neomake#log#error(printf( 'automake: timer support is required for automaking, removing event %s.', event)) | |
unlet events[event] | |
1 0.000000 endif | |
2 0.000001 endfor | |
1 0.000181 0.000046 call neomake#config#set_dict(a:config, 'automake.events', events) | |
1 0.000001 if a:0 | |
let a:config.automake_delay = a:1 | |
1 0.000000 endif | |
else | |
" Map string config to events dict. | |
let modes = split(a:string_or_dict_config, '\zs') | |
let events = {} | |
let default_with_delay = {} | |
let unknown = [] | |
for mode in modes | |
" Insert mode. | |
if mode ==# 'i' | |
if exists('##TextChangedI') && has('timers') | |
let events['TextChangedI'] = default_with_delay | |
else | |
call s:debug_log('using CursorHoldI instead of TextChangedI') | |
let events['CursorHoldI'] = (delay != 0 ? {'delay': 0} : {}) | |
endif | |
" Normal mode. | |
elseif mode ==# 'n' | |
if exists('##TextChanged') && has('timers') | |
let events['TextChanged'] = default_with_delay | |
if !has_key(events, 'TextChangedI') | |
" Run when leaving insert mode, since only TextChangedI would be triggered | |
" for `ciw` etc. | |
let events['InsertLeave'] = default_with_delay | |
endif | |
else | |
call s:debug_log('using CursorHold instead of TextChanged') | |
let events['CursorHold'] = (delay != 0 ? {'delay': 0} : {}) | |
let events['InsertLeave'] = (delay != 0 ? {'delay': 0} : {}) | |
endif | |
" On writes. | |
elseif mode ==# 'w' | |
let events['BufWritePost'] = (delay != 0 ? {'delay': 0} : {}) | |
" On reads. | |
elseif mode ==# 'r' | |
let events['BufWinEnter'] = {} | |
let events['FileType'] = {} | |
" When a file was changed outside of Vim. | |
" TODO: test | |
let events['FileChangedShellPost'] = {} | |
" XXX: FileType might work better, at least when wanting to skip filetypes. | |
" let events['FileType'] = {'delay': a:0 > 1 ? delay : 0} | |
else | |
let unknown += [mode] | |
endif | |
endfor | |
if !empty(unknown) | |
call neomake#log#error(printf('unknown modes in string automake config (%s): %s.', a:string_or_dict_config, join(unknown, ', '))) | |
endif | |
1 0.000000 endif | |
1 0.000043 0.000005 call neomake#config#set_dict(a:config, 'automake.events', events) | |
1 0.000000 if a:0 | |
let a:config.automake_delay = delay | |
1 0.000000 endif | |
FUNCTION <SNR>190__import_func_name() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vital/vimfiler.vim line 204 | |
Called 7 times | |
Total time: 0.000068 | |
Self time: 0.000042 | |
count total (s) self (s) | |
7 0.000066 0.000041 return printf('vital#_%s#%s#import', a:plugin_name, s:_dot_to_sharp(a:module_name)) | |
FUNCTION vimfiler#filters#matcher_ignore_wildignore#define() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/filters/matcher_ignore_wildignore.vim line 7 | |
Called 1 time | |
Total time: 0.000001 | |
Self time: 0.000001 | |
count total (s) self (s) | |
1 0.000001 return s:filter | |
FUNCTION SpaceVim#layers#checkers#plugins() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/checkers.vim line 17 | |
Called 1 time | |
Total time: 0.000011 | |
Self time: 0.000011 | |
count total (s) self (s) | |
1 0.000001 let plugins = [] | |
1 0.000001 if g:spacevim_enable_neomake && g:spacevim_enable_ale == 0 | |
1 0.000004 call add(plugins, [g:_spacevim_root_dir . 'bundle/neomake', {'merged' : 0, 'loadconf' : 1 , 'loadconf_before' : 1}]) | |
elseif g:spacevim_enable_ale | |
call add(plugins, ['dense-analysis/ale', {'merged' : 0, 'loadconf_before' : 1}]) | |
else | |
call add(plugins, ['wsdjeg/syntastic', {'on_event': 'WinEnter', 'loadconf' : 1, 'merged' : 0}]) | |
1 0.000000 endif | |
1 0.000001 return plugins | |
FUNCTION SpaceVim#api#vim#key#get() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/vim/key.vim line 36 | |
Called 1 time | |
Total time: 0.000003 | |
Self time: 0.000003 | |
count total (s) self (s) | |
1 0.000002 return deepcopy(s:self) | |
FUNCTION <SNR>147_default_mapping() | |
Defined: ~/.SpaceVim/bundle/vim-easymotion/plugin/EasyMotion.vim line 249 | |
Called 1 time | |
Total time: 0.000849 | |
Self time: 0.000849 | |
count total (s) self (s) | |
18 0.000012 for motion in a:motions | |
" Mapping {{{ | |
17 0.000028 if exists('g:EasyMotion_mapping_' . motion) | |
" Backward compatible mapping [deprecated] | |
silent exec 'map <silent> ' . eval('g:EasyMotion_mapping_' . motion) . ' <Plug>(easymotion-' . motion . ')' | |
17 0.000484 elseif a:do_mapping && !hasmapto('<Plug>(easymotion-' . motion . ')') && empty(maparg('<Plug>(easymotion-prefix)' . motion, 'nov')) | |
" Do mapping | |
17 0.000275 silent exec 'map <silent> ' .'<Plug>(easymotion-prefix)' . motion . ' <Plug>(easymotion-' . motion . ')' | |
17 0.000007 endif "}}} | |
18 0.000005 endfor | |
FUNCTION unite#get_vimfiler_candidates() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite.vim line 279 | |
Called 2 times | |
Total time: 0.016627 | |
Self time: 0.000024 | |
count total (s) self (s) | |
2 0.016627 0.000024 return call('unite#start#get_vimfiler_candidates', a:000) | |
FUNCTION vimfiler#get_file() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler.vim line 97 | |
Called 5 times | |
Total time: 0.000076 | |
Self time: 0.000046 | |
count total (s) self (s) | |
5 0.000012 let line_num = get(a:000, 0, line('.')) | |
5 0.000051 0.000021 let index = vimfiler#get_file_index(a:vimfiler, line_num) | |
5 0.000011 return index < 0 ? {} : get(a:vimfiler.current_files, index, {}) | |
FUNCTION <SNR>67_source_plugin() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/autoload.vim line 245 | |
Called 1 time | |
Total time: 0.000109 | |
Self time: 0.000080 | |
count total (s) self (s) | |
1 0.000002 if a:plugin.sourced || index(a:sourced, a:plugin) >= 0 | |
return | |
1 0.000000 endif | |
1 0.000002 call add(a:sourced, a:plugin) | |
1 0.000001 let index = a:index | |
" Load dependencies | |
1 0.000002 for name in get(a:plugin, 'depends', []) | |
if !has_key(g:dein#_plugins, name) | |
call dein#util#_error(printf( 'Plugin name "%s" is not found.', name)) | |
continue | |
endif | |
if !a:plugin.lazy && g:dein#_plugins[name].lazy | |
call dein#util#_error(printf( 'Not lazy plugin "%s" depends lazy "%s" plugin.', a:plugin.name, name)) | |
continue | |
endif | |
if s:source_plugin(a:rtps, index, g:dein#_plugins[name], a:sourced) | |
let index += 1 | |
endif | |
1 0.000001 endfor | |
1 0.000002 let a:plugin.sourced = 1 | |
1 0.000050 0.000021 for on_source in filter(dein#util#_get_lazy_plugins(), "index(get(v:val, 'on_source', []), a:plugin.name) >= 0") | |
if s:source_plugin(a:rtps, index, on_source, a:sourced) | |
let index += 1 | |
endif | |
1 0.000000 endfor | |
1 0.000001 if has_key(a:plugin, 'dummy_commands') | |
3 0.000003 for command in a:plugin.dummy_commands | |
2 0.000009 silent! execute 'delcommand' command[0] | |
3 0.000001 endfor | |
1 0.000003 let a:plugin.dummy_commands = [] | |
1 0.000000 endif | |
1 0.000001 if has_key(a:plugin, 'dummy_mappings') | |
for map in a:plugin.dummy_mappings | |
silent! execute map[0].'unmap' map[1] | |
endfor | |
let a:plugin.dummy_mappings = [] | |
1 0.000000 endif | |
1 0.000001 if !a:plugin.merged || get(a:plugin, 'local', 0) | |
1 0.000002 call insert(a:rtps, a:plugin.rtp, index) | |
1 0.000004 if isdirectory(a:plugin.rtp.'/after') | |
call dein#util#_add_after(a:rtps, a:plugin.rtp.'/after') | |
1 0.000000 endif | |
1 0.000000 endif | |
FUNCTION SpaceVim#layers#autocomplete#config() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/autocomplete.vim line 131 | |
Called 1 time | |
Total time: 0.000182 | |
Self time: 0.000109 | |
count total (s) self (s) | |
1 0.000001 if g:spacevim_autocomplete_parens | |
1 0.000015 imap <expr>( pumvisible() ? has('patch-7.4.744') ? complete_parameter#pre_complete("()") : '(' : (len(maparg('<Plug>delimitMate(', 'i')) == 0) ? "\<Plug>delimitMate(" : '(' | |
1 0.000000 endif | |
"mapping | |
1 0.000001 if s:tab_key_behavior ==# 'smart' | |
1 0.000002 if has('patch-7.4.774') | |
1 0.000005 imap <silent><expr><TAB> SpaceVim#mapping#tab() | |
1 0.000005 imap <silent><expr><S-TAB> SpaceVim#mapping#shift_tab() | |
1 0.000001 if g:spacevim_snippet_engine ==# 'neosnippet' | |
1 0.000011 smap <expr><TAB> neosnippet#expandable_or_jumpable() ? "\<Plug>(neosnippet_expand_or_jump)" : (complete_parameter#jumpable(1) ? "\<plug>(complete_parameter#goto_next_parameter)" : "\<TAB>") | |
elseif g:spacevim_snippet_engine ==# 'ultisnips' | |
snoremap <silent> <TAB> <ESC>:call UltiSnips#JumpForwards()<CR> | |
snoremap <silent> <S-TAB> <ESC>:call UltiSnips#JumpBackwards()<CR> | |
1 0.000000 endif | |
else | |
call SpaceVim#logger#info('smart tab in autocomplete layer need patch 7.4.774') | |
1 0.000000 endif | |
elseif s:tab_key_behavior ==# 'complete' | |
inoremap <expr> <Tab> pumvisible() ? "\<C-y>" : "\<C-n>" | |
elseif s:tab_key_behavior ==# 'cycle' | |
inoremap <expr> <Tab> pumvisible() ? "\<Down>" : "\<Tab>" | |
inoremap <expr> <S-Tab> pumvisible() ? "\<Up>" : "" | |
elseif s:tab_key_behavior ==# 'nil' | |
1 0.000000 endif | |
1 0.000001 if s:return_key_behavior ==# 'smart' | |
imap <silent><expr><CR> SpaceVim#mapping#enter() | |
1 0.000001 elseif s:return_key_behavior ==# 'complete' | |
1 0.000005 imap <silent><expr><CR> pumvisible() ? "\<C-y>" : "\<CR>" | |
elseif s:return_key_behavior ==# 'nil' | |
1 0.000000 endif | |
1 0.000005 inoremap <expr> <Down> pumvisible() ? "\<C-n>" : "\<Down>" | |
1 0.000004 inoremap <expr> <Up> pumvisible() ? "\<C-p>" : "\<Up>" | |
1 0.000006 inoremap <expr> <PageDown> pumvisible() ? "\<PageDown>\<C-p>\<C-n>" : "\<PageDown>" | |
1 0.000005 inoremap <expr> <PageUp> pumvisible() ? "\<PageUp>\<C-p>\<C-n>" : "\<PageUp>" | |
" in origin vim or neovim Alt + / will insert a /, this should be disabled. | |
1 0.000002 let g:complete_parameter_use_ultisnips_mapping = 1 | |
1 0.000001 if g:spacevim_snippet_engine ==# 'neosnippet' | |
1 0.000006 imap <expr> <M-/> neosnippet#expandable() ? "\<Plug>(neosnippet_expand)" : "" | |
elseif g:spacevim_snippet_engine ==# 'ultisnips' | |
inoremap <silent> <M-/> <C-R>=UltiSnips#ExpandSnippetOrJump()<cr> | |
1 0.000000 endif | |
1 0.000002 let g:_spacevim_mappings_space.i = {'name' : '+Insertion'} | |
1 0.000001 if g:spacevim_snippet_engine ==# 'neosnippet' | |
1 0.000080 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['i', 's'], 'Unite neosnippet', 'insert snippets', 1) | |
elseif g:spacevim_snippet_engine ==# 'ultisnips' | |
call SpaceVim#mapping#space#def('nnoremap', ['i', 's'], 'Unite ultisnips', 'insert snippets', 1) | |
1 0.000000 endif | |
1 0.000002 if !empty(g:_spacevim_key_sequence) && g:_spacevim_key_sequence !=# 'nil' | |
if g:spacevim_escape_key_binding !=# g:_spacevim_key_sequence | |
augroup spacevim_layer_autocomplete | |
autocmd! | |
autocmd InsertEnter * call s:apply_sequence_delay() | |
autocmd InsertLeave * call s:restore_sequence_delay() | |
augroup END | |
else | |
call SpaceVim#logger#warn('Can not use same value for escape_key_binding and auto_completion_complete_with_key_sequence') | |
endif | |
1 0.000000 endif | |
FUNCTION matchup#perf#tic() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup/perf.vim line 15 | |
Called 15 times | |
Total time: 0.000044 | |
Self time: 0.000044 | |
count total (s) self (s) | |
15 0.000041 let s:time_start[a:context] = reltime() | |
FUNCTION vimfiler#init#_default_settings() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/init.vim line 578 | |
Called 1 time | |
Total time: 0.000061 | |
Self time: 0.000026 | |
count total (s) self (s) | |
1 0.000039 0.000005 call s:buffer_default_settings() | |
" Set autocommands. | |
1 0.000002 augroup vimfiler | |
1 0.000004 autocmd BufEnter,WinEnter <buffer> call vimfiler#handler#_event_bufwin_enter(expand('<abuf>')) | |
1 0.000003 autocmd BufLeave,WinLeave <buffer> call vimfiler#handler#_event_bufwin_leave(expand('<abuf>')) | |
1 0.000003 autocmd CursorMoved <buffer> call vimfiler#handler#_event_cursor_moved() | |
1 0.000002 autocmd FocusGained <buffer> call vimfiler#view#_force_redraw_all_vimfiler() | |
1 0.000006 autocmd WinEnter,VimResized,CursorHold <buffer> call vimfiler#view#_redraw_all_vimfiler() | |
1 0.000000 augroup end | |
FUNCTION vimfiler#get_file_offset() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler.vim line 116 | |
Called 7 times | |
Total time: 0.000008 | |
Self time: 0.000008 | |
count total (s) self (s) | |
7 0.000006 return a:vimfiler.prompt_linenr | |
FUNCTION <SNR>108_SynSet() | |
Defined: /usr/share/nvim/runtime/syntax/synload.vim line 33 | |
Called 3 times | |
Total time: 0.001725 | |
Self time: 0.000927 | |
count total (s) self (s) | |
" clear syntax for :set syntax=OFF and any syntax name that doesn't exist | |
3 0.000008 syn clear | |
3 0.000004 if exists("b:current_syntax") | |
unlet b:current_syntax | |
3 0.000001 endif | |
3 0.000005 let s = expand("<amatch>") | |
3 0.000002 if s == "ON" | |
" :set syntax=ON | |
if &filetype == "" | |
echohl ErrorMsg | |
echo "filetype unknown" | |
echohl None | |
endif | |
let s = &filetype | |
3 0.000002 elseif s == "OFF" | |
let s = "" | |
3 0.000001 endif | |
3 0.000002 if s != "" | |
" Load the syntax file(s). When there are several, separated by dots, | |
" load each in sequence. | |
6 0.000012 for name in split(s, '\.') | |
3 0.001661 0.000863 exe "runtime! syntax/" . name . ".vim syntax/" . name . "/*.vim" | |
6 0.000003 endfor | |
3 0.000001 endif | |
FUNCTION SpaceVim#layers#format#config() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/format.vim line 32 | |
Called 1 time | |
Total time: 0.000084 | |
Self time: 0.000011 | |
count total (s) self (s) | |
1 0.000078 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['b', 'f'], 'Neoformat', 'format-code', 1) | |
1 0.000001 augroup spacevim_layer_format | |
1 0.000002 autocmd! | |
1 0.000003 autocmd BufWritePre * call s:format() | |
1 0.000000 augroup END | |
FUNCTION <SNR>10_get_python_executable_from_host_var() | |
Defined: /usr/share/nvim/runtime/autoload/provider/pythonx.vim line 24 | |
Called 2 times | |
Total time: 0.000012 | |
Self time: 0.000012 | |
count total (s) self (s) | |
2 0.000011 return expand(get(g:, 'python'.(a:major_version == 3 ? '3' : '').'_host_prog', '')) | |
FUNCTION <SNR>209_make_aliases() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/sources/alias.vim line 17 | |
Called 1 time | |
Total time: 0.000032 | |
Self time: 0.000032 | |
count total (s) self (s) | |
1 0.000001 let aliases = [] | |
1 0.000003 let user_aliases = map(copy(g:unite_source_alias_aliases), "type(v:val) == type('') ? { 'source' : v:val } : v:val") | |
1 0.000002 for [name, config] in items(user_aliases) | |
let args = (!has_key(config, 'args')) ? [] : (type(config.args) == type([])) ? config.args : [config.args] | |
let alias = {} | |
let alias.name = name | |
let alias.description = get(config, 'description', s:make_default_description(config.source, args)) | |
let alias.source__config = config | |
let alias.source__args = args | |
let alias.hooks = {} | |
function! alias.hooks.on_pre_init(args, context) abort | |
let config = a:context.source.source__config | |
let original_source = (!has_key(config, 'source') || config.source ==# a:context.source.name) ? {} : deepcopy(unite#get_all_sources(config.source)) | |
let alias_source = deepcopy(a:context.source) | |
if has_key(original_source, 'hooks') && has_key(original_source.hooks, 'on_pre_init') | |
" Call pre init hook. | |
call original_source.hooks.on_pre_init( a:context.source.source__args + a:args, { 'source' : original_source }) | |
endif | |
let source = extend(a:context.source, filter(copy(original_source), 'type(v:val) != type(function("type"))')) | |
let source.name = alias_source.name | |
let source.description = alias_source.description | |
let source.hooks = {} | |
let source.source__original_source = original_source | |
let source.source__args = a:context.source.source__args | |
" Overwrite hooks. | |
if has_key(original_source, 'hooks') | |
for func in filter(keys(original_source.hooks), 'v:val !=# "on_pre_init"') | |
let define_function = join([ 'function! source.hooks.' . func . '(args, context)', ' let args = a:context.source.source__args + a:args', ' return a:context.source.source__original_source.hooks.' . func . '(args, a:context)', 'endfunction'], "\n") | |
execute define_function | |
endfor | |
endif | |
" Overwrite functions. | |
for func in keys(filter(copy(original_source), 'type(v:val) == type(function("type"))')) | |
if func ==# 'complete' | |
let define_function = join([ 'function! source.' . func . '(args, context, arglead, cmdline, cursorpos)', ' let args = self.source__args + a:args', ' return self.source__original_source.' . func . '(args, a:context, a:arglead, a:cmdline, a:cursorpos)', 'endfunction'], "\n") | |
else | |
let define_function = join([ 'function! source.' . func . '(args, context)', ' let args = self.source__args + a:args', ' return self.source__original_source.' . func . '(args, a:context)', 'endfunction'], "\n") | |
endif | |
execute define_function | |
endfor | |
endfunction | |
call add(aliases, alias) | |
1 0.000002 endfor | |
1 0.000001 return aliases | |
FUNCTION SpaceVim#plugins#manager#terminal() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/plugins/manager.vim line 768 | |
Called 1 time | |
Total time: 0.000008 | |
Self time: 0.000008 | |
count total (s) self (s) | |
1 0.000003 for id in keys(s:pulling_repos) | |
call s:JOB.stop(str2nr(id)) | |
1 0.000001 endfor | |
1 0.000001 for id in keys(s:building_repos) | |
call s:JOB.stop(str2nr(id)) | |
1 0.000000 endfor | |
FUNCTION SpaceVim#commands#load() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/commands.vim line 9 | |
Called 1 time | |
Total time: 0.000054 | |
Self time: 0.000054 | |
count total (s) self (s) | |
"" | |
" Load exist layer, {layers} can be a string of a layer name, or a list | |
" of layer names. | |
1 0.000004 command! -nargs=+ SPLayer call SpaceVim#layers#load(<f-args>) | |
"" | |
" Print the version of SpaceVim. The following lines contain information | |
" about which features were enabled. When there is a preceding '+', the | |
" feature is included, when there is a '-' it is excluded. | |
1 0.000002 command! -nargs=0 SPVersion call SpaceVim#commands#version() | |
"" | |
" Set or check SpaceVim option. {opt} should be the option name of | |
" spacevim, This command will use [value] as the value of option name. | |
1 0.000003 command! -nargs=+ SPSet call SpaceVim#options#set(<f-args>) | |
"" | |
" print the debug information of spacevim, [!] forces the output into a | |
" new buffer. | |
1 0.000004 command! -nargs=0 -bang SPDebugInfo call SpaceVim#logger#viewLog('<bang>' == '!') | |
"" | |
" view runtime log | |
1 0.000002 command! -nargs=0 SPRuntimeLog call SpaceVim#logger#viewRuntimeLog() | |
"" | |
" edit custom config file of SpaceVim, by default this command will open | |
" global custom configuration file, '-l' option will load local custom | |
" configuration file. | |
" > | |
" :SPConfig -g | |
" < | |
1 0.000003 command! -nargs=* -complete=customlist,SpaceVim#commands#complete_SPConfig SPConfig call SpaceVim#commands#config(<f-args>) | |
"" | |
" Command for update plugin, support completion of plugin name. If run | |
" without argv, All the plugin will be updated. | |
" > | |
" :SPUpdate vim-airline | |
" < | |
1 0.000003 command! -nargs=* -complete=custom,SpaceVim#commands#complete_plugin SPUpdate call SpaceVim#commands#update_plugin(<f-args>) | |
"" | |
" Command for reinstall plugin, support completion of plugin name. | |
1 0.000003 command! -nargs=+ -complete=custom,SpaceVim#commands#complete_plugin SPReinstall call SpaceVim#commands#reinstall_plugin(<f-args>) | |
"" | |
" Command for install plugins. | |
1 0.000003 command! -nargs=* SPInstall call SpaceVim#commands#install_plugin(<f-args>) | |
1 0.000002 command! -nargs=* SPClean call SpaceVim#commands#clean_plugin() | |
1 0.000002 command! -nargs=0 Report call SpaceVim#issue#new() | |
" Convenient command to see the difference between the current buffer and the | |
" file it was loaded from, thus the changes you made. Only define it when not | |
" defined already. | |
1 0.000004 command! DiffOrig vert new | set bt=nofile | r # | 0d_ | diffthis | wincmd p | diffthis | |
1 0.000003 command! -nargs=* -complete=custom,SpaceVim#plugins#complete_plugs Plugin :call SpaceVim#plugins#Plugin(<f-args>) | |
"command for open project | |
1 0.000004 command! -nargs=+ -complete=custom,SpaceVim#plugins#projectmanager#complete_project OpenProject :call SpaceVim#plugins#projectmanager#OpenProject(<f-args>) | |
1 0.000003 command! -nargs=* -complete=custom,SpaceVim#plugins#pmd#complete PMD :call SpaceVim#plugins#pmd#run(<f-args>) | |
"" | |
" Switch to alternate file based on {type}. | |
1 0.000003 command! -nargs=? -complete=custom,SpaceVim#plugins#a#complete -bang A :call SpaceVim#plugins#a#alt(<bang>0,<f-args>) | |
FUNCTION SpaceVim#api#vim#signatures#get() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/vim/signatures.vim line 66 | |
Called 1 time | |
Total time: 0.000007 | |
Self time: 0.000007 | |
count total (s) self (s) | |
1 0.000007 return deepcopy(s:self) | |
FUNCTION SpaceVim#default#keyBindings() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/default.vim line 156 | |
Called 1 time | |
Total time: 0.043209 | |
Self time: 0.000326 | |
count total (s) self (s) | |
1 0.000001 if g:spacevim_enable_insert_leader | |
1 0.000009 inoremap <silent> <Leader><Tab> <C-r>=MyLeaderTabfunc()<CR> | |
1 0.000000 endif | |
" yank and paste | |
1 0.042257 0.000032 if has('unnamedplus') | |
1 0.000008 xnoremap <Leader>y "+y | |
1 0.000002 nnoremap <Leader>p "+p | |
1 0.000002 let g:_spacevim_mappings.p = ['normal! "+p', 'paste after here'] | |
1 0.000002 nnoremap <Leader>P "+P | |
1 0.000001 let g:_spacevim_mappings.P = ['normal! "+P', 'paste before here'] | |
1 0.000002 xnoremap <Leader>p "+p | |
1 0.000002 xnoremap <Leader>P "+P | |
else | |
xnoremap <Leader>y "*y | |
nnoremap <Leader>p "*p | |
let g:_spacevim_mappings.p = ['normal! "*p', 'paste after here'] | |
nnoremap <Leader>P "*P | |
let g:_spacevim_mappings.P = ['normal! "*P', 'paste before here'] | |
xnoremap <Leader>p "*p | |
xnoremap <Leader>P "*P | |
1 0.000000 endif | |
1 0.000005 xnoremap <silent><Leader>Y :<C-u>call SpaceVim#plugins#pastebin#paste()<CR> | |
" call SpaceVim#mapping#guide#register_displayname(':call SpaceVim#plugins#pastebin#paste()<CR>', 'copy to pastebin') | |
" quickfix list movement | |
1 0.000002 let g:_spacevim_mappings.q = {'name' : '+Quickfix movement'} | |
1 0.000369 0.000038 call SpaceVim#mapping#def('nnoremap', '<Leader>qn', ':cnext<CR>', 'Jump to next quickfix list position', 'cnext', 'Next quickfix list') | |
1 0.000062 0.000006 call SpaceVim#mapping#def('nnoremap', '<Leader>qp', ':cprev<CR>', 'Jump to previous quickfix list position', 'cprev', 'Previous quickfix list') | |
1 0.000058 0.000006 call SpaceVim#mapping#def('nnoremap', '<Leader>ql', ':copen<CR>', 'Open quickfix list window', 'copen', 'Open quickfix list window') | |
1 0.000053 0.000006 call SpaceVim#mapping#def('nnoremap <silent>', '<Leader>qr', 'q', 'Toggle recording', '', 'Toggle recording mode') | |
1 0.000061 0.000005 call SpaceVim#mapping#def('nnoremap <silent>', '<Leader>qc', ':call setqflist([])<CR>', 'Clear quickfix list', '', 'Clear quickfix') | |
" Use Ctrl+* to jump between windows | |
1 0.000003 nnoremap <silent><C-Right> :<C-u>wincmd l<CR> | |
1 0.000002 nnoremap <silent><C-Left> :<C-u>wincmd h<CR> | |
1 0.000002 nnoremap <silent><C-Up> :<C-u>wincmd k<CR> | |
1 0.000002 nnoremap <silent><C-Down> :<C-u>wincmd j<CR> | |
"]<End> or ]<Home> move current line to the end or the begin of current buffer | |
1 0.000002 nnoremap <silent>]<End> ddGp`` | |
1 0.000002 nnoremap <silent>]<Home> ddggP`` | |
1 0.000002 vnoremap <silent>]<End> dGp`` | |
1 0.000002 vnoremap <silent>]<Home> dggP`` | |
"Ctrl+Shift+Up/Down to move up and down | |
1 0.000002 nnoremap <silent><C-S-Down> :m .+1<CR>== | |
1 0.000002 nnoremap <silent><C-S-Up> :m .-2<CR>== | |
1 0.000003 inoremap <silent><C-S-Down> <Esc>:m .+1<CR>==gi | |
1 0.000002 inoremap <silent><C-S-Up> <Esc>:m .-2<CR>==gi | |
1 0.000002 vnoremap <silent><C-S-Down> :m '>+1<CR>gv=gv | |
1 0.000002 vnoremap <silent><C-S-Up> :m '<-2<CR>gv=gv | |
" Start new line | |
1 0.000002 inoremap <S-Return> <C-o>o | |
" Improve scroll, credits: https://github.com/Shougo | |
1 0.000006 nnoremap <expr> zz (winline() == (winheight(0)+1) / 2) ? 'zt' : (winline() == &scrolloff + 1) ? 'zb' : 'zz' | |
1 0.000005 noremap <expr> <C-f> max([winheight(0) - 2, 1]) ."\<C-d>".(line('w$') >= line('$') ? "L" : "H") | |
1 0.000004 noremap <expr> <C-b> max([winheight(0) - 2, 1]) ."\<C-u>".(line('w0') <= 1 ? "H" : "L") | |
1 0.000015 noremap <expr> <C-e> (line("w$") >= line('$') ? "j" : "3\<C-e>") | |
1 0.000021 noremap <expr> <C-y> (line("w0") <= 1 ? "k" : "3\<C-y>") | |
" Select blocks after indenting | |
1 0.000021 xnoremap < <gv | |
1 0.000003 xnoremap > >gv| | |
" Use tab for indenting in visual mode | |
1 0.000002 xnoremap <Tab> >gv| | |
1 0.000002 xnoremap <S-Tab> <gv | |
1 0.000002 nnoremap > >>_ | |
1 0.000002 nnoremap < <<_ | |
" smart up and down | |
1 0.000002 nnoremap <silent><Down> gj | |
1 0.000002 nnoremap <silent><Up> gk | |
" Fast saving | |
1 0.000002 nnoremap <C-s> :<C-u>w<CR> | |
1 0.000002 vnoremap <C-s> :<C-u>w<CR> | |
1 0.000002 cnoremap <C-s> <C-u>w<CR> | |
" Tabs | |
1 0.000003 nnoremap <silent> g0 :<C-u>tabfirst<CR> | |
1 0.000002 nnoremap <silent> g$ :<C-u>tablast<CR> | |
1 0.000003 nnoremap <silent> gr :<C-u>call <SID>switch_tabs()<CR> | |
" Remove spaces at the end of lines | |
1 0.000004 nnoremap <silent> ,<Space> :<C-u>silent! keeppatterns %substitute/\s\+$//e<CR> | |
" C-r: Easier search and replace | |
1 0.000005 xnoremap <C-r> :<C-u>call <SID>VSetSearch()<CR>:,$s/<C-R>=@/<CR>//gc<left><left><left> | |
1 0.000002 function! s:VSetSearch() abort | |
let temp = @s | |
norm! gv"sy | |
let @/ = '\V' . substitute(escape(@s, '/\'), '\n', '\\n', 'g') | |
let @s = temp | |
endfunction | |
"irssi like hot key | |
1 0.000003 nnoremap <silent><M-1> :<C-u>call <SID>tobur(1)<CR> | |
1 0.000003 nnoremap <silent><M-2> :<C-u>call <SID>tobur(2)<CR> | |
1 0.000002 nnoremap <silent><M-3> :<C-u>call <SID>tobur(3)<CR> | |
1 0.000003 nnoremap <silent><M-4> :<C-u>call <SID>tobur(4)<CR> | |
1 0.000003 nnoremap <silent><M-5> :<C-u>call <SID>tobur(5)<CR> | |
1 0.000004 nnoremap <silent><M-Right> :<C-U>call <SID>tobur("next")<CR> | |
1 0.000003 nnoremap <silent><M-Left> :<C-U>call <SID>tobur("prev")<CR> | |
1 0.000124 0.000008 call SpaceVim#mapping#def('nnoremap <silent>','g=',':call SpaceVim#mapping#format()<cr>','format current buffer','call SpaceVim#mapping#format()') | |
FUNCTION vimfiler#init#_get_datemark() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/init.vim line 678 | |
Called 90 times | |
Total time: 0.000347 | |
Self time: 0.000347 | |
count total (s) self (s) | |
90 0.000123 let time = localtime() - a:file.vimfiler__filetime | |
90 0.000044 if time < 86400 | |
" 60 * 60 * 24 | |
30 0.000012 return '!' | |
60 0.000030 elseif time < 604800 | |
" 60 * 60 * 24 * 7 | |
return '#' | |
60 0.000015 else | |
60 0.000024 return '~' | |
endif | |
FUNCTION vimfiler#util#substitute_path_separator() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/util.vim line 83 | |
Called 10 times | |
Total time: 0.000262 | |
Self time: 0.000094 | |
count total (s) self (s) | |
10 0.000259 0.000091 return call(s:get_prelude().substitute_path_separator, a:000) | |
FUNCTION vimfiler#initialize_context() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler.vim line 150 | |
Called 2 times | |
Total time: 0.000602 | |
Self time: 0.000009 | |
count total (s) self (s) | |
2 0.000602 0.000008 return vimfiler#init#_context(a:context) | |
FUNCTION provider#python3#Prog() | |
Defined: /usr/share/nvim/runtime/autoload/provider/python3.vim line 13 | |
Called 1 time | |
Total time: 0.000001 | |
Self time: 0.000001 | |
count total (s) self (s) | |
1 0.000001 return s:prog | |
FUNCTION vital#_unite#Data#String#import() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/vital/_unite/Data/String.vim line 5 | |
Called 1 time | |
Total time: 0.000081 | |
Self time: 0.000081 | |
count total (s) self (s) | |
1 0.000081 return map({'starts_with': '', 'split3': '', 'replace_first': '', 'chop': '', 'unescape': '', 'split_posix_text': '', 'replace': '', 'scan': '', 'strwidthpart': '', 'common_head': '', 'reverse': '', 'escape_pattern': '', 'trim_end': '', '_vital_depends': '', 'wrap': '', 'join_posix_lines': '', 'contains_multibyte': '', 'truncate_skipping': '', 'split_leftright': '', 'ends_with': '', 'nsplit': '', 'strwidthpart_reverse': '', 'unescape_pattern': '', 'levenshtein_distance': '', 'trim_start': '', 'justify_equal_spacing': '', 'nr2hex': '', 'iconv': '', 'pad_left': '', 'nr2enc_char': '', 'lines': '', 'repair_posix_text': '', 'nr2byte': '', 'trim': '', 'diffidx': '', 'truncate': '', 'split_by_displaywidth': '', '_vital_created': '', 'padding_by_displaywidth': '', 'hash': '', 'chomp': '', 'pad_between_letters': '', 'dstring': '', 'pad_both_sides': '', 'substitute_last': '', 'pad_right': '', 'remove_ansi_sequences': '', '_vital_loaded': ''}, 'function("s:" . v:key)') | |
FUNCTION unite#util#has_lua() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/util.vim line 144 | |
Called 2 times | |
Total time: 0.000014 | |
Self time: 0.000014 | |
count total (s) self (s) | |
" Note: Disabled if_lua feature if less than 7.3.885. | |
" Because if_lua has double free problem. | |
" Note: Cannot use lua interface in Windows environment if encoding is not utf-8. | |
" https://github.com/Shougo/unite.vim/issues/466 | |
2 0.000010 return has('lua') && (v:version > 703 || v:version == 703 && has('patch885')) && (!unite#util#is_windows() || &encoding ==# 'utf-8' || &encoding ==# 'latin1') | |
FUNCTION unite#util#is_windows() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/util.vim line 85 | |
Called 2 times | |
Total time: 0.000767 | |
Self time: 0.000021 | |
count total (s) self (s) | |
2 0.000766 0.000020 return call(s:get_prelude().is_windows, a:000) | |
FUNCTION <SNR>218_get_source_candidates() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/candidates.vim line 313 | |
Called 2 times | |
Total time: 0.010481 | |
Self time: 0.000153 | |
count total (s) self (s) | |
2 0.000020 0.000009 let custom_source = get(unite#custom#get().sources, a:source.name, {}) | |
2 0.000012 let context_ignore = { 'path' : a:source.unite__context.path, 'ignore_pattern' : get(custom_source, 'ignore_pattern', a:source.ignore_pattern), 'ignore_globs' : get(custom_source, 'ignore_globs', a:source.ignore_globs), 'white_globs' : get(custom_source, 'white_globs', a:source.white_globs), } | |
2 0.000006 let context = extend(a:source.unite__context, context_ignore) | |
2 0.000002 let funcname = 's:get_source_candidates()' | |
2 0.000001 try | |
2 0.000001 if context.unite__is_vimfiler | |
2 0.000001 if context.vimfiler__is_dummy | |
let funcname = 'vimfiler_dummy_candidates' | |
return has_key(a:source, 'vimfiler_dummy_candidates') ? copy(a:source.vimfiler_dummy_candidates( a:source.args, a:source.unite__context)) : [] | |
2 0.000001 else | |
2 0.000002 let funcname = 'vimfiler_gather_candidates' | |
2 0.010350 0.000034 return has_key(a:source, 'vimfiler_gather_candidates') ? copy(a:source.vimfiler_gather_candidates( a:source.args, a:source.unite__context)) : [] | |
endif | |
endif | |
" Recaching. | |
if (context.is_redraw || a:source.unite__is_invalidate) && (!has_key(a:source, 'async_gather_candidates') || has_key(a:source, 'gather_candidates')) | |
" Note: If the source has not gather_candidates, the recaching is | |
" disabled. | |
let a:source.unite__cached_candidates = [] | |
let funcname = 'gather_candidates' | |
if has_key(a:source, 'gather_candidates') | |
let a:source.unite__cached_candidates += unite#helper#ignore_candidates(copy( a:source.gather_candidates(a:source.args, a:source.unite__context)), context_ignore) | |
endif | |
endif | |
if has_key(a:source, 'change_candidates') && (context.is_redraw || context.is_changed || a:source.unite__is_invalidate) | |
" Recaching. | |
let funcname = 'change_candidates' | |
let a:source.unite__cached_change_candidates = unite#helper#ignore_candidates(a:source.change_candidates( a:source.args, a:source.unite__context), context_ignore) | |
endif | |
if a:source.unite__context.is_async | |
" Get asynchronous candidates. | |
let funcname = 'async_gather_candidates' | |
while 1 | |
let a:source.unite__cached_candidates += unite#helper#ignore_candidates( a:source.async_gather_candidates(a:source.args, context), context_ignore) | |
if (!context.sync && context.unite__is_interactive) || !a:source.unite__context.is_async | |
break | |
endif | |
endwhile | |
endif | |
catch | |
call unite#print_error(v:throwpoint) | |
call unite#print_error(v:exception) | |
call unite#print_error( 'Error occurred in ' . funcname . '!') | |
call unite#print_error( 'Source name is ' . a:source.name) | |
return [] | |
2 0.000001 endtry | |
return a:source.unite__cached_candidates + a:source.unite__cached_change_candidates | |
FUNCTION SpaceVim#custom#SPC() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/custom.vim line 79 | |
Called 1 time | |
Total time: 0.000003 | |
Self time: 0.000003 | |
count total (s) self (s) | |
1 0.000003 call add(g:_spacevim_mappings_space_custom,[a:m, a:keys, a:cmd, a:desc, a:is_cmd]) | |
FUNCTION unite#filters#sorter_default#use() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/filters/sorter_default.vim line 36 | |
Called 1 time | |
Total time: 0.000004 | |
Self time: 0.000004 | |
count total (s) self (s) | |
1 0.000003 let s:default_sorters = type(a:sorters) == type([]) ? a:sorters : [a:sorters] | |
FUNCTION vimfiler#helper#_call_filters() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/helper.vim line 230 | |
Called 5 times | |
Total time: 0.001444 | |
Self time: 0.000048 | |
count total (s) self (s) | |
5 0.000005 let files = a:files | |
10 0.000010 for filter in b:vimfiler.filters | |
5 0.001414 0.000019 let files = filter.filter(files, a:context) | |
10 0.000003 endfor | |
5 0.000003 return files | |
FUNCTION <SNR>193__vital_created() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vital/_vimfiler/Vim/Guard.vim line 34 | |
Called 1 time | |
Total time: 0.000013 | |
Self time: 0.000013 | |
count total (s) self (s) | |
" define constant variables | |
1 0.000001 if !exists('s:const') | |
1 0.000001 let s:const = {} | |
1 0.000003 let s:const.is_local_variable_supported = v:version > 703 || (v:version == 703 && has('patch560')) | |
" NOTE: | |
" The third argument is available from 7.4.242 but it had bug and that | |
" bug was fixed from 7.4.513 | |
1 0.000003 let s:const.is_third_argument_of_getreg_supported = has('patch-7.4.513') | |
1 0.000001 lockvar s:const | |
1 0.000000 endif | |
1 0.000003 call extend(a:module, s:const) | |
FUNCTION dein#begin() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein.vim line 97 | |
Called 1 time | |
Total time: 0.000944 | |
Self time: 0.000031 | |
count total (s) self (s) | |
1 0.000943 0.000031 return dein#util#_begin(a:path, (empty(a:000) ? [] : a:1)) | |
FUNCTION <SNR>123_init_delim_regexes_generator() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup/loader.vim line 561 | |
Called 4 times | |
Total time: 0.000790 | |
Self time: 0.000654 | |
count total (s) self (s) | |
4 0.000007 let l:list = b:matchup_delim_lists[a:list_name].regex_capture | |
" build the full regex strings: order matters here | |
4 0.000003 let l:regexes = {} | |
28 0.000036 for [l:key, l:sidelist] in items(s:sidedict) | |
24 0.000020 let l:relist = [] | |
60 0.000029 for l:set in l:list | |
96 0.000046 for l:side in l:sidelist | |
60 0.000057 if strlen(l:set[l:side]) | |
42 0.000049 call add(l:relist, l:set[l:side]) | |
60 0.000015 endif | |
96 0.000022 endfor | |
60 0.000013 endfor | |
24 0.000289 0.000152 let l:regexes[l:key] = matchup#loader#remove_capture_groups( '\%(' . join(l:relist, '\|') . '\)') | |
28 0.000010 endfor | |
4 0.000003 return l:regexes | |
FUNCTION <SNR>33__function() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/core.vim line 488 | |
Called 15 times | |
Total time: 0.000037 | |
Self time: 0.000037 | |
count total (s) self (s) | |
15 0.000034 return function(a:fstr) | |
FUNCTION <SNR>164_GetNextAutocmdGroup() | |
Defined: /usr/share/nvim/runtime/autoload/remote/define.vim line 217 | |
Called 1 time | |
Total time: 0.000010 | |
Self time: 0.000010 | |
count total (s) self (s) | |
1 0.000001 let gid = s:next_gid | |
1 0.000001 let s:next_gid += 1 | |
1 0.000002 let group_name = 'RPC_DEFINE_AUTOCMD_GROUP_'.gid | |
" Ensure the group is defined | |
1 0.000004 exe 'augroup '.group_name.' | augroup END' | |
1 0.000001 return group_name | |
FUNCTION unite#sources#buffer#variables#append() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/sources/buffer/variables.vim line 12 | |
Called 1 time | |
Total time: 0.000005 | |
Self time: 0.000005 | |
count total (s) self (s) | |
" Append the current buffer. | |
1 0.000004 let s:buffer_list[a:bufnr] = { 'action__buffer_nr' : a:bufnr, 'source__time' : localtime(), } | |
FUNCTION SpaceVim#mapping#guide#theme#gruvbox#palette() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/mapping/guide/theme/gruvbox.vim line 9 | |
Called 8 times | |
Total time: 0.000051 | |
Self time: 0.000051 | |
count total (s) self (s) | |
8 0.000048 return [ ['#282828', '#a89984', 246, 235], ['#a89984', '#504945', 239, 246], ['#a89984', '#3c3836', 237, 246], ['#665c54', 241], ['#282828', '#83a598', 235, 109], ['#282828', '#fe8019', 235, 208], ['#282828', '#8ec07c', 235, 108], ['#282828', '#689d6a', 235, 72], ['#282828', '#8f3f71', 235, 132], ] | |
FUNCTION <SNR>26_add_buffer_head() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/edit.vim line 675 | |
Called 3 times | |
Total time: 0.000030 | |
Self time: 0.000030 | |
count total (s) self (s) | |
3 0.000017 if has_key(s:ft_head_tp, &ft) && getline(1) ==# '' && line('$') == 1 | |
let head = s:ft_head_tp[&ft] | |
call setline(1, map(head, 's:parse(v:val)')) | |
call cursor(len(head), 0) | |
3 0.000001 endif | |
FUNCTION <SNR>181_show_bookmarks() | |
Defined: ~/.SpaceVim/bundle/vim-startify/autoload/startify.vim line 734 | |
Called 1 time | |
Total time: 0.000003 | |
Self time: 0.000003 | |
count total (s) self (s) | |
1 0.000002 if !exists('g:startify_bookmarks') || empty(g:startify_bookmarks) | |
1 0.000000 return | |
endif | |
if exists('s:last_message') | |
call s:print_section_header() | |
endif | |
for bookmark in g:startify_bookmarks | |
if type(bookmark) == type({}) | |
let [index, path] = items(bookmark)[0] | |
else " string | |
let [index, path] = [s:get_index_as_string(), bookmark] | |
endif | |
let entry_path = '' | |
if s:tf | |
let entry_path = s:transform(fnamemodify(resolve(expand(path)), ':p')) | |
endif | |
if empty(entry_path) | |
let entry_path = path | |
endif | |
call append('$', s:padding_left .'['. index .']'. repeat(' ', (3 - strlen(index))) . entry_path) | |
if has('win32') | |
let path = substitute(path, '\[', '\[[]', 'g') | |
endif | |
call s:register(line('$'), index, 'file', 'edit', fnameescape(expand(path))) | |
unlet bookmark " avoid type mismatch for heterogeneous lists | |
endfor | |
call append('$', '') | |
FUNCTION <SNR>121_init_default_mappings() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup.vim line 163 | |
Called 1 time | |
Total time: 0.001624 | |
Self time: 0.000084 | |
count total (s) self (s) | |
1 0.000003 if !get(g:,'matchup_mappings_enabled', 1) | return | endif | |
1 0.000001 function! s:map(mode, lhs, rhs, ...) | |
if !hasmapto(a:rhs, a:mode) && ((a:0 > 0) || (maparg(a:lhs, a:mode) ==# '')) | |
silent execute a:mode . 'map <silent> ' a:lhs a:rhs | |
endif | |
endfunction | |
1 0.000001 if s:old_style_ops | |
1 0.001076 0.000005 call s:init_oldstyle_ops() | |
1 0.000000 endif | |
" these won't conflict since matchit should not be loaded at this point | |
1 0.000002 if get(g:, 'matchup_motion_enabled', 0) | |
1 0.000040 0.000004 call s:map('n', '%', '<plug>(matchup-%)' ) | |
1 0.000040 0.000004 call s:map('n', 'g%', '<plug>(matchup-g%)') | |
1 0.000034 0.000004 call s:map('x', '%', '<plug>(matchup-%)' ) | |
1 0.000033 0.000003 call s:map('x', 'g%', '<plug>(matchup-g%)') | |
1 0.000039 0.000003 call s:map('n', ']%', '<plug>(matchup-]%)') | |
1 0.000037 0.000003 call s:map('n', '[%', '<plug>(matchup-[%)') | |
1 0.000033 0.000003 call s:map('x', ']%', '<plug>(matchup-]%)') | |
1 0.000050 0.000004 call s:map('x', '[%', '<plug>(matchup-[%)') | |
1 0.000043 0.000006 call s:map('n', 'z%', '<plug>(matchup-z%)') | |
1 0.000033 0.000003 call s:map('x', 'z%', '<plug>(matchup-z%)') | |
1 0.000001 if !s:old_style_ops | |
call s:map('o', '%', '<plug>(matchup-%)') | |
call s:map('o', 'g%', '<plug>(matchup-g%)') | |
call s:map('o', ']%', '<plug>(matchup-]%)') | |
call s:map('o', '[%', '<plug>(matchup-[%)') | |
call s:map('o', 'z%', '<plug>(matchup-z%)') | |
1 0.000000 endif | |
1 0.000033 0.000003 call s:map('i', '<c-g>%', '<plug>(matchup-c_g%)') | |
1 0.000000 endif | |
1 0.000002 if get(g:, 'matchup_text_obj_enabled', 0) | |
1 0.000032 0.000003 call s:map('x', 'i%', '<plug>(matchup-i%)') | |
1 0.000031 0.000003 call s:map('x', 'a%', '<plug>(matchup-a%)') | |
1 0.000001 if !s:old_style_ops | |
call s:map('o', 'i%', '<plug>(matchup-i%)') | |
call s:map('o', 'a%', '<plug>(matchup-a%)') | |
1 0.000000 endif | |
1 0.000000 endif | |
1 0.000001 if get(g:, 'matchup_mouse_enabled', 1) | |
1 0.000041 0.000004 call s:map('n', '<2-LeftMouse>', '<plug>(matchup-double-click)') | |
1 0.000000 endif | |
1 0.000001 if get(g:, 'matchup_surround_enabled', 0) | |
call s:map('n', 'ds%', '<plug>(matchup-ds%)') | |
call s:map('n', 'cs%', '<plug>(matchup-cs%)') | |
1 0.000000 endif | |
FUNCTION SpaceVim#api#file#get() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/file.vim line 308 | |
Called 1 time | |
Total time: 0.000004 | |
Self time: 0.000004 | |
count total (s) self (s) | |
1 0.000004 return deepcopy(s:file) | |
FUNCTION <SNR>111_is_non_ui_property_name() | |
Defined: ~/.SpaceVim/bundle/vim-textobj-user/autoload/textobj/user.vim line 777 | |
Called 32 times | |
Total time: 0.000063 | |
Self time: 0.000063 | |
count total (s) self (s) | |
32 0.000057 return 0 <= index(s:non_ui_property_names, a:name) | |
FUNCTION matchup#perf#timeout_start() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup/perf.vim line 84 | |
Called 3 times | |
Total time: 0.000014 | |
Self time: 0.000014 | |
count total (s) self (s) | |
3 0.000003 let s:timeout = a:timeout | |
3 0.000003 let s:timeout_enabled = (a:timeout == 0) ? 0 : 1 | |
3 0.000006 let s:timeout_pulse_time = reltime() | |
FUNCTION <SNR>198__vital_loaded() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vital/_vimfiler/System/Cache/Deprecated.vim line 22 | |
Called 1 time | |
Total time: 0.000731 | |
Self time: 0.000010 | |
count total (s) self (s) | |
1 0.000001 let s:V = a:V | |
1 0.000730 0.000009 let s:S = s:V.import('Data.String') | |
FUNCTION <SNR>199_escape_pattern() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vital/_vimfiler/Data/String.vim line 555 | |
Called 36 times | |
Total time: 0.000059 | |
Self time: 0.000059 | |
count total (s) self (s) | |
" escape characters for no-magic | |
36 0.000045 return escape(a:str, '^$~.*[]\') | |
FUNCTION <SNR>36_fileformat() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/core/statusline.vim line 137 | |
Called 1 time | |
Total time: 0.002001 | |
Self time: 0.000019 | |
count total (s) self (s) | |
1 0.000001 if g:spacevim_statusline_unicode_symbols == 1 | |
1 0.001995 0.000013 let g:_spacevim_statusline_fileformat = s:SYSTEM.fileformat() | |
else | |
let g:_spacevim_statusline_fileformat = &ff | |
1 0.000001 endif | |
1 0.000002 return '%{" " . g:_spacevim_statusline_fileformat . " | " . (&fenc!=""?&fenc:&enc) . " "}' | |
FUNCTION unite#init#_sources() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/init.vim line 637 | |
Called 4 times | |
Total time: 0.004868 | |
Self time: 0.001805 | |
count total (s) self (s) | |
" args: source_names or source_definition | |
" Initialize load. | |
4 0.000009 if type(get(a:000, 0, [])) != type({}) | |
4 0.000011 let source_names = type(get(a:000, 0, [])) == type([]) ? get(a:000, 0, []) : [] | |
4 0.000006 let head_name = get(a:000, 1, '') | |
4 0.000005 if empty(source_names) && head_name != '' | |
let source_names = [head_name] | |
4 0.000001 endif | |
4 0.002860 0.000024 call unite#init#_default_scripts('sources', source_names) | |
4 0.000001 endif | |
4 0.000021 let default_source = { 'is_volatile' : 0, 'is_listed' : 1, 'is_forced' : 0, 'action_table' : {}, 'default_action' : {}, 'default_kind' : 'common', 'alias_table' : {}, 'parents' : [], 'description' : '', 'syntax' : '', } | |
4 0.000003 let sources = {} | |
4 0.000043 0.000025 let sources = extend(sources, unite#variables#static().sources) | |
4 0.000036 0.000017 let sources = extend(sources, unite#variables#dynamic().sources) | |
4 0.000009 if type(get(a:000, 0, [])) == type({}) | |
let sources[a:1.name] = a:1 | |
4 0.000001 endif | |
4 0.000032 0.000012 let custom = unite#custom#get() | |
24 0.000023 for source in type(sources) == type([]) ? sources : values(sources) | |
20 0.000006 try | |
20 0.000023 if !get(source, 'is_initialized', 0) | |
5 0.000004 let source.is_initialized = 1 | |
5 0.000005 if !has_key(source, 'hooks') | |
2 0.000002 let source.hooks = {} | |
3 0.000003 elseif has_key(source.hooks, 'on_pre_init') | |
" Call pre_init hook. | |
" Set dummy value. | |
let source.args = [] | |
let source.unite__context = { 'source' : source } | |
" Overwrite source values. | |
call unite#helper#call_hook([source], 'on_pre_init') | |
5 0.000001 endif | |
5 0.000017 let source = extend(source, default_source, 'keep') | |
5 0.000004 if source.syntax == '' | |
" Set default syntax. | |
5 0.000052 let source.syntax = 'uniteSource__' . substitute(substitute(source.name, '\%(^\|[^[:alnum:]]\+\)\zs[[:alnum:]]', '\u\0', 'g'), '[^[:alnum:]]', '', 'g') | |
5 0.000002 endif | |
5 0.000005 if !empty(source.action_table) | |
let action = values(source.action_table)[0] | |
" Check if '*' action_table? | |
if has_key(action, 'func') && type(action.func) == type(function('type')) | |
" Syntax sugar. | |
let source.action_table = { '*' : source.action_table } | |
endif | |
5 0.000001 endif | |
5 0.000006 if type(source.default_action) == type('') | |
" Syntax sugar. | |
let source.default_action = { '*' : source.default_action } | |
5 0.000001 endif | |
5 0.000004 if !empty(source.alias_table) | |
" Check if '*' alias_table? | |
if type(values(source.alias_table)[0]) == type('') | |
" Syntax sugar. | |
let source.alias_table = { '*' : source.alias_table } | |
endif | |
5 0.000001 endif | |
5 0.000005 if source.is_volatile && !has_key(source, 'change_candidates') | |
let source.change_candidates = source.gather_candidates | |
call remove(source, 'gather_candidates') | |
5 0.000001 endif | |
20 0.000005 endif | |
" For custom sources. | |
20 0.000034 let custom_source = get(custom.sources, source.name, {}) | |
" Set filters. | |
20 0.000021 if has_key(custom_source, 'filters') | |
call unite#print_error( 'Custom filters feature is removed.'. ' You must use matchers/sorters/converters feature.') | |
20 0.000005 endif | |
20 0.000144 0.000104 let source.matchers = unite#util#convert2list( get(custom_source, 'matchers', get(source, 'matchers', 'matcher_default'))) | |
20 0.000126 0.000092 let source.sorters = unite#util#convert2list( get(custom_source, 'sorters', get(source, 'sorters', 'sorter_default'))) | |
20 0.000124 0.000092 let source.converters = unite#util#convert2list( get(custom_source, 'converters', get(source, 'converters', 'converter_default'))) | |
20 0.000041 let source.max_candidates = get(custom_source, 'max_candidates', get(source, 'max_candidates', 0)) | |
20 0.000041 let source.ignore_pattern = get(custom_source, 'ignore_pattern', get(source, 'ignore_pattern', '')) | |
20 0.000123 0.000091 let source.ignore_globs = unite#util#convert2list( get(custom_source, 'ignore_globs', get(source, 'ignore_globs', []))) | |
20 0.000118 0.000087 let source.white_globs = unite#util#convert2list( get(custom_source, 'white_globs', get(source, 'white_globs', []))) | |
20 0.000039 let source.syntax = get(custom_source, 'syntax', get(source, 'syntax', '')) | |
20 0.000044 let source.required_pattern_length = get(custom_source, 'required_pattern_length', get(source, 'required_pattern_length', 0)) | |
20 0.000016 let source.unite__len_candidates = 0 | |
20 0.000016 let source.unite__orig_len_candidates = 0 | |
20 0.000016 let source.unite__candidates = [] | |
catch | |
call unite#print_error(v:throwpoint) | |
call unite#print_error(v:exception) | |
call unite#print_error( 'Error occurred in source initialization!') | |
call unite#print_error( 'Source name is ' . source.name) | |
20 0.000008 endtry | |
24 0.000013 endfor | |
4 0.000003 return sources | |
FUNCTION <SNR>140_Map() | |
Defined: ~/.SpaceVim/bundle/delimitMate/plugin/delimitMate.vim line 157 | |
Called 6 times | |
Total time: 0.005338 | |
Self time: 0.000349 | |
count total (s) self (s) | |
" Set mappings: | |
6 0.000003 try | |
6 0.000007 let save_keymap = &keymap | |
6 0.000006 let save_iminsert = &iminsert | |
6 0.000005 let save_imsearch = &imsearch | |
6 0.000064 let save_cpo = &cpo | |
6 0.000028 set keymap= | |
6 0.000018 set cpo&vim | |
6 0.000029 0.000025 silent! doautocmd <nomodeline> User delimitMate_map | |
6 0.000117 0.000021 if s:get('autoclose') | |
6 0.003036 0.000027 call s:AutoClose() | |
else | |
call s:NoAutoClose() | |
6 0.000002 endif | |
6 0.001906 0.000025 call s:ExtraMappings() | |
6 0.000004 finally | |
6 0.000037 let &cpo = save_cpo | |
6 0.000017 let &keymap = save_keymap | |
6 0.000019 let &iminsert = save_iminsert | |
6 0.000009 let &imsearch = save_imsearch | |
6 0.000004 endtry | |
6 0.000007 let b:delimitMate_enabled = 1 | |
FUNCTION SpaceVim#layers#core#banner#config() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/core/banner.vim line 10 | |
Called 1 time | |
Total time: 0.000182 | |
Self time: 0.000182 | |
count total (s) self (s) | |
1 0.000001 let vr = g:spacevim_version | |
1 0.000179 let g:_spacevim_welcome_banners = [ [ ' ', ' ', ' /###### /## /##/## ', ' /##__ ## | ## | #|__/ ', ' | ## \__/ /###### /###### /####### /######| ## | ##/##/######/#### ', ' | ###### /##__ ##|____ ##/##_____//##__ #| ## / ##| #| ##_ ##_ ## ', ' \____ #| ## \ ## /######| ## | ########\ ## ##/| #| ## \ ## \ ## ', ' /## \ #| ## | ##/##__ #| ## | ##_____/ \ ###/ | #| ## | ## | ## ', ' | ######| #######| ######| ######| ####### \ #/ | #| ## | ## | ## ', ' \______/| ##____/ \_______/\_______/\_______/ \_/ |__|__/ |__/ |__/ ', ' | ## ', ' | ## ', ' |__/ ', ' version : '.vr.' by : spacevim.org ', ' ', ], [ ' $$$$$$\ $$\ $$\$$\ ', ' $$ __$$\ $$ | $$ \__| ', ' $$ / \__|$$$$$$\ $$$$$$\ $$$$$$$\ $$$$$$\$$ | $$ $$\$$$$$$\$$$$\ ', ' \$$$$$$\ $$ __$$\ \____$$\$$ _____$$ __$$\$$\ $$ $$ $$ _$$ _$$\ ', ' \____$$\$$ / $$ |$$$$$$$ $$ / $$$$$$$$ \$$\$$ /$$ $$ / $$ / $$ | ', ' $$\ $$ $$ | $$ $$ __$$ $$ | $$ ____|\$$$ / $$ $$ | $$ | $$ | ', ' \$$$$$$ $$$$$$$ \$$$$$$$ \$$$$$$$\\$$$$$$$\ \$ / $$ $$ | $$ | $$ | ', ' \______/$$ ____/ \_______|\_______|\_______| \_/ \__\__| \__| \__| ', ' $$ | ', ' $$ | ', ' \__| ', ' version : '.vr.' by : spacevim.org ', ' ', ], [ ' ┏━━━┓ ', ' ┃┏━┓┃ Welcome to ', ' ┃┗━━┓╋╋╋╋┏━━┓╋╋╋╋┏━━┓╋╋╋╋┏━━┓╋╋╋╋┏━━┓╋╋╋╋┏┓┏┓╋╋╋╋┏━┓╋╋╋╋┏┓┏┓ ', ' ┗━━┓┃┏━━┓┃┏┓┃┏━━┓┃┏┓┃┏━━┓┃┏━┛┏━━┓┃┃━┫┏━━┓┃┃┃┃┏━━┓┃ ┃┏━━┓┃┗┛┃ ', ' ┃┗━┛┃┗━━┛┃┗┛┃┗━━┛┃┏┓┃┗━━┛┃┗━┓┗━━┛┃┃━┫┗━━┛┃┗┛┃┗━━┛┃ ┃┗━━┛┃┃┃┃ ', ' ┗━━━┛╋╋╋╋┃┏━┛╋╋╋╋┗┛┗┛╋╋╋╋┗━━┛╋╋╋╋┗━━┛╋╋╋╋┗━━┛╋╋╋╋┗━┛╋╋╋╋┗┻┻┛ ', ' ╋╋╋╋╋╋╋╋╋┃┃ ', ' ╋╋╋╋╋╋╋╋╋┗┛ ', ' version : '.vr.' by : spacevim.org ', ], [ ' ', ' .d8888b. 888 888d8b ', ' d88P Y88b 888 888Y8P ', ' Y88b. 888 888 ', ' "Y888b. 88888b. 8888b. .d8888b .d88b.Y88b d88P88888888b.d88b. ', ' "Y88b.888 "88b "88bd88P" d8P Y8bY88b d88P 888888 "888 "88b ', ' "888888 888.d888888888 88888888 Y88o88P 888888 888 888 ', ' Y88b d88P888 d88P888 888Y88b. Y8b. Y888P 888888 888 888 ', ' "Y8888P" 88888P" "Y888888 "Y8888P "Y8888 Y8P 888888 888 888 ', ' 888 ', ' 888 ', ' 888 version : '.vr.' by : spacevim.org ', ' ', ], [ ' ', ' ', ' ██████ ██▓███ ▄▄▄ ▄████▄ ▓█████ ██▒ █▓ ██▓ ███▄ ▄███▓ ', ' ▒██ ▒ ▓██░ ██▒▒████▄ ▒██▀ ▀█ ▓█ ▀▓██░ █▒▓██▒▓██▒▀█▀ ██▒ ', ' ░ ▓██▄ ▓██░ ██▓▒▒██ ▀█▄ ▒▓█ ▄ ▒███ ▓██ █▒░▒██▒▓██ ▓██░ ', ' ▒ ██▒▒██▄█▓▒ ▒░██▄▄▄▄██ ▒▓▓▄ ▄██▒▒▓█ ▄ ▒██ █░░░██░▒██ ▒██ ', ' ▒██████▒▒▒██▒ ░ ░ ▓█ ▓██▒▒ ▓███▀ ░░▒████▒ ▒▀█░ ░██░▒██▒ ░██▒ ', ' ▒ ▒▓▒ ▒ ░▒▓▒░ ░ ░ ▒▒ ▓▒█░░ ░▒ ▒ ░░░ ▒░ ░ ░ ▐░ ░▓ ░ ▒░ ░ ░ ', ' ░ ░▒ ░ ░░▒ ░ ▒ ▒▒ ░ ░ ▒ ░ ░ ░ ░ ░░ ▒ ░░ ░ ░ ', ' ░ ░ ░ ░░ ░ ▒ ░ ░ ░░ ▒ ░░ ░ ', ' ░ ░ ░░ ░ ░ ░ ░ ░ ░ ', ' ░ ░ ', ' ', ' version : '.vr.' by : spacevim.org ', ' ', ], [ ' ', ' ', ' .▄▄ · ▄▄▄· ▄▄▄· ▄▄· ▄▄▄ . ▌ ▐·▪ • ▌ ▄ · ', ' ▐█ ▀. ▐█ ▄█▐█ ▀█ ▐█ ▌▪▀▄.▀·▪█·█▌██ ·██ ▐███▪ ', ' ▄▀▀▀█▄ ██▀·▄█▀▀█ ██ ▄▄▐▀▀▪▄▐█▐█•▐█·▐█ ▌▐▌▐█· ', ' ▐█▄▪▐█▐█▪·•▐█ ▪▐▌▐███▌▐█▄▄▌ ███ ▐█▌██ ██▌▐█▌ ', ' ▀▀▀▀ .▀ ▀ ▀ ·▀▀▀ ▀▀▀ . ▀ ▀▀▀▀▀ █▪▀▀▀ ', ' ', ' version : '.vr.' by : spacevim.org ', ' ', ], [ ' ', ' ', ' ▄▄▄▄▄ █ ▄▄ ██ ▄█▄ ▄███▄ ▄ ▄█ █▀▄▀█ ', ' █ ▀▄ █ █ █ █ █▀ ▀▄ █▀ ▀ █ ██ █ █ █ ', ' ▄ ▀▀▀▀▄ █▀▀▀ █▄▄█ █ ▀ ██▄▄ █ █ ██ █ ▄ █ ', ' ▀▄▄▄▄▀ █ █ █ █▄ ▄▀ █▄ ▄▀ █ █ ▐█ █ █ ', ' █ █ ▀███▀ ▀███▀ █ █ ▐ █ ', ' ▀ █ █▐ ▀ ', ' ▀ ▐ ', ' ', ' version : '.vr.' by : spacevim.org ', ' ', ], [ ' ', ' ', ' ________ ___ _______ ', ' __ ___/________ ______ _____________ __ | / /___(_)_______ ___ ', ' _____ \ ___ __ \_ __ `/_ ___/_ _ \__ | / / __ / __ __ `__ \ ', ' ____/ / __ /_/ // /_/ / / /__ / __/__ |/ / _ / _ / / / / / ', ' /____/ _ .___/ \__,_/ \___/ \___/ _____/ /_/ /_/ /_/ /_/ ', ' /_/ ', ' ', ' version : '.vr.' by : spacevim.org ', ' ', ], [ ' ', ' ', ' ______ ', ' \ ___) ', ' \ \ ______ __ ____ __ ___ ____ _ _ _ ', ' > > ( __ )/ \/ /\ \ / // __)/ ___)| | | | | | ', ' / /__ | || |( () < \ v / > _)( (__ | | | |_| | ', ' /_____)|_||_| \__/\_\ > < \___)\__ \ \_)| ._,_| ', ' / ^ \ _) ) | | ', ' /_/ \_\ (__/ |_| ', ' ', ' version : '.vr.' by : spacevim.org ', ' ', ], [ ' ', ' ', ' ................................................................. ', ' ................................................................. ', ' ..%%%%...%%%%%....%%%%....%%%%...%%%%%%..%%..%%..%%%%%%..%%...%%. ', ' .%%......%%..%%..%%..%%..%%..%%..%%......%%..%%....%%....%%%.%%%. ', ' ..%%%%...%%%%%...%%%%%%..%%......%%%%....%%..%%....%%....%%.%.%%. ', ' .....%%..%%......%%..%%..%%..%%..%%.......%%%%.....%%....%%...%%. ', ' ..%%%%...%%......%%..%%...%%%%...%%%%%%....%%....%%%%%%..%%...%%. ', ' ................................................................. ', ' ', ' version : '.vr.' by : spacevim.org ', ' ', ], [ ' ', ' ', ' _____ __ ___ ', ' / ____| \ \ / (_) ', ' | (___ _ __ __ _ ___ __\ \ / / _ _ __ ___ ', ' \___ \| \`_ \ / _` |/ __/ _ \ \/ / | | `_ ` _ \ ', ' ____) | |_) | (_| | (_| __/\ / | | | | | | | ', ' |_____/| .__/ \__,_|\___\___| \/ |_|_| |_| |_| ', ' | | ', ' |_| ', ' ', ' version : '.vr.' by : spacevim.org ', ' ', ], [ ' ', ' ', ' # # ### # # ### ##### ###### ####### ##### ####### ', ' # # # ## ## # # # # # # # # # ', ' # # # # # # # # # # # # # # ', ' # # # # # # # ##### ###### ##### ##### # ', ' # # # # # # # # # # # # ', ' # # # # # # # # # # # # # # ', ' # ### # # ### ##### ###### ####### ##### # ', ' ', ' version : '.vr.' by : spacevim.org ', ' ', ], [ '', '', ' _ _ _____ ______ _____ _ ______ _______ _ ______ ', ' | | | (_____) ___ \ (_____) | | (____ \(_______) | | (_______) ', ' | | | | _ | | _ | | _ \ \ ____) )_____ \ \ _ ', ' \ \/ / | | | || || | | | \ \ | __ (| ___) \ \| | ', ' \ / _| |_| || || | _| |_ _____) ) | |__) ) |_____ _____) ) |_____ ', ' \/ (_____)_||_||_| (_____|______/ |______/|_______|______/ \______) ', '', ' version : '.vr.' by : spacevim.org', '', ], [ '', '', '.##.....##.####.........########.##.....##.########.########..########...#### ', '.##.....##..##.............##....##.....##.##.......##.....##.##.........#### ', '.##.....##..##.............##....##.....##.##.......##.....##.##.........#### ', '.#########..##...####......##....#########.######...########..######......##. ', '.##.....##..##...####......##....##.....##.##.......##...##...##............. ', '.##.....##..##....##.......##....##.....##.##.......##....##..##.........#### ', '.##.....##.####..##........##....##.....##.########.##.....##.########...#### ', '', ' version : '.vr.' by : spacevim.org', '', ], [ ' ', ' ', ' . .--.--. . .--. --.--.---..---. . ..---. ', ' \ / | |\ /| | ) | | | |\ /|| ', ' \ / | | \/ | o |--: | | |--- | \/ ||--- ', ' \ / | | | | ) | | | | || ', ' ` --`--` ` o `--` --`-- ` `---` ` ``---` ', ' ', ' version : '.vr.' by : spacevim.org ', ' ', ], [ ' ', '_______________________________________________________ ', '=========(_)===(_) (_______)==(_______|_______|_)(_)(_) ', '=================| |=================================== ', '=========| |===| | | ||_|| |==| ___)====| |==| || || | ', '========= \ \=/ /| | |===| |==| |========| |==| || || | ', '========== \___/=|_|_|===|_|==|_|========|_|===\_____/ ', ' ', ' version : '.vr.' by : spacevim.org ', ' ', ] ] | |
FUNCTION <SNR>190__get_module() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vital/vimfiler.vim line 184 | |
Called 7 times | |
Total time: 0.002414 | |
Self time: 0.000153 | |
count total (s) self (s) | |
7 0.000135 0.000059 let funcname = s:_import_func_name(self.plugin_name(), a:name) | |
7 0.001956 0.000039 if s:_exists_autoload_func_with_source(funcname) | |
7 0.000318 0.000051 return call(funcname, []) | |
else | |
return s:_get_builtin_module(a:name) | |
endif | |
FUNCTION <SNR>192_is_string() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vital/_vimfiler/Prelude.vim line 87 | |
Called 1 time | |
Total time: 0.000002 | |
Self time: 0.000002 | |
count total (s) self (s) | |
1 0.000001 return type(a:Value) ==# s:__TYPE_STRING | |
FUNCTION <SNR>171_LeadingSpaceDisable() | |
Defined: ~/.SpaceVim/bundle/indentLine/after/plugin/indentLine.vim line 368 | |
Called 4 times | |
Total time: 0.000031 | |
Self time: 0.000031 | |
count total (s) self (s) | |
4 0.000003 if g:indentLine_newVersion | |
4 0.000007 if exists("w:indentLine_leadingSpaceId") && ! empty(w:indentLine_leadingSpaceId) | |
for id in w:indentLine_leadingSpaceId | |
try | |
call matchdelete(id) | |
catch /^Vim\%((\a\+)\)\=:E80[23]/ | |
endtry | |
endfor | |
let w:indentLine_leadingSpaceId = [] | |
4 0.000001 endif | |
4 0.000001 return | |
endif | |
let b:indentLine_leadingSpaceEnabled = 0 | |
try | |
syntax clear IndentLineLeadingSpace | |
catch /^Vim\%((\a\+)\)\=:E28/ " catch error E28 | |
endtry | |
FUNCTION textobj#user#plugin() | |
Defined: ~/.SpaceVim/bundle/vim-textobj-user/autoload/textobj/user.vim line 236 | |
Called 3 times | |
Total time: 0.003912 | |
Self time: 0.000161 | |
count total (s) self (s) | |
3 0.000010 if a:plugin_name =~# '\L' | |
throw '{plugin} contains non-lowercase alphabet: ' . string(a:plugin_name) | |
3 0.000001 endif | |
3 0.000004 let plugin = a:plugin_name | |
3 0.000021 let Plugin = substitute(a:plugin_name, '^\(\l\)', '\u\1', 0) | |
3 0.000739 0.000022 let g:__textobj_{plugin} = s:plugin.new(a:plugin_name, a:obj_specs) | |
3 0.000030 execute 'command! -bang -bar -nargs=0 Textobj'.Plugin.'DefaultKeyMappings' 'call g:__textobj_'.plugin.'.define_default_key_mappings("<bang>" == "!")' | |
3 0.001238 0.000017 call g:__textobj_{plugin}.define_interface_key_mappings() | |
3 0.000012 if (!has_key(a:obj_specs, '*no-default-key-mappings*')) && (!exists('g:textobj_'.plugin.'_no_default_key_mappings')) | |
3 0.001839 0.000025 execute 'Textobj'.Plugin.'DefaultKeyMappings' | |
3 0.000001 endif | |
3 0.000005 return g:__textobj_{plugin} | |
FUNCTION vimfiler#view#_force_redraw_screen() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/view.vim line 12 | |
Called 2 times | |
Total time: 0.034353 | |
Self time: 0.000670 | |
count total (s) self (s) | |
2 0.000003 let is_manualed = get(a:000, 0, 0) | |
2 0.000002 let old_original_files = {} | |
2 0.000007 for file in filter(copy(b:vimfiler.original_files), "v:val.vimfiler__is_directory && (v:val.vimfiler__is_opened || v:val.vimfiler__abbr =~ './.')") | |
if file.vimfiler__abbr =~ './.' | |
let path = (file.vimfiler__is_opened || !has_key(file, 'vimfiler__parent')) ? file.action__path : file.vimfiler__parent.action__path | |
let old_original_files[path] = 1 | |
let old_path = '' | |
while path != '' && path !=# old_path | |
let old_original_files[path] = 1 | |
let old_path = path | |
let path = fnamemodify(old_path, ':h') | |
endwhile | |
else | |
let old_original_files[file.action__path] = 1 | |
endif | |
2 0.000001 endfor | |
" Check cache file. | |
2 0.000049 0.000011 let cache_dir = vimfiler#variables#get_data_directory() . '/files' | |
2 0.000082 0.000015 if is_manualed || !s:Cache.filereadable(cache_dir, b:vimfiler.current_dir) || (b:vimfiler.source ==# 'file' && s:Cache.check_old_cache(cache_dir, b:vimfiler.current_dir)) | |
" Get files. | |
2 0.031368 0.000013 let files = vimfiler#get_directory_files( b:vimfiler.current_dir, is_manualed) | |
2 0.000005 if len(files) >= g:vimfiler_min_cache_files && !vimfiler#util#is_sudo() | |
call s:Cache.writefile(cache_dir, b:vimfiler.current_dir, [string(files)]) | |
2 0.000001 endif | |
else | |
sandbox let files = eval(s:Cache.readfile( cache_dir, b:vimfiler.current_dir)[0]) | |
let files = vimfiler#helper#_sort_files(files) | |
2 0.000000 endif | |
" Use matcher_glob. | |
2 0.000003 let b:vimfiler.original_files = files | |
2 0.000001 let index = 0 | |
92 0.000038 for file in copy(b:vimfiler.original_files) | |
90 0.000109 if file.vimfiler__is_directory && has_key(old_original_files, file.action__path) | |
" Insert children. | |
let children = vimfiler#mappings#expand_tree_rec(file, old_original_files) | |
let b:vimfiler.original_files = b:vimfiler.original_files[: index] + children + b:vimfiler.original_files[index+1 :] | |
let index += len(children) | |
90 0.000018 endif | |
90 0.000050 let index += 1 | |
92 0.000022 endfor | |
2 0.002238 0.000016 call vimfiler#view#_redraw_screen() | |
FUNCTION neomake#setup#setup_autocmds() | |
Defined: ~/.SpaceVim/bundle/neomake/autoload/neomake/setup.vim line 18 | |
Called 1 time | |
Total time: 0.000060 | |
Self time: 0.000060 | |
count total (s) self (s) | |
1 0.000001 augroup neomake | |
1 0.000040 au! | |
1 0.000002 if !exists('*nvim_buf_add_highlight') | |
autocmd BufEnter * call neomake#highlights#ShowHighlights() | |
1 0.000000 endif | |
1 0.000002 if has('timers') | |
1 0.000004 autocmd CursorMoved * call neomake#CursorMovedDelayed() | |
" Force-redraw display of current error after resizing Vim, which appears | |
" to clear the previously echoed error. | |
1 0.000003 autocmd VimResized * call timer_start(100, function('neomake#EchoCurrentError')) | |
else | |
autocmd CursorHold,CursorHoldI * call neomake#CursorMoved() | |
1 0.000000 endif | |
1 0.000002 autocmd VimLeave * call neomake#VimLeave() | |
1 0.000002 autocmd ColorScheme * call neomake#setup#define_highlights() | |
1 0.000000 augroup END | |
FUNCTION 200() | |
Defined: ~/.SpaceVim/bundle/vim-textobj-user/autoload/textobj/user.vim line 496 | |
Called 8 times | |
Total time: 0.000161 | |
Self time: 0.000042 | |
count total (s) self (s) | |
8 0.000159 0.000040 return s:interface_mapping_name(self.name, a:obj_name, a:spec_name) | |
FUNCTION 203() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup/matchparen.vim line 131 | |
Called 5 times | |
Total time: 0.000130 | |
Self time: 0.000119 | |
count total (s) self (s) | |
5 0.000008 if exists('w:matchup_match_id_list') | |
for l:id in w:matchup_match_id_list | |
silent! call matchdelete(l:id) | |
endfor | |
unlet! w:matchup_match_id_list | |
5 0.000001 endif | |
5 0.000011 if exists('t:match_popup') && (exists('*win_gettype') ? win_gettype() !=# 'popup' : &buftype !=# 'terminal') | |
call popup_hide(t:match_popup) | |
5 0.000011 elseif has('nvim') | |
5 0.000032 0.000021 call s:close_floating_win() | |
5 0.000001 endif | |
5 0.000005 if exists('w:matchup_oldstatus') | |
let &l:statusline = w:matchup_oldstatus | |
unlet w:matchup_oldstatus | |
if exists('#User#MatchupOffscreenLeave') | |
doautocmd <nomodeline> User MatchupOffscreenLeave | |
endif | |
5 0.000001 endif | |
5 0.000005 if exists('w:matchup_statusline') | |
unlet w:matchup_statusline | |
5 0.000001 endif | |
5 0.000005 let w:matchup_need_clear = 0 | |
FUNCTION 205() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup/matchparen.vim line 295 | |
Called 2 times | |
Total time: 0.001355 | |
Self time: 0.000016 | |
count total (s) self (s) | |
2 0.000005 if !get(b:, 'matchup_matchparen_deferred', g:matchup_matchparen_deferred) | |
2 0.001349 0.000010 return s:matchparen.highlight() | |
endif | |
if !exists('w:matchup_timer') | |
let s:show_delay = g:matchup_matchparen_deferred_show_delay | |
let s:hide_delay = g:matchup_matchparen_deferred_hide_delay | |
let w:matchup_timer = timer_start(s:show_delay, function('s:timer_callback', [ win_getid() ]), {'repeat': -1}) | |
if !exists('w:matchup_need_clear') | |
let w:matchup_need_clear = 0 | |
endif | |
let s:fade_time = g:matchup_matchparen_deferred_fade_time | |
if s:fade_time > 0 | |
let w:matchup_fade_timer = timer_start(s:fade_time, function('s:fade_timer_callback', [ win_getid() ]), {'repeat': -1}) | |
call timer_pause(w:matchup_fade_timer, 1) | |
endif | |
endif | |
" keep the timer alive with a heartbeat | |
let w:matchup_pulse_time = reltime() | |
" if the timer is paused, some time has passed | |
if timer_info(w:matchup_timer)[0].paused | |
" unpause the timer | |
call timer_pause(w:matchup_timer, 0) | |
" set the hi time to the pulse time | |
let w:matchup_hi_time = w:matchup_pulse_time | |
endif | |
FUNCTION 206() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup/matchparen.vim line 334 | |
Called 3 times | |
Total time: 0.001668 | |
Self time: 0.000384 | |
count total (s) self (s) | |
3 0.000005 if !g:matchup_matchparen_enabled | return | endif | |
3 0.000008 if has('vim_starting') | return | endif | |
3 0.000005 if !g:matchup_matchparen_pumvisible && pumvisible() | return | endif | |
3 0.000008 if !get(b:, 'matchup_matchparen_enabled', 1) && get(b:, 'matchup_matchparen_fallback', 1) && s:pi_paren_sid() | |
return call(s:pi_paren_fcn, []) | |
3 0.000001 endif | |
3 0.000004 if !get(b:, 'matchup_matchparen_enabled', 1) | return | endif | |
3 0.000006 let l:force_update = a:0 >= 1 ? a:1 : 0 | |
3 0.000004 let l:changing_insert = a:0 >= 2 ? a:2 : 0 | |
3 0.000006 let l:real_mode = l:changing_insert ? v:insertmode : mode() | |
3 0.000399 0.000095 if !l:force_update && exists('w:last_changedtick') && exists('w:last_cursor') && matchup#pos#equal(w:last_cursor, matchup#pos#get_cursor()) && w:last_changedtick == b:changedtick | |
return | |
3 0.000001 endif | |
3 0.000003 let w:last_changedtick = b:changedtick | |
3 0.000017 0.000012 let w:last_cursor = matchup#pos#get_cursor() | |
3 0.000019 0.000010 call matchup#perf#tic('matchparen.highlight') | |
" request eventual clearing of stale matches | |
3 0.000003 let l:token = {} | |
3 0.000111 0.000012 call self.fade(0, [], l:token) | |
3 0.000004 let l:modes = g:matchup_matchparen_nomode | |
3 0.000004 if get(g:, 'matchup_matchparen_novisual', 0) " deprecated option name | |
let l:modes .= "vV\<c-v>" | |
3 0.000001 endif | |
3 0.000005 if stridx(l:modes, l:real_mode) >= 0 | |
return | |
3 0.000001 endif | |
" prevent problems in visual block mode at the end of a line | |
3 0.000016 0.000012 if get(matchup#pos#get_cursor(), 4, 0) == 2147483647 | |
return | |
3 0.000001 endif | |
" don't get matches when inside a closed fold | |
3 0.000005 if foldclosed(line('.')) > -1 | |
return | |
3 0.000001 endif | |
" give up when cursor is far into a very long line | |
3 0.000006 if &synmaxcol && col('.') > &synmaxcol | |
return | |
3 0.000001 endif | |
" in insert mode, cursor is treated as being one behind | |
3 0.000004 let l:insertmode = l:real_mode ==# 'i' | |
" start the timeout period | |
3 0.000011 let l:timeout = l:insertmode ? get(b:, 'matchup_matchparen_insert_timeout', g:matchup_matchparen_insert_timeout) : get(b:, 'matchup_matchparen_timeout', g:matchup_matchparen_timeout) | |
3 0.000025 0.000012 call matchup#perf#timeout_start(l:timeout) | |
3 0.000870 0.000076 let l:current = matchup#delim#get_current('all', 'both_all', { 'insertmode': l:insertmode, 'stopline': g:matchup_matchparen_stopline, 'highlighting': 1, }) | |
3 0.000067 0.000012 call matchup#perf#toc('matchparen.highlight', 'get_current') | |
3 0.000003 if empty(l:current) | |
3 0.000008 if get(b:, 'matchup_matchparen_deferred', g:matchup_matchparen_deferred) && get(b:, 'matchup_matchparen_hi_surround_always', g:matchup_matchparen_hi_surround_always) | |
call s:highlight_surrounding(l:insertmode) | |
3 0.000001 endif | |
3 0.000001 return | |
endif | |
let l:corrlist = matchup#delim#get_matching(l:current, { 'stopline': g:matchup_matchparen_stopline, 'highlighting': 1, }) | |
call matchup#perf#toc('matchparen.highlight', 'get_matching') | |
if empty(l:corrlist) | return | endif | |
if g:matchup_transmute_enabled | |
if !exists('w:matchup_matchparen_context') | |
let w:matchup_matchparen_context = { 'normal': { 'current': {}, 'corrlist': [], }, 'prior': {}, 'counter': 0,} | |
endif | |
let w:matchup_matchparen_context.counter += 1 | |
if !l:insertmode | |
let w:matchup_matchparen_context.prior = copy(w:matchup_matchparen_context.normal) | |
let w:matchup_matchparen_context.normal.current = l:current | |
let w:matchup_matchparen_context.normal.corrlist = l:corrlist | |
endif | |
" if transmuted, highlight again (will reset timeout) | |
if matchup#transmute#tick(l:insertmode) | |
" no force_update here because it would screw up prior | |
return s:matchparen.highlight(0, l:changing_insert) | |
endif | |
endif | |
if !has_key(l:current, 'match_index') || len(l:corrlist) <= (l:current.side ==# 'mid' ? 2 : 1) && !g:matchup_matchparen_singleton | |
" TODO this doesn't catch every case, needs refactor | |
" TODO singleton doesn't work right for mids | |
return | |
endif | |
" prepare for (possibly) new highlights | |
let l:pos = [l:current.lnum, l:current.cnum] | |
if self.fade(1, l:pos, l:token) | |
return | |
endif | |
" store flag meaning highlighting is active | |
let w:matchup_need_clear = 1 | |
" disable off-screen when scrolling with j/k | |
let l:scrolling = get(g:matchup_matchparen_offscreen, 'scrolloff', 0) && winheight(0) > 2*&scrolloff && (line('.') == line('w$')-&scrolloff && line('$') != line('w$') || line('.') == line('w0')+&scrolloff) | |
" show off-screen matches | |
let l:method = get(g:matchup_matchparen_offscreen, 'method', '') | |
if !empty(l:method) && l:method !=# 'none' && !l:current.skip && !l:scrolling && winheight(0) > 0 | |
call s:do_offscreen(l:current, l:method) | |
endif | |
" add highlighting matches | |
call s:add_matches(l:corrlist, l:current) | |
" highlight the background between parentheses | |
if g:matchup_matchparen_hi_background >= 1 | |
call s:highlight_background(l:corrlist) | |
endif | |
" new highlights done, request fade away | |
call self.fade(2, l:pos, l:token) | |
call matchup#perf#toc('matchparen.highlight', 'end') | |
FUNCTION <SNR>69_is_git_dir() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/types/git.vim line 216 | |
Called 232 times | |
Total time: 0.003708 | |
Self time: 0.003708 | |
count total (s) self (s) | |
232 0.000556 if isdirectory(a:path) | |
let git_dir = a:path | |
232 0.000628 elseif filereadable(a:path) | |
" check if this is a gitdir file | |
" File starts with "gitdir: " and all text after this string is treated | |
" as the path. Any CR or NLs are stripped off the end of the file. | |
let buf = join(readfile(a:path, 'b'), "\n") | |
let matches = matchlist(buf, '\C^gitdir: \(\_.*[^\r\n]\)[\r\n]*$') | |
if empty(matches) | |
return 0 | |
endif | |
let path = fnamemodify(a:path, ':h') | |
if fnamemodify(a:path, ':t') ==# '' | |
" if there's no tail, the path probably ends in a directory separator | |
let path = fnamemodify(path, ':h') | |
endif | |
let git_dir = s:join_paths(path, matches[1]) | |
if !isdirectory(git_dir) | |
return 0 | |
endif | |
232 0.000060 else | |
232 0.000101 return 0 | |
endif | |
" Git only considers it to be a git dir if a few required files/dirs exist | |
" and are accessible inside the directory. | |
" Note: we can't actually test file permissions the way we'd like to, since | |
" getfperm() gives the mode string but doesn't tell us whether the user or | |
" group flags apply to us. Instead, just check if dirname/. is a directory. | |
" This should also check if we have search permissions. | |
" I'm assuming here that dirname/. works on windows, since I can't test. | |
" Note: Git also accepts having the GIT_OBJECT_DIRECTORY env var set instead | |
" of using .git/objects, but we don't care about that. | |
for name in ['objects', 'refs'] | |
if !isdirectory(s:join_paths(git_dir, name)) | |
return 0 | |
endif | |
endfor | |
" Git also checks if HEAD is a symlink or a properly-formatted file. | |
" We don't really care to actually validate this, so let's just make | |
" sure the file exists and is readable. | |
" Note: it may also be a symlink, which can point to a path that doesn't | |
" necessarily exist yet. | |
let head = s:join_paths(git_dir, 'HEAD') | |
if !filereadable(head) && getftype(head) !=# 'link' | |
return 0 | |
endif | |
" Sure looks like a git directory. There's a few subtleties where we'll | |
" accept a directory that git itself won't, but I think we can safely ignore | |
" those edge cases. | |
return 1 | |
FUNCTION <SNR>171_IndentLinesDisable() | |
Defined: ~/.SpaceVim/bundle/indentLine/after/plugin/indentLine.vim line 209 | |
Called 4 times | |
Total time: 0.000139 | |
Self time: 0.000107 | |
count total (s) self (s) | |
4 0.000003 if g:indentLine_newVersion | |
4 0.000008 if exists("w:indentLine_indentLineId") && ! empty(w:indentLine_indentLineId) | |
21 0.000008 for id in w:indentLine_indentLineId | |
20 0.000005 try | |
20 0.000017 call matchdelete(id) | |
catch /^Vim\%((\a\+)\)\=:E80[23]/ | |
20 0.000006 endtry | |
21 0.000006 endfor | |
1 0.000002 let w:indentLine_indentLineId = [] | |
4 0.000001 endif | |
4 0.000049 0.000017 call s:ResetConcealOption() | |
4 0.000002 return | |
endif | |
let b:indentLine_enabled = 0 | |
try | |
syntax clear IndentLine | |
syntax clear IndentLineSpace | |
catch /^Vim\%((\a\+)\)\=:E28/ " catch error E28 | |
endtry | |
FUNCTION matchup#perf#toc() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup/perf.vim line 19 | |
Called 17 times | |
Total time: 0.000343 | |
Self time: 0.000313 | |
count total (s) self (s) | |
17 0.000130 0.000101 let l:elapsed = s:reltimefloat(reltime(s:time_start[a:context])) | |
17 0.000026 let l:key = a:context.'#'.a:state | |
17 0.000027 if has_key(g:matchup#perf#times, l:key) | |
8 0.000011 if l:elapsed > g:matchup#perf#times[l:key].maximum | |
2 0.000003 let g:matchup#perf#times[l:key].maximum = l:elapsed | |
8 0.000003 endif | |
8 0.000011 let g:matchup#perf#times[l:key].last = l:elapsed | |
8 0.000020 let g:matchup#perf#times[l:key].emavg = s:alpha*l:elapsed + (1-s:alpha)*g:matchup#perf#times[l:key].emavg | |
9 0.000003 else | |
9 0.000028 let g:matchup#perf#times[l:key] = { 'maximum' : l:elapsed, 'emavg' : l:elapsed, 'last' : l:elapsed,} | |
17 0.000005 endif | |
FUNCTION vimfiler#util#is_windows() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/util.vim line 61 | |
Called 101 times | |
Total time: 0.000088 | |
Self time: 0.000088 | |
count total (s) self (s) | |
101 0.000068 return s:is_windows | |
FUNCTION <SNR>63_load_plugins() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/plugins.vim line 20 | |
Called 1 time | |
Total time: 0.096077 | |
Self time: 0.001631 | |
count total (s) self (s) | |
11 0.000015 0.000013 for group in SpaceVim#layers#get() | |
10 0.000011 let g:_spacevim_plugin_layer = group | |
57 0.052562 0.000103 for plugin in s:getLayerPlugins(group) | |
47 0.000049 if len(plugin) == 2 | |
36 0.014747 0.000195 call SpaceVim#plugins#add(plugin[0], plugin[1]) | |
36 0.000861 0.000312 if SpaceVim#plugins#tap(split(plugin[0], '/')[-1]) && get(plugin[1], 'loadconf', 0 ) | |
13 0.005472 0.000090 call SpaceVim#plugins#defind_hooks(split(plugin[0], '/')[-1]) | |
36 0.000012 endif | |
36 0.000792 0.000276 if SpaceVim#plugins#tap(split(plugin[0], '/')[-1]) && get(plugin[1], 'loadconf_before', 0 ) | |
5 0.000306 0.000036 call SpaceVim#plugins#loadPluginBefore(split(plugin[0], '/')[-1]) | |
36 0.000010 endif | |
11 0.000004 else | |
11 0.004115 0.000062 call SpaceVim#plugins#add(plugin[0]) | |
47 0.000013 endif | |
57 0.000023 endfor | |
10 0.016714 0.000052 call s:loadLayerConfig(group) | |
11 0.000006 endfor | |
1 0.000005 unlet g:_spacevim_plugin_layer | |
1 0.000001 for plugin in g:spacevim_custom_plugins | |
if len(plugin) == 2 | |
call SpaceVim#plugins#add(plugin[0], plugin[1]) | |
else | |
call SpaceVim#plugins#add(plugin[0]) | |
endif | |
1 0.000000 endfor | |
FUNCTION neomake#compat#reltimefloat() | |
Defined: ~/.SpaceVim/bundle/neomake/autoload/neomake/compat.vim line 128 | |
Called 1 time | |
Total time: 0.000003 | |
Self time: 0.000003 | |
count total (s) self (s) | |
1 0.000003 return reltimefloat(reltime()) | |
FUNCTION vimfiler#util#get_vital() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/util.vim line 7 | |
Called 5 times | |
Total time: 0.000380 | |
Self time: 0.000138 | |
count total (s) self (s) | |
5 0.000006 if !exists('s:V') | |
1 0.000364 0.000121 let s:V = vital#vimfiler#new() | |
5 0.000002 endif | |
5 0.000003 return s:V | |
FUNCTION <SNR>121_init_option() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup.vim line 75 | |
Called 30 times | |
Total time: 0.000121 | |
Self time: 0.000121 | |
count total (s) self (s) | |
30 0.000030 let l:option = 'g:' . a:option | |
30 0.000032 if !exists(l:option) | |
30 0.000043 let {l:option} = a:default | |
30 0.000007 endif | |
FUNCTION vimfiler#get_datemark() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler.vim line 125 | |
Called 90 times | |
Total time: 0.000657 | |
Self time: 0.000310 | |
count total (s) self (s) | |
90 0.000645 0.000298 return vimfiler#init#_get_datemark(a:file) | |
FUNCTION unite#variables#dynamic() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/variables.vim line 49 | |
Called 4 times | |
Total time: 0.000019 | |
Self time: 0.000019 | |
count total (s) self (s) | |
4 0.000005 if !exists('s:dynamic') | |
1 0.000001 let s:dynamic = {} | |
1 0.000001 let s:dynamic.sources = {} | |
1 0.000001 let s:dynamic.kinds = {} | |
1 0.000001 let s:dynamic.filters = {} | |
4 0.000001 endif | |
4 0.000002 return s:dynamic | |
FUNCTION vimfiler#util#has_lua() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/util.vim line 108 | |
Called 4 times | |
Total time: 0.000022 | |
Self time: 0.000022 | |
count total (s) self (s) | |
" Note: Disabled if_lua feature if less than 7.3.885. | |
" Because if_lua has double free problem. | |
4 0.000018 return has('lua') && (v:version > 703 || v:version == 703 && has('patch885')) | |
FUNCTION <SNR>36_modes() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/core/statusline.vim line 150 | |
Called 1 time | |
Total time: 0.000015 | |
Self time: 0.000015 | |
count total (s) self (s) | |
1 0.000001 if g:spacevim_statusline_unicode_symbols | |
1 0.000001 let m = ' ❖ ' | |
else | |
let m = ' # ' | |
1 0.000000 endif | |
2 0.000002 for mode in s:loaded_modes | |
1 0.000001 if g:spacevim_statusline_unicode_symbols | |
1 0.000002 let m .= s:modes[mode].icon . ' ' | |
else | |
let m .= s:modes[mode].icon_asc . ' ' | |
1 0.000000 endif | |
2 0.000001 endfor | |
1 0.000001 return m . ' ' | |
FUNCTION <SNR>121_map() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup.vim line 166 | |
Called 46 times | |
Total time: 0.001359 | |
Self time: 0.001359 | |
count total (s) self (s) | |
46 0.000870 if !hasmapto(a:rhs, a:mode) && ((a:0 > 0) || (maparg(a:lhs, a:mode) ==# '')) | |
46 0.000460 silent execute a:mode . 'map <silent> ' a:lhs a:rhs | |
46 0.000014 endif | |
FUNCTION SpaceVim#api#job#get() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/job.vim line 31 | |
Called 1 time | |
Total time: 0.000008 | |
Self time: 0.000008 | |
count total (s) self (s) | |
1 0.000007 return deepcopy(s:self) | |
FUNCTION dein#parse#_get_types() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/parse.vim line 377 | |
Called 58 times | |
Total time: 0.000591 | |
Self time: 0.000506 | |
count total (s) self (s) | |
58 0.000076 if !exists('s:types') | |
" Load types. | |
1 0.000001 let s:types = {} | |
3 0.000179 0.000093 for type in filter(map(split(globpath(&runtimepath, 'autoload/dein/types/*.vim', 1), '\n'), "dein#types#{fnamemodify(v:val, ':t:r')}#define()"), '!empty(v:val)') | |
2 0.000003 let s:types[type.name] = type | |
3 0.000001 endfor | |
58 0.000015 endif | |
58 0.000036 return s:types | |
FUNCTION unite#set_current_unite() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite.vim line 211 | |
Called 8 times | |
Total time: 0.000087 | |
Self time: 0.000039 | |
count total (s) self (s) | |
8 0.000084 0.000036 return unite#variables#set_current_unite(a:unite) | |
FUNCTION 229() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/sources/file.vim line 40 | |
Called 2 times | |
Total time: 0.006741 | |
Self time: 0.000465 | |
count total (s) self (s) | |
2 0.000079 0.000013 let path = unite#sources#file#_get_path(a:args, a:context) | |
2 0.000006 if !isdirectory(path) && filereadable(path) | |
return [ unite#sources#file#create_file_dict( path, a:context.input) ] | |
2 0.000000 endif | |
2 0.000069 0.000009 let input = unite#sources#file#_get_input(path, a:context) | |
2 0.006581 0.000432 return map(unite#sources#file#_get_files(input, a:context), 'unite#sources#file#create_file_dict(v:val, a:context.input)') | |
FUNCTION SpaceVim#layers#core#statusline#get() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/core/statusline.vim line 358 | |
Called 12 times | |
Total time: 0.148227 | |
Self time: 0.001851 | |
count total (s) self (s) | |
31 0.000052 for nr in range(1, winnr('$')) | |
19 0.000046 call setwinvar(nr, 'winwidth', winwidth(nr)) | |
19 0.000023 call setwinvar(nr, 'winid', nr) | |
31 0.000015 endfor | |
12 0.000014 if &filetype ==# 'vimfiler' | |
3 0.000029 0.000020 return '%#SpaceVim_statusline_ia#' . s:winnr(1) . '%#SpaceVim_statusline_ia_SpaceVim_statusline_b#' . s:lsep . '%#SpaceVim_statusline_b#' . ' vimfiler %#SpaceVim_statusline_b_SpaceVim_statusline_c#' . s:lsep | |
9 0.000007 elseif &filetype ==# 'qf' | |
if s:VIM.is_qf_win(winnr()) | |
return '%#SpaceVim_statusline_ia#' . s:winnr(1) . '%#SpaceVim_statusline_ia_SpaceVim_statusline_b#' . s:lsep . '%#SpaceVim_statusline_b#' . ' QuickFix %#SpaceVim_statusline_b_SpaceVim_statusline_c#' . s:lsep . ( has('patch-8.0.1384') ? ((getqflist({'title' : 0}).title ==# ':setqflist()') ? '' : '%#SpaceVim_statusline_c#' . getqflist({'title' : 0}).title . '%#SpaceVim_statusline_c_SpaceVim_statusline_z#' . s:lsep ) : '') | |
else | |
return '%#SpaceVim_statusline_ia#' . s:winnr(1) . '%#SpaceVim_statusline_ia_SpaceVim_statusline_b#' . s:lsep . '%#SpaceVim_statusline_b#' . ' Location List %#SpaceVim_statusline_b_SpaceVim_statusline_c#' . s:lsep . ( has('patch-8.0.1384') ? ((getloclist(winnr(),{'title' : 0}).title ==# ':setloclist()') ? '' : '%#SpaceVim_statusline_c#' . getloclist(winnr(),{'title' : 0}).title . '%#SpaceVim_statusline_c_SpaceVim_statusline_z#' . s:lsep ) : '') | |
endif | |
9 0.000006 elseif &filetype ==# 'defx' | |
return '%#SpaceVim_statusline_ia#' . s:winnr(1) . '%#SpaceVim_statusline_ia_SpaceVim_statusline_b#' . s:lsep . '%#SpaceVim_statusline_b# defx %#SpaceVim_statusline_b_SpaceVim_statusline_c#' . s:lsep . ' ' | |
9 0.000005 elseif &filetype ==# 'Fuzzy' | |
return '%#SpaceVim_statusline_a_bold# Fuzzy %#SpaceVim_statusline_a_SpaceVim_statusline_b#' . s:lsep . '%#SpaceVim_statusline_b# %{fuzzy#statusline()} %#SpaceVim_statusline_b_SpaceVim_statusline_c#' . s:lsep | |
9 0.000006 elseif &filetype ==# 'SpaceVimFindArgv' | |
return '%#SpaceVim_statusline_a_bold# Find %#SpaceVim_statusline_a_SpaceVim_statusline_b#' . s:lsep | |
9 0.000006 elseif &filetype ==# 'gista-list' | |
return '%#SpaceVim_statusline_ia#' . s:winnr(1) . '%#SpaceVim_statusline_ia_SpaceVim_statusline_b#' . s:lsep . '%#SpaceVim_statusline_b# Gista %#SpaceVim_statusline_b_SpaceVim_statusline_c#' . s:lsep . ' ' | |
9 0.000008 elseif &buftype ==# 'terminal' | |
let st = '%#SpaceVim_statusline_ia#' . s:winnr(1) . '%#SpaceVim_statusline_ia_SpaceVim_statusline_b#' . s:lsep . '%#SpaceVim_statusline_b# Terminal %#SpaceVim_statusline_b_SpaceVim_statusline_c#' . s:lsep | |
if !empty(get(b:, '_spacevim_shell', '')) | |
let st .= '%#SpaceVim_statusline_c# %{b:_spacevim_shell} %#SpaceVim_statusline_c_SpaceVim_statusline_z#' . s:lsep | |
endif | |
return st | |
9 0.000005 elseif &filetype ==# 'git-status' | |
return '%#SpaceVim_statusline_ia#' . s:winnr(1) . '%#SpaceVim_statusline_ia_SpaceVim_statusline_b#' . s:lsep . '%#SpaceVim_statusline_b# Git status %#SpaceVim_statusline_b_SpaceVim_statusline_c#' . s:lsep . ' ' | |
9 0.000005 elseif &filetype ==# 'git-commit' | |
return '%#SpaceVim_statusline_ia#' . s:winnr(1) . '%#SpaceVim_statusline_ia_SpaceVim_statusline_b#' . s:lsep . '%#SpaceVim_statusline_b# Git commit %#SpaceVim_statusline_b_SpaceVim_statusline_c#' . s:lsep . ' ' | |
9 0.000005 elseif &filetype ==# 'git-diff' | |
return '%#SpaceVim_statusline_ia#' . s:winnr(1) . '%#SpaceVim_statusline_ia_SpaceVim_statusline_b#' . s:lsep . '%#SpaceVim_statusline_b# Git diff %#SpaceVim_statusline_b_SpaceVim_statusline_c#' . s:lsep . ' ' | |
9 0.000005 elseif &filetype ==# 'git-blame' | |
return '%#SpaceVim_statusline_ia#' . s:winnr(1) . '%#SpaceVim_statusline_ia_SpaceVim_statusline_b#' . s:lsep . '%#SpaceVim_statusline_b# Git blame %#SpaceVim_statusline_b_SpaceVim_statusline_c#' . s:lsep . ' ' | |
9 0.000005 elseif &filetype ==# 'git-config' | |
return '%#SpaceVim_statusline_ia#' . s:winnr(1) . '%#SpaceVim_statusline_ia_SpaceVim_statusline_b#' . s:lsep . '%#SpaceVim_statusline_b# Git config %#SpaceVim_statusline_b_SpaceVim_statusline_c#' . s:lsep . ' ' | |
9 0.000005 elseif &filetype ==# 'git-log' | |
return '%#SpaceVim_statusline_ia#' . s:winnr(1) . '%#SpaceVim_statusline_ia_SpaceVim_statusline_b#' . s:lsep . '%#SpaceVim_statusline_b# Git log %#SpaceVim_statusline_b_SpaceVim_statusline_c#' . s:lsep . ' ' | |
9 0.000005 elseif &filetype ==# 'vader-result' | |
return '%#SpaceVim_statusline_ia#' . s:winnr(1) . '%#SpaceVim_statusline_ia_SpaceVim_statusline_b#' . s:lsep . '%#SpaceVim_statusline_b# Vader result %#SpaceVim_statusline_b_SpaceVim_statusline_c#' . s:lsep . ' ' | |
9 0.000005 elseif &filetype ==# 'gina-status' | |
return '%#SpaceVim_statusline_ia#' . s:winnr(1) . '%#SpaceVim_statusline_ia_SpaceVim_statusline_b#' . s:lsep . '%#SpaceVim_statusline_b# Gina status %#SpaceVim_statusline_b_SpaceVim_statusline_c#' . s:lsep . ' ' | |
9 0.000005 elseif &filetype ==# 'gina-commit' | |
return '%#SpaceVim_statusline_ia#' . s:winnr(1) . '%#SpaceVim_statusline_ia_SpaceVim_statusline_b#' . s:lsep . '%#SpaceVim_statusline_b# Gina commit %#SpaceVim_statusline_b_SpaceVim_statusline_c#' . s:lsep . ' ' | |
9 0.000010 elseif &filetype ==# 'diff' && bufname('%') =~# '^gina://' | |
return '%#SpaceVim_statusline_ia#' . s:winnr(1) . '%#SpaceVim_statusline_ia_SpaceVim_statusline_b#' . s:lsep . '%#SpaceVim_statusline_b# Gina diff %#SpaceVim_statusline_b_SpaceVim_statusline_c#' . s:lsep . ' ' | |
9 0.000005 elseif &filetype ==# 'nerdtree' | |
return '%#SpaceVim_statusline_ia#' . s:winnr(1) . '%#SpaceVim_statusline_ia_SpaceVim_statusline_b#' . s:lsep . '%#SpaceVim_statusline_b# Nerdtree %#SpaceVim_statusline_b_SpaceVim_statusline_c#' . s:lsep . ' ' | |
9 0.000005 elseif &filetype ==# 'Mundo' | |
return '%#SpaceVim_statusline_ia#' . s:winnr(1) . '%#SpaceVim_statusline_ia_SpaceVim_statusline_b#' . s:lsep . '%#SpaceVim_statusline_b# Mundo %#SpaceVim_statusline_b_SpaceVim_statusline_c#' . s:lsep . ' ' | |
9 0.000005 elseif &filetype ==# 'MundoDiff' | |
return '%#SpaceVim_statusline_ia#' . s:winnr(1) . '%#SpaceVim_statusline_ia_SpaceVim_statusline_b#' . s:lsep . '%#SpaceVim_statusline_b# MundoDiff %#SpaceVim_statusline_b_SpaceVim_statusline_c#' . s:lsep . ' ' | |
9 0.000006 elseif &filetype ==# 'SpaceVimMessageBuffer' | |
return '%#SpaceVim_statusline_ia#' . s:winnr(1) . '%#SpaceVim_statusline_ia_SpaceVim_statusline_b#' . s:lsep . '%#SpaceVim_statusline_b# Message %#SpaceVim_statusline_b_SpaceVim_statusline_c#' . s:lsep . ' ' | |
9 0.000005 elseif &filetype ==# 'startify' | |
8 0.000004 try | |
8 0.001843 0.000955 call fugitive#detect(getcwd()) | |
8 0.000047 catch | |
8 0.000006 endtry | |
8 0.000086 0.000059 let st = '%#SpaceVim_statusline_ia#' . s:winnr(1) . '%#SpaceVim_statusline_ia_SpaceVim_statusline_b#' . s:lsep . '%#SpaceVim_statusline_b# startify %#SpaceVim_statusline_b_SpaceVim_statusline_c#' . s:lsep . ' ' | |
8 0.000016 if index(g:spacevim_statusline_left_sections, 'vcs') != -1 | |
let st .= '%#SpaceVim_statusline_c#' . call(s:registed_sections['vcs'], []) . '%#SpaceVim_statusline_c_SpaceVim_statusline_z#' . s:lsep | |
8 0.000003 endif | |
8 0.000005 return st | |
1 0.000001 elseif &buftype ==# 'nofile' && bufname('%') ==# '__LanguageClient__' | |
return '%#SpaceVim_statusline_a# LanguageClient %#SpaceVim_statusline_a_SpaceVim_statusline_b#' . s:lsep . '%#SpaceVim_statusline_b# ' . &filetype . ' %#SpaceVim_statusline_b_SpaceVim_statusline_c#' . s:lsep | |
1 0.000001 elseif &filetype ==# 'SpaceVimLayerManager' | |
return '%#SpaceVim_statusline_a#' . s:winnr(1) . '%#SpaceVim_statusline_a_SpaceVim_statusline_b#' . s:lsep . '%#SpaceVim_statusline_b# LayerManager %#SpaceVim_statusline_b_SpaceVim_statusline_c#' . s:lsep | |
1 0.000001 elseif &filetype ==# 'SpaceVimGitLogPopup' | |
return '%#SpaceVim_statusline_a# Git log popup %#SpaceVim_statusline_a_SpaceVim_statusline_b#' . s:lsep | |
1 0.000001 elseif &filetype ==# 'respones.idris' | |
return '%#SpaceVim_statusline_a# Idris Response %#SpaceVim_statusline_a_SpaceVim_statusline_b#' . s:lsep | |
1 0.000001 elseif &filetype ==# 'SpaceVimWinDiskManager' | |
return '%#SpaceVim_statusline_a# WinDisk %#SpaceVim_statusline_a_SpaceVim_statusline_b#' . s:lsep | |
1 0.000001 elseif &filetype ==# 'SpaceVimTodoManager' | |
return '%#SpaceVim_statusline_a# TODO manager %#SpaceVim_statusline_a_SpaceVim_statusline_b#' . s:lsep | |
1 0.000001 elseif &filetype ==# 'SpaceVimGitBranchManager' | |
return '%#SpaceVim_statusline_a# Branch manager %#SpaceVim_statusline_a_SpaceVim_statusline_b#' . s:lsep | |
1 0.000001 elseif &filetype ==# 'SpaceVimPlugManager' | |
return '%#SpaceVim_statusline_a#' . s:winnr(1) . '%#SpaceVim_statusline_a_SpaceVim_statusline_b#' . s:lsep . '%#SpaceVim_statusline_b# PlugManager %#SpaceVim_statusline_b_SpaceVim_statusline_c#' . s:lsep | |
1 0.000001 elseif &filetype ==# 'SpaceVimTabsManager' | |
return '%#SpaceVim_statusline_a#' . s:winnr(1) . '%#SpaceVim_statusline_a_SpaceVim_statusline_b#' . s:lsep . '%#SpaceVim_statusline_b# TabsManager %#SpaceVim_statusline_b_SpaceVim_statusline_c#' . s:lsep . ' ' | |
1 0.000000 elseif &filetype ==# 'fzf' | |
return '%#SpaceVim_statusline_a_bold# FZF %#SpaceVim_statusline_a_SpaceVim_statusline_b#' . s:lsep . '%#SpaceVim_statusline_b# %{SpaceVim#layers#fzf#sources()} %#SpaceVim_statusline_b_SpaceVim_statusline_c#' . s:lsep | |
1 0.000000 elseif &filetype ==# 'denite' | |
return '%#SpaceVim_statusline_a_bold# %{SpaceVim#layers#core#statusline#denite_mode()} ' . '%#SpaceVim_statusline_a_bold_SpaceVim_statusline_b#' . s:lsep . ' ' . '%#SpaceVim_statusline_b#%{SpaceVim#layers#core#statusline#denite_status("sources")} %#SpaceVim_statusline_b_SpaceVim_statusline_z#' . s:lsep . ' ' . '%#SpaceVim_statusline_z#%=%#SpaceVim_statusline_c_SpaceVim_statusline_z#' . s:rsep . '%#SpaceVim_statusline_c# %{SpaceVim#layers#core#statusline#denite_status("path") . SpaceVim#layers#core#statusline#denite_status("linenr")}' | |
1 0.000001 elseif &filetype ==# 'denite-filter' | |
return '%#SpaceVim_statusline_a_bold# Filter %#SpaceVim_statusline_a_SpaceVim_statusline_b#' | |
1 0.000000 elseif &filetype ==# 'unite' | |
return '%#SpaceVim_statusline_a_bold#%{SpaceVim#layers#core#statusline#unite_mode()} Unite ' . '%#SpaceVim_statusline_a_bold_SpaceVim_statusline_b#' . s:lsep . ' %{get(unite#get_context(), "buffer_name", "")} ' . '%#SpaceVim_statusline_b_SpaceVim_statusline_c#' . s:lsep . ' ' . '%#SpaceVim_statusline_c# %{unite#get_status_string()} ' | |
1 0.000001 elseif &filetype ==# 'SpaceVimFlyGrep' | |
return '%#SpaceVim_statusline_a_bold# FlyGrep %#SpaceVim_statusline_a_SpaceVim_statusline_b#' . s:lsep . '%#SpaceVim_statusline_b# %{SpaceVim#plugins#flygrep#mode()} %#SpaceVim_statusline_b_SpaceVim_statusline_c#' . s:lsep . '%#SpaceVim_statusline_c# %{getcwd()} %#SpaceVim_statusline_c_SpaceVim_statusline_b#' . s:lsep . '%#SpaceVim_statusline_b# %{SpaceVim#plugins#flygrep#lineNr()} %#SpaceVim_statusline_b_SpaceVim_statusline_z#' . s:lsep . ' ' | |
1 0.000001 elseif &filetype ==# 'TransientState' | |
return '%#SpaceVim_statusline_a# Transient State %#SpaceVim_statusline_a_SpaceVim_statusline_b#' | |
1 0.000000 elseif &filetype ==# 'vimcalc' | |
return '%#SpaceVim_statusline_a#' . s:winnr() . ' VimCalc %#SpaceVim_statusline_a_SpaceVim_statusline_b#' | |
1 0.000001 elseif &filetype ==# 'HelpDescribe' | |
return '%#SpaceVim_statusline_a# HelpDescribe %#SpaceVim_statusline_a_SpaceVim_statusline_b#' | |
1 0.000000 elseif &filetype ==# 'SpaceVimRunner' | |
return '%#SpaceVim_statusline_a# Runner %#SpaceVim_statusline_a_SpaceVim_statusline_b# %{SpaceVim#plugins#runner#status()}' | |
1 0.000001 elseif &filetype ==# 'SpaceVimREPL' | |
return '%#SpaceVim_statusline_a# REPL %#SpaceVim_statusline_a_SpaceVim_statusline_b# %{SpaceVim#plugins#repl#status()}' | |
1 0.000000 elseif &filetype ==# 'VimMailClient' | |
return '%#SpaceVim_statusline_a# VimMail %#SpaceVim_statusline_a_SpaceVim_statusline_b# %{mail#client#win#status().dir}' | |
1 0.000001 elseif &filetype ==# 'SpaceVimQuickFix' | |
return '%#SpaceVim_statusline_a# SpaceVimQuickFix %#SpaceVim_statusline_a_SpaceVim_statusline_b#' | |
1 0.000000 elseif &filetype ==# 'VebuggerShell' | |
return '%#SpaceVim_statusline_ia#' . s:winnr(1) . '%#SpaceVim_statusline_ia_SpaceVim_statusline_b#' . s:lsep . '%#SpaceVim_statusline_b# VebuggerShell %#SpaceVim_statusline_b_SpaceVim_statusline_c#' . s:lsep | |
1 0.000000 elseif &filetype ==# 'VebuggerTerminal' | |
return '%#SpaceVim_statusline_ia#' . s:winnr(1) . '%#SpaceVim_statusline_ia_SpaceVim_statusline_b#' . s:lsep . '%#SpaceVim_statusline_b# VebuggerTerminal %#SpaceVim_statusline_b_SpaceVim_statusline_c#' . s:lsep | |
1 0.000000 endif | |
1 0.000001 if a:0 > 0 | |
1 0.145462 0.000010 return s:active() | |
else | |
return s:inactive() | |
endif | |
FUNCTION matchup#init() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup.vim line 10 | |
Called 1 time | |
Total time: 0.003318 | |
Self time: 0.000068 | |
count total (s) self (s) | |
1 0.000145 0.000051 call matchup#perf#tic('loading') | |
1 0.000232 0.000004 call s:init_options() | |
1 0.001285 0.000003 call s:init_modules() | |
1 0.001628 0.000004 call s:init_default_mappings() | |
1 0.000028 0.000004 call matchup#perf#toc('loading', 'init_done') | |
FUNCTION <SNR>111_define_failsafe_key_mappings() | |
Defined: ~/.SpaceVim/bundle/vim-textobj-user/autoload/textobj/user.vim line 782 | |
Called 3 times | |
Total time: 0.000512 | |
Self time: 0.000386 | |
count total (s) self (s) | |
7 0.000011 for [obj_name, specs] in items(a:obj_specs) | |
20 0.000025 for [spec_name, spec_info] in items(specs) | |
16 0.000092 0.000062 if !s:is_non_ui_property_name(spec_name) | |
8 0.000130 0.000035 let lhs = s:interface_mapping_name(a:plugin_name, obj_name, spec_name) | |
8 0.000103 if maparg(lhs, 'v') == '' | |
let rhs = printf('<SID>fail(%s)', string(substitute(lhs, '<', '<LT>', 'g'))) | |
let mapf = spec_name =~# '^move-[npNP]$' ? 's:noremap' : 's:objnoremap' | |
call {mapf}(0, '<expr>' . lhs, rhs) | |
8 0.000002 endif | |
16 0.000004 endif | |
16 0.000010 unlet spec_info " to avoid E706. | |
20 0.000006 endfor | |
7 0.000003 endfor | |
FUNCTION <SNR>200_sort() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/helper.vim line 238 | |
Called 4 times | |
Total time: 0.009894 | |
Self time: 0.000190 | |
count total (s) self (s) | |
4 0.000006 let ignorecase_save = &ignorecase | |
4 0.000002 try | |
4 0.000024 0.000019 let &ignorecase = vimfiler#util#is_windows() | |
4 0.000019 if a:type =~? '^n\%[one]$' | |
" Ignore. | |
let files = a:files | |
4 0.000006 elseif a:type =~? '^s\%[ize]$' | |
let files = vimfiler#util#sort_by( a:files, 'v:val.vimfiler__filesize') | |
4 0.000012 elseif a:type =~? '^e\%[xtension]$' | |
let files = vimfiler#util#sort_by( a:files, 'v:val.vimfiler__extension') | |
4 0.000016 elseif a:type =~? '^f\%[ilename]$' | |
4 0.009732 0.000033 let files = vimfiler#helper#_sort_human( a:files, vimfiler#util#has_lua()) | |
elseif a:type =~? '^t\%[ime]$' | |
let files = vimfiler#util#sort_by( a:files, 'v:val.vimfiler__filetime') | |
elseif a:type =~? '^m\%[anual]$' | |
" Not implemented. | |
let files = a:files | |
else | |
throw 'Invalid sort type.' | |
4 0.000001 endif | |
4 0.000003 finally | |
4 0.000013 let &ignorecase = ignorecase_save | |
4 0.000002 endtry | |
4 0.000010 if a:type =~ '^\u' | |
" Reverse order. | |
let files = reverse(files) | |
4 0.000002 endif | |
4 0.000003 return files | |
FUNCTION <SNR>111_interface_mapping_name() | |
Defined: ~/.SpaceVim/bundle/vim-textobj-user/autoload/textobj/user.vim line 501 | |
Called 32 times | |
Total time: 0.000412 | |
Self time: 0.000412 | |
count total (s) self (s) | |
32 0.000203 let _ = printf('<Plug>(textobj-%s-%s-%s)', a:plugin_name, a:obj_name, substitute(a:spec_name, '^\(move\|select\)', '', '')) | |
32 0.000103 let _ = substitute(_, '-\+', '-', 'g') | |
32 0.000074 let _ = substitute(_, '-\ze)$', '', '') | |
32 0.000019 return _ | |
FUNCTION vimfiler#set_histories() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler.vim line 159 | |
Called 1 time | |
Total time: 0.000002 | |
Self time: 0.000002 | |
count total (s) self (s) | |
1 0.000001 let s:vimfiler_current_histories = a:histories | |
FUNCTION <SNR>23__function() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/checkers.vim line 305 | |
Called 10 times | |
Total time: 0.000025 | |
Self time: 0.000025 | |
count total (s) self (s) | |
10 0.000023 return function(a:fstr) | |
FUNCTION vimproc#util#has_iconv() | |
Defined: ~/.SpaceVim/bundle/vimproc.vim/autoload/vimproc/util.vim line 37 | |
Called 1 time | |
Total time: 0.000003 | |
Self time: 0.000003 | |
count total (s) self (s) | |
" On Windows, some encodings can be converted by iconv() even if | |
" libiconv.dll is not available. | |
1 0.000003 return (has('iconv') || (s:is_windows && exists('*iconv'))) | |
FUNCTION <SNR>98_enable_cursorline() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/autocmds.vim line 76 | |
Called 3 times | |
Total time: 0.000011 | |
Self time: 0.000011 | |
count total (s) self (s) | |
3 0.000003 if g:_spacevim_cursorline_flag == -1 | |
3 0.000006 setl cursorline | |
3 0.000001 endif | |
FUNCTION 230() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/sources/file.vim line 52 | |
Called 2 times | |
Total time: 0.000107 | |
Self time: 0.000027 | |
count total (s) self (s) | |
2 0.000088 0.000008 let path = s:parse_path(a:args) | |
2 0.000004 if isdirectory(path) | |
2 0.000002 let type = 'directory' | |
2 0.000001 let info = path | |
elseif filereadable(path) | |
let type = 'file' | |
let info = [readfile(path), unite#sources#file#create_file_dict(path, '')] | |
else | |
" Ignore. | |
return [] | |
2 0.000000 endif | |
2 0.000002 return [type, info] | |
FUNCTION 231() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/sources/file.vim line 69 | |
Called 2 times | |
Total time: 0.010316 | |
Self time: 0.000755 | |
count total (s) self (s) | |
2 0.000081 0.000009 let path = s:parse_path(a:args) | |
2 0.000004 if isdirectory(path) | |
" let start = reltime() | |
2 0.000044 let context = deepcopy(a:context) | |
2 0.000002 let context.is_vimfiler = 1 | |
2 0.000002 let context.path .= path | |
2 0.006757 0.000016 let candidates = self.change_candidates(a:args, context) | |
2 0.000123 call filter(candidates, 'v:val.action__path !~ "/\\.\\.\\?$"') | |
" echomsg reltimestr(reltime(start)) | |
elseif filereadable(path) | |
let candidates = [ unite#sources#file#create_file_dict(path, '') ] | |
else | |
let candidates = [] | |
2 0.000001 endif | |
2 0.000005 let exts = s:is_windows ? escape(substitute($PATHEXT . ';.LNK', ';', '\\|', 'g'), '.') : '' | |
2 0.000007 let old_dir = getcwd() | |
2 0.000002 if path !=# old_dir | |
2 0.000001 try | |
2 0.000046 0.000014 call unite#util#lcd(path) | |
catch | |
call unite#print_error('cd failed in "' . path . '"') | |
return [] | |
2 0.000001 endtry | |
2 0.000000 endif | |
" Set vimfiler property. | |
92 0.000044 for candidate in candidates | |
90 0.003087 0.000402 call unite#sources#file#create_vimfiler_dict(candidate, exts) | |
92 0.000029 endfor | |
2 0.000002 if path !=# old_dir | |
2 0.000040 0.000009 call unite#util#lcd(old_dir) | |
2 0.000000 endif | |
2 0.000004 return candidates | |
FUNCTION SpaceVim#plugins#searcher#count() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/plugins/searcher.vim line 84 | |
Called 1 time | |
Total time: 0.000003 | |
Self time: 0.000003 | |
count total (s) self (s) | |
1 0.000002 if empty(s:rst) | |
1 0.000000 return '' | |
else | |
return ' ' . len(s:rst) . ' items ' | |
endif | |
FUNCTION vimfiler#init#_vimfiler_directory() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/init.vim line 154 | |
Called 1 time | |
Total time: 0.044708 | |
Self time: 0.000112 | |
count total (s) self (s) | |
" Set current unite. | |
1 0.000012 0.000004 let b:vimfiler.unite = unite#get_current_unite() | |
" Set current directory. | |
1 0.000018 0.000005 let current = vimfiler#util#substitute_path_separator(a:directory) | |
1 0.000001 let b:vimfiler.current_dir = current | |
1 0.000005 if b:vimfiler.current_dir !~ '[:/]$' | |
let b:vimfiler.current_dir .= '/' | |
1 0.000000 endif | |
1 0.000001 let b:vimfiler.all_files = [] | |
1 0.000001 let b:vimfiler.current_files = [] | |
1 0.000001 let b:vimfiler.original_files = [] | |
1 0.000001 let b:vimfiler.all_files_len = 0 | |
1 0.000001 let b:vimfiler.is_visible_ignore_files = 0 | |
1 0.000001 let b:vimfiler.simple = a:context.simple | |
1 0.000001 let b:vimfiler.directory_cursor_pos = {} | |
1 0.000001 let b:vimfiler.current_mask = '' | |
1 0.000003 let b:vimfiler.column_names = split(a:context.columns, ':') | |
1 0.000022 0.000006 let b:vimfiler.columns = vimfiler#init#_columns( b:vimfiler.column_names, b:vimfiler.context) | |
1 0.000001 let b:vimfiler.syntaxes = [] | |
1 0.001210 0.000006 let b:vimfiler.filters = vimfiler#init#_filters( g:vimfiler_ignore_filters, b:vimfiler.context) | |
1 0.000002 let b:vimfiler.global_sort_type = a:context.sort_type | |
1 0.000001 let b:vimfiler.local_sort_type = a:context.sort_type | |
1 0.000001 let b:vimfiler.is_safe_mode = a:context.safe | |
1 0.000002 let b:vimfiler.winwidth = winwidth(0) | |
1 0.000001 let b:vimfiler.another_vimfiler_bufnr = -1 | |
1 0.000002 let b:vimfiler.prompt_linenr = b:vimfiler.context.status + b:vimfiler.context.parent | |
1 0.000001 let b:vimfiler.all_files_len = 0 | |
1 0.000001 let b:vimfiler.status = '' | |
1 0.000003 let b:vimfiler.statusline = (b:vimfiler.context.explorer ? '' : '*vimfiler* : ') . '%{vimfiler#get_status_string()}' . "\ %=%{exists('b:vimfiler') ? printf('%4d/%d',line('.'), b:vimfiler.prompt_linenr+b:vimfiler.all_files_len) : ''}" | |
1 0.000070 0.000004 call vimfiler#default_settings() | |
1 0.002477 0.000006 call vimfiler#mappings#define_default_mappings(a:context) | |
1 0.004926 0.000003 set filetype=vimfiler | |
1 0.000004 if a:context.split && has('vim_starting') && isdirectory(bufname('%')) | |
execute a:context.direction (a:context.horizontal ? 'split' : 'vsplit') | |
enew | |
wincmd p | |
1 0.000000 endif | |
1 0.000001 if b:vimfiler.context.double | |
" Create another vimfiler. | |
call vimfiler#mappings#create_another_vimfiler() | |
wincmd p | |
1 0.000000 endif | |
1 0.001190 0.000007 call vimfiler#handler#_event_bufwin_enter(bufnr('%')) | |
1 0.000010 0.000006 call vimfiler#view#_define_syntax() | |
1 0.018714 0.000006 call vimfiler#view#_force_redraw_all_vimfiler() | |
" Initialize cursor position. | |
1 0.000002 call cursor(b:vimfiler.prompt_linenr+1, 0) | |
1 0.000001 if a:context.auto_cd | |
" Change current directory. | |
call vimfiler#mappings#_change_vim_current_dir() | |
1 0.000000 endif | |
1 0.016007 0.000006 call vimfiler#mappings#cd(b:vimfiler.current_dir) | |
FUNCTION <SNR>218_recache_candidates_loop() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/candidates.vim line 203 | |
Called 2 times | |
Total time: 0.012059 | |
Self time: 0.000429 | |
count total (s) self (s) | |
2 0.000022 0.000006 let unite = unite#get_current_unite() | |
2 0.000729 0.000008 let input_len = unite#util#strchars(a:context.input) | |
2 0.000002 let candidate_sources = [] | |
2 0.000002 let unite.max_source_candidates = 0 | |
4 0.000005 for source in unite.sources | |
" Set context. | |
2 0.000002 let context = source.unite__context | |
2 0.000002 let context.input = a:context.input | |
2 0.000002 let context.path = a:context.path | |
2 0.000002 let context.source_name = source.name | |
" Check required pattern length. | |
2 0.000003 if input_len < source.required_pattern_length && !context.unite__is_vimfiler | |
continue | |
2 0.000001 endif | |
2 0.000002 if source.required_pattern_length > 0 && !source.is_forced | |
" Forced redraw. | |
let context.is_redraw = 1 | |
let source.is_forced = 1 | |
2 0.000001 else | |
2 0.000002 let context.is_redraw = a:context.is_redraw | |
2 0.000001 endif | |
2 0.000002 let context.is_changed = a:context.is_changed | |
2 0.000003 let context.is_invalidate = source.unite__is_invalidate | |
2 0.000002 let context.is_list_input = a:context.is_list_input | |
2 0.000071 0.000015 let context.input_list = unite#helper#get_input_list(context.input) | |
2 0.000004 let context.unite__max_candidates = (unite.disabled_max_candidates ? 0 : source.max_candidates) | |
2 0.000001 if context.unite__is_vimfiler | |
" Disable ignore feature. | |
2 0.000002 let source.ignore_pattern = '' | |
2 0.000003 let source.ignore_globs = [] | |
2 0.000001 endif | |
" let start = reltime() | |
2 0.010507 0.000026 let source_candidates = s:get_source_candidates(source) | |
" echomsg string(reltimestr(reltime(start))) | |
" Call pre_filter hook. | |
2 0.000008 let context.candidates = source_candidates | |
2 0.000200 0.000028 call unite#helper#call_hook([source], 'on_pre_filter') | |
" Restore current filters. | |
2 0.000004 if empty(unite.current_matchers) | |
2 0.000082 0.000023 let unite.current_matchers = unite#util#convert2list( unite#custom#get_profile(unite.profile_name, 'matchers')) | |
2 0.000001 endif | |
2 0.000003 if empty(unite.current_sorters) | |
2 0.000049 0.000014 let unite.current_sorters = unite#util#convert2list( unite#custom#get_profile(unite.profile_name, 'sorters')) | |
2 0.000001 endif | |
2 0.000003 if empty(unite.current_converters) | |
2 0.000059 0.000016 let unite.current_converters = unite#util#convert2list( unite#custom#get_profile(unite.profile_name, 'converters')) | |
2 0.000001 endif | |
" Set filters. | |
2 0.000005 let matchers = !empty(unite.current_matchers) ? unite.current_matchers : source.matchers | |
2 0.000005 let sorters = !empty(unite.current_sorters) ? unite.current_sorters : source.sorters | |
2 0.000004 let converters = !empty(unite.current_converters) ? unite.current_converters : source.converters | |
2 0.000005 if sorters ==# ['sorter_nothing'] || unite.context.unite__is_vimfiler | |
2 0.000002 let sorters = [] | |
2 0.000000 endif | |
2 0.000006 let context.unite__is_sort_nothing = empty(sorters) && context.unite__is_interactive | |
2 0.000003 let source.unite__orig_len_candidates = len(source_candidates) | |
2 0.000008 let unite.max_source_candidates += (context.unite__is_sort_nothing && context.unite__max_candidates > 0) ? source.max_candidates : source.unite__orig_len_candidates | |
2 0.000001 if !unite.context.unite__is_vimfiler | |
" Call filters. | |
let source_candidates = unite#helper#call_source_filters( matchers + sorters + converters, source_candidates, context, source) | |
if context.unite__max_candidates > 0 | |
let source_candidates = source_candidates[: context.unite__max_candidates - 1] | |
endif | |
2 0.000001 endif | |
" Get execute_command. | |
2 0.000005 let a:context.execute_command = context.execute_command | |
2 0.000011 let source.unite__candidates += source_candidates | |
2 0.000003 if !empty(source_candidates) | |
2 0.000064 0.000018 call add(candidate_sources, unite#helper#convert_source_name(source.name)) | |
2 0.000000 endif | |
4 0.000005 endfor | |
2 0.000003 if !a:context.hide_source_names | |
let unite.max_source_name = max(map(candidate_sources, 'len(v:val)')) + 1 | |
2 0.000001 endif | |
FUNCTION <SNR>154_SetUpForNewFiletype() | |
Defined: ~/.SpaceVim/bundle/nerdcommenter/plugin/NERD_commenter.vim line 511 | |
Called 6 times | |
Total time: 0.000354 | |
Self time: 0.000213 | |
count total (s) self (s) | |
6 0.000008 let filetype = a:filetype | |
"for compound filetypes, if we don't know how to handle the full filetype | |
"then break it down and use the first part that we know how to handle | |
6 0.000018 if filetype =~# '\.' && !has_key(s:delimiterMap, filetype) | |
let filetypes = split(a:filetype, '\.') | |
for i in filetypes | |
if has_key(s:delimiterMap, i) | |
let filetype = i | |
break | |
endif | |
endfor | |
6 0.000002 endif | |
6 0.000008 let b:NERDSexyComMarker = '' | |
6 0.000014 if has_key(s:delimiterMap, filetype) | |
let b:NERDCommenterDelims = s:delimiterMap[filetype] | |
for i in ['left', 'leftAlt', 'right', 'rightAlt'] | |
if !has_key(b:NERDCommenterDelims, i) | |
let b:NERDCommenterDelims[i] = '' | |
endif | |
endfor | |
for i in ['nested', 'nestedAlt'] | |
if !has_key(b:NERDCommenterDelims, i) | |
let b:NERDCommenterDelims[i] = 0 | |
endif | |
endfor | |
" if g:NERD_<filetype>_alt_style is defined, use the alternate style | |
let b:NERDCommenterFirstInit = getbufvar(1,'NERDCommenterFirstInit') | |
if exists('g:NERDAltDelims_'.filetype) && eval('g:NERDAltDelims_'.filetype) && !b:NERDCommenterFirstInit | |
call s:SwitchToAlternativeDelimiters(0) | |
let b:NERDCommenterFirstInit = 1 | |
endif | |
6 0.000002 else | |
6 0.000181 0.000040 let b:NERDCommenterDelims = s:CreateDelimMapFromCms() | |
6 0.000003 endif | |
FUNCTION <SNR>205_sort_by() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/vital/_unite/Data/List.vim line 120 | |
Called 2 times | |
Total time: 0.000030 | |
Self time: 0.000016 | |
count total (s) self (s) | |
2 0.000007 let pairs = map(a:list, printf('[v:val, %s]', a:expr)) | |
2 0.000023 0.000009 return map(s:sort(pairs, 'a:a[1] ==# a:b[1] ? 0 : a:a[1] ># a:b[1] ? 1 : -1'), 'v:val[0]') | |
FUNCTION vimfiler#util#sort_by() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/util.vim line 101 | |
Called 1 time | |
Total time: 0.000085 | |
Self time: 0.000008 | |
count total (s) self (s) | |
1 0.000085 0.000008 return call(s:get_list().sort_by, a:000) | |
FUNCTION vimfiler#init#_get_filetype() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/init.vim line 644 | |
Called 90 times | |
Total time: 0.001218 | |
Self time: 0.001142 | |
count total (s) self (s) | |
90 0.000132 let ext = tolower(a:file.vimfiler__extension) | |
90 0.000486 0.000410 if (vimfiler#util#is_windows() && ext ==? 'LNK') || get(a:file, 'vimfiler__ftype', '') ==# 'link' | |
" Symbolic link. | |
2 0.000001 return '[L]' | |
88 0.000049 elseif a:file.vimfiler__is_directory | |
" Directory. | |
44 0.000017 return '[D]' | |
44 0.000052 elseif has_key(g:vimfiler_extensions.text, ext) | |
" Text. | |
return '[T]' | |
44 0.000046 elseif has_key(g:vimfiler_extensions.image, ext) | |
" Image. | |
return '[I]' | |
44 0.000042 elseif has_key(g:vimfiler_extensions.archive, ext) | |
" Archive. | |
return '[A]' | |
44 0.000043 elseif has_key(g:vimfiler_extensions.multimedia, ext) | |
" Multimedia. | |
return '[M]' | |
44 0.000106 elseif a:file.vimfiler__filename =~ '^\.' || has_key(g:vimfiler_extensions.system, ext) | |
" System. | |
38 0.000016 return '[S]' | |
6 0.000003 elseif a:file.vimfiler__is_executable | |
" Execute. | |
return '[X]' | |
6 0.000002 else | |
" Others filetype. | |
6 0.000003 return ' ' | |
endif | |
FUNCTION SpaceVim#api#logger#get() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/logger.vim line 34 | |
Called 1 time | |
Total time: 0.000005 | |
Self time: 0.000005 | |
count total (s) self (s) | |
1 0.000005 return deepcopy(s:self) | |
FUNCTION <SNR>141_set() | |
Defined: ~/.SpaceVim/bundle/delimitMate/autoload/delimitMate.vim line 15 | |
Called 138 times | |
Total time: 0.001576 | |
Self time: 0.001576 | |
count total (s) self (s) | |
138 0.000143 let scope = a:0 ? a:1 : 's' | |
138 0.000145 let bufnr = bufnr('%') | |
138 0.000187 if !exists('s:options[bufnr]') | |
2 0.000003 let s:options[bufnr] = {} | |
138 0.000035 endif | |
138 0.000078 if scope == 's' | |
138 0.000191 let name = 's:options.' . bufnr . '.' . a:name | |
else | |
let name = scope . ':delimitMate_' . a:name | |
if exists('name') | |
exec 'unlet! ' . name | |
endif | |
138 0.000029 endif | |
138 0.000311 exec 'let ' . name . ' = a:value' | |
FUNCTION unite#init#_default_scripts() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/init.vim line 480 | |
Called 4 times | |
Total time: 0.002836 | |
Self time: 0.001236 | |
count total (s) self (s) | |
4 0.000008 let names = empty(a:names) ? [''] : a:names | |
4 0.000006 if a:kind ==# 'sources' && !empty(a:names) | |
4 0.000005 call add(names, 'alias') | |
4 0.000001 endif | |
4 0.000034 0.000019 let loaded_defaults = unite#variables#loaded_defaults() | |
4 0.000009 if get(loaded_defaults, a:kind, '') ==# &runtimepath | |
return | |
4 0.000001 endif | |
4 0.000032 0.000014 let static = unite#variables#static() | |
12 0.000009 for name in names | |
8 0.000028 if name != '' && has_key(static[a:kind], name) || (a:kind ==# 'sources' && name ==# 'alias' && has_key(loaded_defaults, 'alias')) | |
6 0.000003 continue | |
2 0.000001 endif | |
2 0.000001 if name == '' | |
let loaded_defaults[a:kind] = &runtimepath | |
2 0.000002 elseif a:kind ==# 'sources' && name ==# 'alias' | |
1 0.000001 let loaded_defaults.alias = 1 | |
2 0.000000 endif | |
" Search files by prefix or postfix. | |
2 0.000001 if a:kind ==# 'filters' | |
let prefix_name = substitute(name,'^\%(matcher\|sorter\|converter\)_[^/_-]\+\zs[/_-].*$', '', '') | |
let postfix_name = '' | |
let postfix_name2 = '' | |
2 0.000001 else | |
2 0.000015 let prefix_name = matchstr(name, '^[^/_-]\+') | |
2 0.000007 let postfix_name = matchstr(name, '[^/_-]\+$') | |
2 0.000018 let postfix_name2 = matchstr(name, '^[^/_-]\+[/_-]\+\zs[^/_-]\+') | |
2 0.000001 endif | |
2 0.000002 let files = [] | |
4 0.000644 0.000019 for prefix in filter(unite#util#uniq([ prefix_name, postfix_name, postfix_name2]), "name == '' || v:val != ''") | |
2 0.000525 let files += split(globpath(&runtimepath, 'autoload/unite/'.a:kind.'/'.prefix.'*.vim', 1), '\n') | |
4 0.000002 endfor | |
2 0.000002 if a:kind == 'sources' | |
2 0.000013 call filter(files, "index(g:unite_ignore_source_files, fnamemodify(v:val, ':t')) < 0") | |
2 0.000001 endif | |
2 0.000001 try | |
6 0.000005 for file in files | |
4 0.001226 0.000294 let define = unite#{a:kind}#{fnamemodify(file, ':t:r')}#define() | |
9 0.000046 0.000036 for dict in filter(unite#util#convert2list(define), '!empty(v:val) && !has_key(static[a:kind], v:val.name)') | |
5 0.000008 let static[a:kind][dict.name] = dict | |
9 0.000003 endfor | |
4 0.000003 unlet define | |
6 0.000002 endfor | |
catch | |
call unite#print_error(v:throwpoint) | |
call unite#print_error(v:exception) | |
call unite#print_error( 'Error occurred in source initialization!') | |
call unite#print_error( 'Source name is ' . file) | |
2 0.000001 endtry | |
6 0.000006 endfor | |
FUNCTION <SNR>216_redraw_prompt() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/view.vim line 167 | |
Called 5 times | |
Total time: 0.000571 | |
Self time: 0.000430 | |
count total (s) self (s) | |
5 0.000005 if &filetype !=# 'vimfiler' | |
return | |
5 0.000002 endif | |
5 0.000015 let mask = (!b:vimfiler.is_visible_ignore_files && b:vimfiler.current_mask == '') ? '' : '[' . (b:vimfiler.is_visible_ignore_files ? '.:' : '') . b:vimfiler.current_mask . ']' | |
5 0.000011 let sort = (b:vimfiler.local_sort_type ==# b:vimfiler.global_sort_type) ? '' : ' <' . b:vimfiler.local_sort_type . '>' | |
5 0.000005 let safe = (b:vimfiler.is_safe_mode) ? ' *safe*' : '' | |
5 0.000008 let prefix = (b:vimfiler.source ==# 'file') ? '' : b:vimfiler.source.':' | |
5 0.000005 let dir = b:vimfiler.current_dir | |
5 0.000004 if b:vimfiler.source ==# 'file' | |
5 0.000269 0.000128 let home = vimfiler#util#substitute_path_separator(expand('~')).'/' | |
5 0.000009 if stridx(dir, home) >= 0 | |
5 0.000010 let dir = '~/' . dir[len(home):] | |
5 0.000002 endif | |
5 0.000001 endif | |
5 0.000010 if strwidth(prefix.dir) > winwidth(0) | |
let dir = fnamemodify(substitute(dir, '/$', '', ''), ':t') | |
5 0.000001 endif | |
5 0.000011 if dir !~ '/$' | |
let dir .= '/' | |
5 0.000001 endif | |
5 0.000011 let b:vimfiler.status = prefix . dir . mask . sort . safe | |
5 0.000005 let context = b:vimfiler.context | |
" Append up directory. | |
5 0.000007 let modifiable_save = &l:modifiable | |
5 0.000004 let readonly_save = &l:readonly | |
5 0.000009 setlocal modifiable | |
5 0.000005 setlocal noreadonly | |
5 0.000002 try | |
5 0.000013 if (context.parent || empty(b:vimfiler.current_files)) && getline(b:vimfiler.prompt_linenr) != '..' | |
1 0.000001 if line('$') == 1 | |
" Note: Dirty Hack for open file. | |
1 0.000005 call append(1, '') | |
1 0.000002 call setline(2, '..') | |
1 0.000004 silent delete _ | |
else | |
call setline(1, '..') | |
1 0.000000 endif | |
5 0.000001 endif | |
5 0.000003 if context.status | |
5 0.000007 if getline(1) == '..' | |
1 0.000004 call append(0, '[in]: ' . b:vimfiler.status) | |
4 0.000001 else | |
4 0.000017 call setline(1, '[in]: ' . b:vimfiler.status) | |
5 0.000001 endif | |
5 0.000001 endif | |
5 0.000003 finally | |
5 0.000010 let &l:modifiable = modifiable_save | |
5 0.000007 let &l:readonly = readonly_save | |
5 0.000003 endtry | |
FUNCTION 246() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/filters/matcher_ignore_pattern.vim line 16 | |
Called 5 times | |
Total time: 0.001396 | |
Self time: 0.001376 | |
count total (s) self (s) | |
35 0.000073 0.000054 for pattern in filter(vimfiler#util#convert2list( g:vimfiler_ignore_pattern), "v:val != ''") | |
30 0.001295 call filter(a:files, "v:val.vimfiler__filename !~? pattern") | |
35 0.000012 endfor | |
5 0.000003 return a:files | |
FUNCTION 248() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/unite/filters/matcher_vimfiler_mask.vim line 16 | |
Called 5 times | |
Total time: 0.000011 | |
Self time: 0.000011 | |
count total (s) self (s) | |
5 0.000005 if a:context.input == '' | |
5 0.000004 return a:candidates | |
endif | |
let candidates = filter(copy(a:candidates), "v:val.vimfiler__is_directory") | |
let input = a:context.input | |
if &ignorecase | |
let input = tolower(input) | |
endif | |
let masks = map(split(input, '\\\@<! '), 'substitute(v:val, "\\\\ ", " ", "g")') | |
for candidate in filter(copy(a:candidates), "!v:val.vimfiler__is_directory") | |
let matched = 0 | |
for mask in masks | |
if mask =~ '^!' | |
if mask == '!' | |
continue | |
endif | |
" Exclusion. | |
let mask = unite#util#escape_match(mask) | |
if candidate.vimfiler__abbr !~ mask | |
let matched = 1 | |
break | |
endif | |
elseif mask =~ '\\\@<!\*' | |
" Wildcard. | |
let mask = unite#util#escape_match(mask) | |
if candidate.vimfiler__abbr =~ mask | |
let matched = 1 | |
break | |
endif | |
else | |
let mask = substitute(mask, '\\\(.\)', '\1', 'g') | |
if stridx((&ignorecase ? tolower(candidate.vimfiler__abbr) : candidate.vimfiler__abbr), mask) != -1 | |
let matched = 1 | |
break | |
endif | |
endif | |
endfor | |
if matched | |
call add(candidates, candidate) | |
endif | |
endfor | |
return candidates | |
FUNCTION vimfiler#default_settings() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler.vim line 30 | |
Called 1 time | |
Total time: 0.000066 | |
Self time: 0.000005 | |
count total (s) self (s) | |
1 0.000066 0.000005 return vimfiler#init#_default_settings() | |
FUNCTION vimfiler#get_file_index() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler.vim line 106 | |
Called 5 times | |
Total time: 0.000030 | |
Self time: 0.000023 | |
count total (s) self (s) | |
5 0.000028 0.000022 return a:line_num - vimfiler#get_file_offset(a:vimfiler) - 1 | |
FUNCTION <SNR>82__dot_to_sharp() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/vital/unite.vim line 235 | |
Called 4 times | |
Total time: 0.000016 | |
Self time: 0.000016 | |
count total (s) self (s) | |
4 0.000015 return substitute(a:name, '\.', '#', 'g') | |
FUNCTION SpaceVim#layers#format#plugins() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/format.vim line 26 | |
Called 1 time | |
Total time: 0.000003 | |
Self time: 0.000003 | |
count total (s) self (s) | |
1 0.000003 return [ [g:_spacevim_root_dir . 'bundle/neoformat', {'merged' : 0, 'loadconf' : 1 , 'loadconf_before' : 1}], ] | |
FUNCTION vital#_unite#Prelude#import() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/vital/_unite/Prelude.vim line 5 | |
Called 1 time | |
Total time: 0.000049 | |
Self time: 0.000049 | |
count total (s) self (s) | |
1 0.000047 return map({'escape_pattern': '', 'is_funcref': '', 'path2directory': '', 'wcswidth': '', 'is_string': '', 'input_helper': '', 'is_number': '', 'is_cygwin': '', 'path2project_directory': '', 'strwidthpart_reverse': '', 'input_safe': '', 'is_list': '', 'truncate_skipping': '', 'glob': '', 'truncate': '', 'is_dict': '', 'set_default': '', 'is_numeric': '', 'getchar_safe': '', 'substitute_path_separator': '', 'is_mac': '', 'strwidthpart': '', 'getchar': '', 'is_unix': '', 'is_windows': '', 'globpath': '', 'escape_file_searching': '', 'is_float': '', 'smart_execute_command': ''}, 'function("s:" . v:key)') | |
FUNCTION 81() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/vim/highlight.vim line 122 | |
Called 27 times | |
Total time: 0.003590 | |
Self time: 0.000527 | |
count total (s) self (s) | |
27 0.000503 0.000091 let hi_a = self.group2dict(a:a) | |
27 0.000429 0.000073 let hi_b = self.group2dict(a:b) | |
27 0.000091 let hi_a_b = { 'name' : a:a . '_' . a:b, 'guibg' : hi_b.guibg, 'guifg' : hi_a.guibg, 'ctermbg' : hi_b.ctermbg, 'ctermfg' : hi_a.ctermbg, } | |
27 0.000084 let hi_b_a = { 'name' : a:b . '_' . a:a, 'guibg' : hi_a.guibg, 'guifg' : hi_b.guibg, 'ctermbg' : hi_a.ctermbg, 'ctermfg' : hi_b.ctermbg, } | |
27 0.001243 0.000074 call self.hi(hi_a_b) | |
27 0.001220 0.000094 call self.hi(hi_b_a) | |
FUNCTION matchup#delim#get_current() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup/delim.vim line 28 | |
Called 3 times | |
Total time: 0.000441 | |
Self time: 0.000029 | |
count total (s) self (s) | |
3 0.000440 0.000028 return s:get_delim(extend({ 'direction' : 'current', 'type' : a:type, 'side' : a:side,}, get(a:, '1', {}))) | |
FUNCTION SpaceVim#layers#core#config() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/core.vim line 54 | |
Called 1 time | |
Total time: 0.007071 | |
Self time: 0.000870 | |
count total (s) self (s) | |
1 0.000002 if g:spacevim_filemanager ==# 'nerdtree' | |
noremap <silent> <F3> :NERDTreeToggle<CR> | |
1 0.000000 endif | |
1 0.000005 let g:matchup_matchparen_status_offscreen = 0 | |
" Unimpaired bindings | |
" Quickly add empty lines | |
1 0.000012 nnoremap <silent> [<Space> :<c-u>put! =repeat(nr2char(10), v:count1)<cr> | |
1 0.000008 nnoremap <silent> ]<Space> :<c-u>put =repeat(nr2char(10), v:count1)<cr> | |
"]e or [e move current line ,count can be used | |
1 0.000007 nnoremap <silent>[e :<c-u>execute 'move -1-'. v:count1<cr> | |
1 0.000006 nnoremap <silent>]e :<c-u>execute 'move +'. v:count1<cr> | |
" [b or ]n go to previous or next buffer | |
1 0.000006 nnoremap <silent> [b :<c-u>bN \| stopinsert<cr> | |
1 0.000005 nnoremap <silent> ]b :<c-u>bn \| stopinsert<cr> | |
" [f or ]f go to next or previous file in dir | |
1 0.000006 nnoremap <silent> ]f :<c-u>call <SID>next_file()<cr> | |
1 0.000005 nnoremap <silent> [f :<c-u>call <SID>previous_file()<cr> | |
" [l or ]l go to next and previous error | |
1 0.000005 nnoremap <silent> [l :lprevious<cr> | |
1 0.000005 nnoremap <silent> ]l :lnext<cr> | |
" [c or ]c go to next or previous vcs hunk | |
" [w or ]w go to next or previous window | |
1 0.000005 nnoremap <silent> [w :call <SID>previous_window()<cr> | |
1 0.000006 nnoremap <silent> ]w :call <SID>next_window()<cr> | |
" [t or ]t for next and previous tab | |
1 0.000005 nnoremap <silent> [t :tabprevious<cr> | |
1 0.000005 nnoremap <silent> ]t :tabnext<cr> | |
" [p or ]p for p and P | |
1 0.000004 nnoremap <silent> [p P | |
1 0.000004 nnoremap <silent> ]p p | |
" Select last paste | |
1 0.000006 nnoremap <silent><expr> gp '`['.strpart(getregtype(), 0, 1).'`]' | |
1 0.000084 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['f', 's'], 'write', 'save-current-file', 1) | |
1 0.000076 0.000007 call SpaceVim#mapping#space#def('nnoremap', ['f', 'S'], 'wall', 'save-all-files', 1) | |
" help mappings | |
1 0.000074 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['h', 'I'], 'call SpaceVim#issue#report()', 'report-issue-or-bug', 1) | |
1 0.000072 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['h', 'l'], 'SPLayer -l', 'list-all-layers', 1) | |
1 0.000070 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['h', 'L'], 'SPRuntimeLog', 'view-runtime-log', 1) | |
" @todo move this key binding to fuzzy layer | |
1 0.000072 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['h', 'm'], 'Unite manpage', 'search available man pages', 1) | |
1 0.000070 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['h', 'k'], 'LeaderGuide "[KEYs]"', 'show-top-level-bindings', 1) | |
1 0.000074 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['j', '0'], 'm`^', 'jump-to-beginning-of-line', 0) | |
1 0.000073 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['j', '$'], 'm`g_', 'jump-to-end-of-line', 0) | |
1 0.000074 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['j', 'b'], '<C-o>', 'jump-backward', 0) | |
1 0.000072 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['j', 'f'], '<C-i>', 'jump-forward', 0) | |
" file tree key bindings | |
1 0.000083 0.000011 call SpaceVim#mapping#space#def('nnoremap', ['j', 'd'], 'call call(' . string(s:_function('s:explore_current_dir')) . ', [0])', 'explore-current-directory', 1) | |
1 0.000080 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['j', 'D'], 'call call(' . string(s:_function('s:explore_current_dir')) . ', [1])', 'split-explore-current-directory', 1) | |
" call SpaceVim#mapping#space#def('nmap', ['j', 'j'], '<Plug>(easymotion-overwin-f)', 'jump to a character', 0) | |
1 0.000091 0.000006 call SpaceVim#mapping#space#def('nmap', ['j', 'j'], '<Plug>(better-easymotion-overwin-f)', 'jump-or-select-to-a-character', 0, 1) | |
1 0.000011 nnoremap <silent> <Plug>(better-easymotion-overwin-f) :call <SID>better_easymotion_overwin_f(0)<Cr> | |
1 0.000009 xnoremap <silent> <Plug>(better-easymotion-overwin-f) :<C-U>call <SID>better_easymotion_overwin_f(1)<Cr> | |
1 0.000077 0.000006 call SpaceVim#mapping#space#def('nmap', ['j', 'J'], '<Plug>(easymotion-overwin-f2)', 'jump-to-suite-of-two-characters', 0) | |
1 0.000074 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['j', 'k'], 'j==', 'goto-next-line-and-indent', 0) | |
" call SpaceVim#mapping#space#def('nmap', ['j', 'l'], '<Plug>(easymotion-overwin-line)', 'jump to a line', 0) | |
1 0.000088 0.000006 call SpaceVim#mapping#space#def('nmap', ['j', 'l'], '<Plug>(better-easymotion-overwin-line)', 'jump-or-select-to-a-line', 0, 1) | |
1 0.000011 nnoremap <silent> <Plug>(better-easymotion-overwin-line) :call <SID>better_easymotion_overwin_line(0)<Cr> | |
1 0.000009 xnoremap <silent> <Plug>(better-easymotion-overwin-line) :<C-U>call <SID>better_easymotion_overwin_line(1)<Cr> | |
1 0.000078 0.000006 call SpaceVim#mapping#space#def('nmap', ['j', 'v'], '<Plug>(easymotion-overwin-line)', 'jump-to-a-line', 0) | |
1 0.000075 0.000005 call SpaceVim#mapping#space#def('nmap', ['j', 'w'], '<Plug>(easymotion-overwin-w)', 'jump-to-a-word', 0) | |
1 0.000074 0.000005 call SpaceVim#mapping#space#def('nmap', ['j', 'q'], '<Plug>(easymotion-overwin-line)', 'jump-to-a-line', 0) | |
1 0.000074 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['j', 'n'], "i\<cr>\<esc>", 'sp-newline', 0) | |
1 0.000073 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['j', 'o'], "i\<cr>\<esc>k$", 'open-line', 0) | |
1 0.000082 0.000010 call SpaceVim#mapping#space#def('nnoremap', ['j', 's'], 'call call(' . string(s:_function('s:split_string')) . ', [0])', 'split-sexp', 1) | |
1 0.000079 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['j', '.'], 'call call(' . string(s:_function('s:jump_transient_state')) . ', [])', 'jump-transient-state', 1) | |
1 0.000078 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['j', 'S'], 'call call(' . string(s:_function('s:split_string')) . ', [1])', 'split-and-add-newline', 1) | |
1 0.000079 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['w', 'r'], 'call call(' . string(s:_function('s:next_window')) . ', [])', 'rotate-windows-forward', 1) | |
1 0.000077 0.000008 call SpaceVim#mapping#space#def('nnoremap', ['w', 'R'], 'call call(' . string(s:_function('s:previous_window')) . ', [])', 'rotate-windows-backward', 1) | |
1 0.000077 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['j', 'u'], 'call call(' . string(s:_function('s:jump_to_url')) . ', [])', 'jump-to-url', 1) | |
1 0.000074 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['<Tab>'], 'try | b# | catch | endtry', 'last-buffer', 1) | |
1 0.000003 let lnum = expand('<slnum>') + s:lnum - 1 | |
1 0.000085 0.000013 call SpaceVim#mapping#space#def('nnoremap', ['b', '.'], 'call call(' . string(s:_function('s:buffer_transient_state')) . ', [])', ['buffer-transient-state', [ '[SPC b .] is to open the buffer transient state', '', 'Definition: ' . s:filename . ':' . lnum, ] ] , 1) | |
1 0.000072 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['b', 'd'], 'call SpaceVim#mapping#close_current_buffer()', 'delete-this-buffer', 1) | |
1 0.000096 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['b', 'D'], 'call SpaceVim#mapping#kill_visible_buffer_choosewin()', 'delete-the-selected-buffer', 1) | |
1 0.000076 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['b', '<C-d>'], 'call SpaceVim#mapping#clear_buffers()', 'kill-other-buffers', 1) | |
1 0.000074 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['b', 'c'], 'call SpaceVim#mapping#clear_saved_buffers()', 'clear-all-saved-buffers', 1) | |
1 0.000081 0.000010 call SpaceVim#mapping#space#def('nnoremap', ['b', 'e'], 'call call(' . string(s:_function('s:safe_erase_buffer')) . ', [])', 'safe-erase-buffer', 1) | |
1 0.000074 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['b', 'h'], 'Startify', 'open-welcome-screen', 1) | |
1 0.000081 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['b', 'm'], 'call call(' . string(s:_function('s:open_message_buffer')) . ', [])', 'open-message-buffer', 1) | |
1 0.000073 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['b', 'P'], 'normal! ggdG"+P', 'copy-clipboard-to-whole-buffer', 1) | |
1 0.000080 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['b', 'R'], 'call call(' . string(s:_function('s:safe_revert_buffer')) . ', [])', 'safe-revert-buffer', 1) | |
1 0.000071 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['b', 'Y'], 'normal! ggVG"+y``', 'copy-whole-buffer-to-clipboard', 1) | |
1 0.000071 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['b', 'w'], 'setl readonly!', 'read-only-mode', 1) | |
1 0.000002 let g:_spacevim_mappings_space.b.N = {'name' : '+New empty buffer'} | |
1 0.000073 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['b', 'N', 'h'], 'topleft vertical new', 'new-empty-buffer-left', 1) | |
1 0.000074 0.000007 call SpaceVim#mapping#space#def('nnoremap', ['b', 'N', 'j'], 'rightbelow new', 'new-empty-buffer-below', 1) | |
1 0.000072 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['b', 'N', 'k'], 'new', 'new-empty-buffer-above', 1) | |
1 0.000072 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['b', 'N', 'l'], 'rightbelow vertical new', 'new-empty-buffer-right', 1) | |
1 0.000072 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['b', 'N', 'n'], 'enew', 'new-empty-buffer', 1) | |
" file mappings | |
1 0.000074 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['f', 'b'], 'BookmarkShowAll', 'unite-filtered-bookmarks', 1) | |
1 0.000002 let g:_spacevim_mappings_space.f.C = {'name' : '+Files/convert'} | |
1 0.000073 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['f', 'C', 'd'], 'update | e ++ff=dos | w', 'unix2dos', 1) | |
1 0.000074 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['f', 'C', 'u'], 'update | e ++ff=dos | setlocal ff=unix | w', 'dos2unix', 1) | |
1 0.000084 0.000010 call SpaceVim#mapping#space#def('nnoremap', ['f', 'D'], 'call call(' . string(s:_function('s:delete_current_buffer_file')) . ', [])', 'delete-current-buffer-file', 1) | |
1 0.000072 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['f', 'F'], 'normal! gf', 'open-cursor-file', 1) | |
1 0.000074 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['f', '/'], 'call SpaceVim#plugins#find#open()', 'find-files', 1) | |
1 0.000002 if s:SYS.isWindows | |
call SpaceVim#mapping#space#def('nnoremap', ['f', 'd'], 'call call(' . string(s:_function('s:ToggleWinDiskManager')) . ', [])', 'toggle-disk-manager', 1) | |
1 0.000000 endif | |
" file tree key bindings | |
1 0.000001 if g:spacevim_filemanager ==# 'vimfiler' | |
1 0.000071 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['f', 't'], 'VimFiler | doautocmd WinEnter', 'toggle-file-tree', 1) | |
1 0.000072 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['f', 'T'], 'VimFiler -no-toggle | doautocmd WinEnter', 'open-file-tree', 1) | |
1 0.000071 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['f', 'o'], 'VimFiler -find', 'find-file-in-file-tree', 1) | |
1 0.000071 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['b', 't'], 'VimFilerBufferDir -no-toggle', 'open-filetree-in-buffer-dir', 1) | |
elseif g:spacevim_filemanager ==# 'nerdtree' | |
call SpaceVim#mapping#space#def('nnoremap', ['f', 't'], 'NERDTreeToggle', 'toggle-file-tree', 1) | |
call SpaceVim#mapping#space#def('nnoremap', ['f', 'T'], 'NERDTree', 'show-file-tree', 1) | |
call SpaceVim#mapping#space#def('nnoremap', ['f', 'o'], 'NERDTreeFind', 'open-file-tree', 1) | |
call SpaceVim#mapping#space#def('nnoremap', ['b', 't'], 'NERDTree %', 'show-file-tree-at-buffer-dir', 1) | |
elseif g:spacevim_filemanager ==# 'defx' | |
" TODO: fix all these command | |
call SpaceVim#mapping#space#def('nnoremap', ['f', 't'], 'Defx', 'toggle-file-tree', 1) | |
call SpaceVim#mapping#space#def('nnoremap', ['f', 'T'], 'Defx -no-toggle', 'show-file-tree', 1) | |
call SpaceVim#mapping#space#def('nnoremap', ['f', 'o'], "Defx -no-toggle -search=`expand('%:p')` `stridx(expand('%:p'), getcwd()) < 0? expand('%:p:h'): getcwd()`", 'open-file-tree', 1) | |
call SpaceVim#mapping#space#def('nnoremap', ['b', 't'], 'exe "Defx -no-toggle " . fnameescape(expand("%:p:h"))', 'show-file-tree-at-buffer-dir', 1) | |
1 0.000000 endif | |
1 0.000072 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['f', 'y'], 'call SpaceVim#util#CopyToClipboard()', 'show-and-copy-buffer-filename', 1) | |
1 0.000071 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['f', 'Y'], 'call SpaceVim#util#CopyToClipboard(1)', 'show-and-copy-buffer-filename', 1) | |
1 0.000002 let g:_spacevim_mappings_space.f.v = {'name' : '+Vim/SpaceVim'} | |
1 0.000074 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['f', 'v', 'v'], 'let @+=g:spacevim_version | echo g:spacevim_version', 'display-and-copy-version', 1) | |
1 0.000002 let lnum = expand('<slnum>') + s:lnum - 1 | |
1 0.000076 0.000009 call SpaceVim#mapping#space#def('nnoremap', ['f', 'v', 'd'], 'SPConfig', ['open-custom-configuration', [ '[SPC f v d] is to open the custom configuration file for SpaceVim', '', 'Definition: ' . s:filename . ':' . lnum, ] ] , 1) | |
1 0.000002 let lnum = expand('<slnum>') + s:lnum - 1 | |
1 0.000084 0.000012 call SpaceVim#mapping#space#def('nnoremap', ['n', '-'], 'call call(' . string(s:_function('s:number_transient_state')) . ', ["-"])', ['decrease-number-under-cursor', [ '[SPC n -] is to decrease the number under the cursor, and open', 'the number translate state buffer', '', 'Definition: ' . s:filename . ':' . lnum, ] ] , 1) | |
1 0.000002 let lnum = expand('<slnum>') + s:lnum - 1 | |
1 0.000084 0.000012 call SpaceVim#mapping#space#def('nnoremap', ['n', '+'], 'call call(' . string(s:_function('s:number_transient_state')) . ', ["+"])', ['increase-number-under-cursor', [ '[SPC n +] is to increase the number under the cursor, and open', 'the number translate state buffer', '', 'Definition: ' . s:filename . ':' . lnum, ] ] , 1) | |
1 0.000007 let g:vimproc#download_windows_dll = 1 | |
" call SpaceVim#mapping#space#def('nnoremap', ['p', 't'], 'call SpaceVim#plugins#projectmanager#current_root()', 'find-project-root', 1) | |
1 0.000002 let g:_spacevim_mappings_space.p.t = {'name' : '+Tasks'} | |
1 0.000077 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['p', 't', 'e'], 'call SpaceVim#plugins#tasks#edit()', 'edit-project-task', 1) | |
1 0.000075 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['p', 't', 'r'], 'call SpaceVim#plugins#runner#run_task(SpaceVim#plugins#tasks#get())', 'pick-task-to-run', 1) | |
1 0.000073 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['p', 'k'], 'call SpaceVim#plugins#projectmanager#kill_project()', 'kill-all-project-buffers', 1) | |
1 0.000073 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['p', 'p'], 'call SpaceVim#plugins#projectmanager#list()', 'list-all-projects', 1) | |
1 0.000071 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['p', '/'], 'Grepper', 'fuzzy search for text in current project', 1) | |
1 0.000072 0.000006 call SpaceVim#mapping#space#def('nnoremap', ['q', 'q'], 'qa', 'prompt-kill-vim', 1) | |
1 0.000071 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['q', 'Q'], 'qa!', 'kill-vim', 1) | |
1 0.000003 if has('nvim') && s:SYS.isWindows | |
call SpaceVim#mapping#space#def('nnoremap', ['q', 'R'], 'call call(' . string(s:_function('s:restart_neovim_qt')) . ', [])', 'restrat-neovim-qt', 1) | |
1 0.000000 else | |
1 0.000071 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['q', 'R'], '', 'restart-vim(TODO)', 1) | |
1 0.000000 endif | |
1 0.000073 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['q', 'r'], '', 'restart-vim-resume-layouts(TODO)', 1) | |
1 0.000071 0.000005 call SpaceVim#mapping#space#def('nnoremap', ['q', 't'], 'tabclose!', 'kill-current-tab', 1) | |
1 0.000128 0.000032 call SpaceVim#mapping#gd#add('HelpDescribe', function('s:gotodef')) | |
1 0.000002 let g:_spacevim_mappings_space.c = {'name' : '+Comments'} | |
" | |
" Comments sections | |
" | |
" Toggles the comment state of the selected line(s). If the topmost selected | |
" line is commented, all selected lines are uncommented and vice versa. | |
1 0.000012 nnoremap <silent> <Plug>CommentToLine :call <SID>comment_to_line(0)<Cr> | |
1 0.000010 nnoremap <silent> <Plug>CommenterInvertYank :call <SID>comment_invert_yank(0)<Cr> | |
1 0.000009 vnoremap <silent> <Plug>CommenterInvertYank :call <SID>comment_invert_yank(1)<Cr> | |
1 0.000008 nnoremap <silent> <Plug>CommentToLineInvert :call <SID>comment_to_line(1)<Cr> | |
1 0.000008 nnoremap <silent> <Plug>CommentParagraphs :call <SID>comment_paragraphs(0)<Cr> | |
1 0.000008 nnoremap <silent> <Plug>CommentParagraphsInvert :call <SID>comment_paragraphs(1)<Cr> | |
1 0.000100 0.000007 call SpaceVim#mapping#space#def('nmap', ['c', 'a'], '<Plug>NERDCommenterAltDelims', 'switch-to-alternative-delims', 0, 1) | |
1 0.000091 0.000006 call SpaceVim#mapping#space#def('nmap', ['c', 'l'], '<Plug>NERDCommenterInvert', 'toggle-comment-lines', 0, 1) | |
1 0.000092 0.000006 call SpaceVim#mapping#space#def('nmap', ['c', 'L'], '<Plug>NERDCommenterComment', 'comment-lines', 0, 1) | |
1 0.000089 0.000006 call SpaceVim#mapping#space#def('nmap', ['c', 'u'], '<Plug>NERDCommenterUncomment', 'uncomment-lines', 0, 1) | |
1 0.000088 0.000006 call SpaceVim#mapping#space#def('nmap', ['c', 'v'], '<Plug>NERDCommenterInvertgv', 'toggle-visual-comment-lines', 0, 1) | |
1 0.000090 0.000006 call SpaceVim#mapping#space#def('nmap', ['c', 's'], '<Plug>NERDCommenterSexy', 'comment-with-sexy-layout', 0, 1) | |
1 0.000120 0.000006 call SpaceVim#mapping#space#def('nmap', ['c', 'y'], '<Plug>CommenterInvertYank', 'yank-and-toggle-comment', 0, 1) | |
1 0.000089 0.000006 call SpaceVim#mapping#space#def('nmap', ['c', 'Y'], '<Plug>NERDCommenterYank', 'yank-and-comment', 0, 1) | |
1 0.000089 0.000006 call SpaceVim#mapping#space#def('nmap', ['c', '$'], '<Plug>NERDCommenterToEOL', 'comment-from-cursor-to-end-of-line', 0, 1) | |
1 0.000087 0.000006 call SpaceVim#mapping#space#def('nmap', ['c', 't'], '<Plug>CommentToLineInvert', 'toggle-comment-until-line', 0, 1) | |
1 0.000088 0.000005 call SpaceVim#mapping#space#def('nmap', ['c', 'T'], '<Plug>CommentToLine', 'comment-until-the-line', 0, 1) | |
1 0.000087 0.000006 call SpaceVim#mapping#space#def('nmap', ['c', 'p'], '<Plug>CommentParagraphsInvert', 'toggle-comment-paragraphs', 0, 1) | |
1 0.000086 0.000006 call SpaceVim#mapping#space#def('nmap', ['c', 'P'], '<Plug>CommentParagraphs', 'comment-paragraphs', 0, 1) | |
1 0.000011 nnoremap <silent> <Plug>CommentOperator :set opfunc=<SID>commentOperator<Cr>g@ | |
1 0.000002 let g:_spacevim_mappings_space[';'] = ['call feedkeys("\<Plug>CommentOperator")', 'comment-operator'] | |
1 0.000008 nmap <silent> [SPC]; <Plug>CommentOperator | |
FUNCTION <SNR>111_normalize_property_values() | |
Defined: ~/.SpaceVim/bundle/vim-textobj-user/autoload/textobj/user.vim line 415 | |
Called 3 times | |
Total time: 0.000481 | |
Self time: 0.000447 | |
count total (s) self (s) | |
7 0.000012 for [obj_name, specs] in items(a:obj_specs) | |
20 0.000025 for [spec_name, spec_info] in items(specs) | |
16 0.000094 0.000061 if s:is_ui_property_name(spec_name) | |
8 0.000010 if type(spec_info) == type('') | |
8 0.000012 let specs[spec_name] = [spec_info] | |
8 0.000002 endif | |
16 0.000004 endif | |
16 0.000045 if spec_name =~# '-function$' | |
8 0.000012 if spec_info =~# '^s:' | |
if has_key(specs, 'sfile') | |
let specs[spec_name] = substitute(spec_info, '^s:', s:snr_prefix(specs['sfile']), '') | |
else | |
echoerr '"sfile" must be given to use a script-local function:' string(spec_name) '/' string(spec_info) | |
endif | |
8 0.000002 else | |
" Nothing to do. | |
8 0.000002 endif | |
8 0.000006 elseif spec_name ==# 'pattern' | |
if !has_key(specs, 'region-type') | |
let specs['region-type'] = 'v' | |
endif | |
if !has_key(specs, 'scan') | |
let specs['scan'] = 'forward' | |
endif | |
16 0.000004 endif | |
16 0.000009 unlet spec_info " to avoid E706. | |
20 0.000006 endfor | |
7 0.000003 endfor | |
FUNCTION <SNR>190_plugin_name() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vital/vimfiler.vim line 127 | |
Called 7 times | |
Total time: 0.000008 | |
Self time: 0.000008 | |
count total (s) self (s) | |
7 0.000007 return self._plugin_name | |
FUNCTION dein#tap() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein.vim line 85 | |
Called 72 times | |
Total time: 0.000623 | |
Self time: 0.000623 | |
count total (s) self (s) | |
72 0.000389 if !has_key(g:dein#_plugins, a:name) || !isdirectory(g:dein#_plugins[a:name].path) | return 0 | endif | |
72 0.000074 let g:dein#name = a:name | |
72 0.000101 let g:dein#plugin = g:dein#_plugins[a:name] | |
72 0.000032 return 1 | |
FUNCTION vimfiler#force_redraw_screen() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler.vim line 72 | |
Called 1 time | |
Total time: 0.015693 | |
Self time: 0.000007 | |
count total (s) self (s) | |
1 0.015693 0.000007 return call('vimfiler#view#_force_redraw_screen', a:000) | |
FUNCTION <SNR>148_on_vimenter() | |
Defined: ~/.SpaceVim/bundle/vim-startify/plugin/startify.vim line 36 | |
Called 1 time | |
Total time: 0.000128 | |
Self time: 0.000128 | |
count total (s) self (s) | |
1 0.000003 if !argc() && line2byte('$') == -1 | |
if get(g:, 'startify_session_autoload') && filereadable('Session.vim') | |
source Session.vim | |
elseif !get(g:, 'startify_disable_at_vimenter') | |
call startify#insane_in_the_membrane(1) | |
endif | |
1 0.000000 endif | |
1 0.000001 if get(g:, 'startify_update_oldfiles') | |
1 0.000108 call map(v:oldfiles, 'fnamemodify(v:val, ":p")') | |
1 0.000008 autocmd startify BufNewFile,BufRead,BufFilePre * call s:update_oldfiles(expand('<afile>:p')) | |
1 0.000000 endif | |
1 0.000002 autocmd! startify VimEnter | |
FUNCTION unite#variables#current_unite() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/variables.vim line 14 | |
Called 37 times | |
Total time: 0.000130 | |
Self time: 0.000130 | |
count total (s) self (s) | |
37 0.000050 if !exists('s:current_unite') | |
let s:current_unite = {} | |
37 0.000011 endif | |
37 0.000024 return s:current_unite | |
FUNCTION remote#define#FunctionOnHost() | |
Defined: /usr/share/nvim/runtime/autoload/remote/define.vim line 132 | |
Called 1 time | |
Total time: 0.000032 | |
Self time: 0.000022 | |
count total (s) self (s) | |
1 0.000015 0.000005 let group = s:GetNextAutocmdGroup() | |
1 0.000016 exe 'autocmd! '.group.' FuncUndefined '.a:name .' call remote#define#FunctionBootstrap("'.a:host.'"' . ', "'.a:method.'"' . ', '.string(a:sync) . ', "'.a:name.'"' . ', '.string(a:opts) . ', "'.group.'"' . ')' | |
FUNCTION <SNR>192_substitute_path_separator() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vital/_vimfiler/Prelude.vim line 318 | |
Called 10 times | |
Total time: 0.000022 | |
Self time: 0.000022 | |
count total (s) self (s) | |
10 0.000019 return s:is_windows ? substitute(a:path, '\\', '/', 'g') : a:path | |
FUNCTION <SNR>82__import_func_name() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/vital/unite.vim line 204 | |
Called 4 times | |
Total time: 0.000044 | |
Self time: 0.000028 | |
count total (s) self (s) | |
4 0.000043 0.000027 return printf('vital#_%s#%s#import', a:plugin_name, s:_dot_to_sharp(a:module_name)) | |
FUNCTION <SNR>121_init_oldstyle_ops() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup.vim line 99 | |
Called 1 time | |
Total time: 0.001071 | |
Self time: 0.000180 | |
count total (s) self (s) | |
1 0.000002 if get(g:, 'matchup_motion_enabled', 0) || get(g:, 'matchup_text_obj_enabled', 0) | |
5 0.000005 for l:opforce in ['', 'v', 'V', '<c-v>'] | |
4 0.000164 0.000021 call s:map('onore', '<expr> <plug>(matchup-o_'.l:opforce.')', '<sid>force('''.l:opforce.''')') | |
5 0.000002 endfor | |
1 0.000000 endif | |
1 0.000002 if get(g:, 'matchup_motion_enabled', 0) | |
5 0.000004 for l:opforce in ['', 'v', 'V', '<c-v>'] | |
4 0.000127 0.000017 call s:map('o', l:opforce.'%', '<plug>(matchup-o_'.l:opforce.')<plug>(matchup-%)') | |
4 0.000126 0.000019 call s:map('o', l:opforce.'g%', '<plug>(matchup-o_'.l:opforce.')<plug>(matchup-g%)') | |
4 0.000122 0.000017 call s:map('o', l:opforce.']%', '<plug>(matchup-o_'.l:opforce.')<plug>(matchup-]%)') | |
4 0.000121 0.000016 call s:map('o', l:opforce.'[%', '<plug>(matchup-o_'.l:opforce.')<plug>(matchup-[%)') | |
4 0.000121 0.000017 call s:map('o', l:opforce.'z%', '<plug>(matchup-o_'.l:opforce.')<plug>(matchup-z%)') | |
5 0.000002 endfor | |
1 0.000000 endif | |
1 0.000002 if get(g:, 'matchup_text_obj_enabled', 0) | |
5 0.000004 for l:opforce in ['', 'v', 'V', '<c-v>'] | |
4 0.000126 0.000017 call s:map('o', l:opforce.'i%', '<plug>(matchup-o_'.l:opforce.')<plug>(matchup-i%)') | |
4 0.000124 0.000017 call s:map('o', l:opforce.'a%', '<plug>(matchup-o_'.l:opforce.')<plug>(matchup-a%)') | |
5 0.000002 endfor | |
1 0.000000 endif | |
FUNCTION <SNR>121_misc_init_module() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup.vim line 323 | |
Called 1 time | |
Total time: 0.000042 | |
Self time: 0.000022 | |
count total (s) self (s) | |
1 0.000005 0.000003 call matchup#perf#tic('loading_module') | |
1 0.000003 command! MatchupReload call matchup#misc#reload() | |
1 0.000012 nnoremap <plug>(matchup-reload) :<c-u>MatchupReload<cr> | |
1 0.000022 0.000004 call matchup#perf#toc('loading_module', 'misc') | |
FUNCTION vimfiler#util#get_vital_cache() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/util.vim line 13 | |
Called 2 times | |
Total time: 0.001097 | |
Self time: 0.000017 | |
count total (s) self (s) | |
2 0.000003 if !exists('s:Cache') | |
1 0.001089 0.000010 let s:Cache = vimfiler#util#get_vital().import('System.Cache.Deprecated') | |
2 0.000001 endif | |
2 0.000001 return s:Cache | |
FUNCTION unite#sources#file#create_vimfiler_dict() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/sources/file.vim line 393 | |
Called 90 times | |
Total time: 0.002685 | |
Self time: 0.002685 | |
count total (s) self (s) | |
90 0.000033 try | |
90 0.000096 if len(a:candidate.action__path) > 200 | |
" Convert to relative path. | |
let current_dir_save = getcwd() | |
call unite#util#lcd(unite#helper#get_candidate_directory(a:candidate)) | |
let filename = unite#util#substitute_path_separator( fnamemodify(a:candidate.action__path, ':.')) | |
90 0.000024 else | |
90 0.000075 let filename = a:candidate.action__path | |
90 0.000023 endif | |
90 0.000235 let a:candidate.vimfiler__ftype = getftype(filename) | |
90 0.000036 finally | |
90 0.000092 if exists('current_dir_save') | |
" Restore path. | |
call unite#util#lcd(current_dir_save) | |
90 0.000022 endif | |
90 0.000029 endtry | |
90 0.000148 let a:candidate.vimfiler__filename = fnamemodify(a:candidate.action__path, ':t') | |
90 0.000088 let a:candidate.vimfiler__abbr = a:candidate.vimfiler__filename | |
90 0.000050 if !a:candidate.vimfiler__is_directory | |
44 0.000195 let a:candidate.vimfiler__is_executable = s:is_windows ? ('.'.fnamemodify(a:candidate.vimfiler__filename, ':e') =~? a:exts) : executable(a:candidate.action__path) | |
44 0.000129 let a:candidate.vimfiler__filesize = getfsize(a:candidate.action__path) | |
44 0.000022 if !s:is_windows | |
44 0.000132 let a:candidate.vimfiler__is_writable = filewritable(a:candidate.action__path) | |
44 0.000012 endif | |
46 0.000022 elseif !s:is_windows | |
46 0.000145 let a:candidate.vimfiler__is_writable = filewritable(a:candidate.action__path) | |
90 0.000024 endif | |
90 0.000196 let a:candidate.vimfiler__filetime = getftime(a:candidate.action__path) | |
FUNCTION <SNR>171_VimEnter() | |
Defined: ~/.SpaceVim/bundle/indentLine/after/plugin/indentLine.vim line 131 | |
Called 1 time | |
Total time: 0.000055 | |
Self time: 0.000046 | |
count total (s) self (s) | |
1 0.000002 let init_winnr = winnr() | |
1 0.000045 0.000036 noautocmd windo call s:DisableOnDiff() | |
1 0.000007 noautocmd exec init_winnr . "wincmd w" | |
FUNCTION vimfiler#init#_columns() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/init.vim line 296 | |
Called 1 time | |
Total time: 0.000016 | |
Self time: 0.000016 | |
count total (s) self (s) | |
1 0.000001 let columns = [] | |
1 0.000001 for column in a:columns | |
if !has_key(s:loaded_columns, column) | |
let name = substitute(column, '^[^/_]\+\zs[/_].*$', '', '') | |
for define in map(split(globpath(&runtimepath, 'autoload/vimfiler/columns/'.name.'*.vim'), '\n'), "vimfiler#columns#{fnamemodify(v:val, ':t:r')}#define()") | |
for dict in vimfiler#util#convert2list(define) | |
if !empty(dict) && !has_key(s:loaded_columns, dict.name) | |
let s:loaded_columns[dict.name] = dict | |
endif | |
endfor | |
unlet define | |
endfor | |
endif | |
if has_key(s:loaded_columns, column) | |
call add(columns, s:loaded_columns[column]) | |
endif | |
1 0.000001 endfor | |
1 0.000001 return columns | |
FUNCTION <SNR>111_objmap() | |
Defined: ~/.SpaceVim/bundle/vim-textobj-user/autoload/textobj/user.vim line 656 | |
Called 8 times | |
Total time: 0.000517 | |
Self time: 0.000083 | |
count total (s) self (s) | |
8 0.000142 0.000037 let v = s:proper_visual_mode(a:lhs) | |
8 0.000373 0.000044 call s:_map([v.'map', 'omap'], a:forced_p, a:lhs, a:rhs) | |
FUNCTION <SNR>178_CtagsErrMsg() | |
Defined: ~/.SpaceVim/bundle/tagbar/autoload/tagbar.vim line 470 | |
Called 1 time | |
Total time: 0.000032 | |
Self time: 0.000025 | |
count total (s) self (s) | |
1 0.000012 0.000005 call tagbar#debug#log(a:errmsg) | |
1 0.000002 let ctags_cmd = a:0 > 0 ? a:1 : '' | |
1 0.000001 let ctags_output = a:0 > 1 ? a:2 : '' | |
1 0.000001 let exit_code_set = a:0 > 2 | |
1 0.000001 if exit_code_set | |
let exit_code = a:3 | |
1 0.000000 endif | |
1 0.000001 if !a:silent | |
call s:warning(a:errmsg) | |
echomsg a:infomsg | |
if ctags_cmd == '' | |
return | |
endif | |
echomsg 'Executed command: "' . ctags_cmd . '"' | |
if ctags_output != '' | |
echomsg 'Command output:' | |
for line in split(ctags_output, '\n') | |
echomsg line | |
endfor | |
else | |
echomsg 'Command output is empty.' | |
endif | |
if exit_code_set | |
echomsg 'Exit code: ' . exit_code | |
endif | |
1 0.000000 endif | |
FUNCTION <SNR>181_close() | |
Defined: ~/.SpaceVim/bundle/vim-startify/autoload/startify.vim line 980 | |
Called 1 time | |
Total time: 0.000000 | |
Self time: 0.000000 | |
count total (s) self (s) | |
1 0.000028 if len(filter(range(0, bufnr('$')), 'buflisted(v:val)')) - &buflisted | |
if bufloaded(bufnr('#')) && bufnr('#') != bufnr('%') | |
buffer # | |
else | |
bnext | |
endif | |
1 0.000000 else | |
quit | |
endif | |
FUNCTION unite#variables#default_context() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/variables.vim line 146 | |
Called 4 times | |
Total time: 0.000096 | |
Self time: 0.000021 | |
count total (s) self (s) | |
4 0.000006 if !exists('s:default_context') | |
1 0.000080 0.000005 call s:initialize_default() | |
4 0.000001 endif | |
4 0.000003 return s:default_context | |
FUNCTION neomake#utils#IsRunningWindows() | |
Defined: ~/.SpaceVim/bundle/neomake/autoload/neomake/utils.vim line 89 | |
Called 2 times | |
Total time: 0.000008 | |
Self time: 0.000008 | |
count total (s) self (s) | |
2 0.000007 return has('win32') || has('win64') | |
FUNCTION SpaceVim#mapping#space#def() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/mapping/space.vim line 551 | |
Called 314 times | |
Total time: 0.021646 | |
Self time: 0.019155 | |
count total (s) self (s) | |
314 0.001618 0.001068 if s:has_map_to_spc() | |
return | |
314 0.000082 endif | |
314 0.000440 let is_visual = a:0 > 0 ? a:1 : 0 | |
314 0.000164 if a:is_cmd | |
283 0.000340 let cmd = ':<C-u>' . a:cmd . '<CR>' | |
283 0.000294 let xcmd = ':' . a:cmd . '<CR>' | |
283 0.000189 let lcmd = a:cmd | |
31 0.000009 else | |
31 0.000023 let cmd = a:cmd | |
31 0.000021 let xcmd = a:cmd | |
31 0.000071 let feedkey_m = a:m =~# 'nore' ? 'n' : 'm' | |
31 0.000063 if a:cmd =~? '^<plug>' | |
21 0.000039 let lcmd = 'call feedkeys("\' . a:cmd . '", "' . feedkey_m . '")' | |
10 0.000003 else | |
10 0.000017 let lcmd = 'call feedkeys("' . a:cmd . '", "' . feedkey_m . '")' | |
31 0.000008 endif | |
314 0.000069 endif | |
314 0.004307 exe a:m . ' <silent> [SPC]' . join(a:keys, '') . ' ' . substitute(cmd, '|', '\\|', 'g') | |
314 0.000212 if is_visual | |
35 0.000026 if a:m ==# 'nnoremap' | |
17 0.000166 exe 'xnoremap <silent> [SPC]' . join(a:keys, '') . ' ' . substitute(xcmd, '|', '\\|', 'g') | |
18 0.000012 elseif a:m ==# 'nmap' | |
18 0.000203 exe 'xmap <silent> [SPC]' . join(a:keys, '') . ' ' . substitute(xcmd, '|', '\\|', 'g') | |
35 0.000010 endif | |
314 0.000072 endif | |
314 0.000304 if len(a:keys) == 2 | |
162 0.000136 if type(a:desc) == 1 | |
133 0.000360 let g:_spacevim_mappings_space[a:keys[0]][a:keys[1]] = [lcmd, a:desc] | |
29 0.000008 else | |
29 0.000085 let g:_spacevim_mappings_space[a:keys[0]][a:keys[1]] = [lcmd, a:desc[0], a:desc[1]] | |
162 0.000041 endif | |
152 0.000121 elseif len(a:keys) == 3 | |
140 0.000116 if type(a:desc) == 1 | |
137 0.000391 let g:_spacevim_mappings_space[a:keys[0]][a:keys[1]][a:keys[2]] = [lcmd, a:desc] | |
3 0.000001 else | |
3 0.000010 let g:_spacevim_mappings_space[a:keys[0]][a:keys[1]][a:keys[2]] = [lcmd, a:desc[0], a:desc[1]] | |
140 0.000034 endif | |
12 0.000008 elseif len(a:keys) == 1 | |
12 0.000010 if type(a:desc) == 1 | |
10 0.000023 let g:_spacevim_mappings_space[a:keys[0]] = [lcmd, a:desc] | |
2 0.000000 else | |
2 0.000006 let g:_spacevim_mappings_space[a:keys[0]] = [lcmd, a:desc[0], a:desc[1]] | |
12 0.000003 endif | |
314 0.000068 endif | |
314 0.000241 if type(a:desc) == 1 | |
280 0.003206 0.001466 call SpaceVim#mapping#menu(a:desc, '[SPC]' . join(a:keys, ''), lcmd) | |
34 0.000009 else | |
34 0.000374 0.000172 call SpaceVim#mapping#menu(a:desc[0], '[SPC]' . join(a:keys, ''), lcmd) | |
314 0.000074 endif | |
314 0.001363 call extend(g:_spacevim_mappings_prefixs['[SPC]'], get(g:, '_spacevim_mappings_space', {})) | |
FUNCTION vimfiler#util#convert2list() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/util.vim line 216 | |
Called 8 times | |
Total time: 0.000027 | |
Self time: 0.000027 | |
count total (s) self (s) | |
8 0.000025 return type(a:expr) ==# type([]) ? copy(a:expr) : [a:expr] | |
FUNCTION dein#util#_tsort() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/util.vim line 555 | |
Called 3 times | |
Total time: 0.000153 | |
Self time: 0.000063 | |
count total (s) self (s) | |
3 0.000003 let sorted = [] | |
3 0.000002 let mark = {} | |
13 0.000008 for target in a:plugins | |
10 0.000127 0.000036 call s:tsort_impl(target, mark, sorted) | |
13 0.000005 endfor | |
3 0.000002 return sorted | |
FUNCTION <SNR>154_CreateDelimMapFromCms() | |
Defined: ~/.SpaceVim/bundle/nerdcommenter/plugin/NERD_commenter.vim line 552 | |
Called 6 times | |
Total time: 0.000140 | |
Self time: 0.000140 | |
count total (s) self (s) | |
6 0.000011 if &filetype ==# '' && exists('g:NERDDefaultDelims') | |
let delims = g:NERDDefaultDelims | |
for i in ['left', 'leftAlt', 'right', 'rightAlt'] | |
if !has_key(delims, i) | |
let delims[i] = '' | |
endif | |
endfor | |
return delims | |
6 0.000002 endif | |
6 0.000098 return { 'left': substitute(&commentstring, '\([^ \t]*\)\s*%s.*', '\1', ''), 'right': substitute(&commentstring, '.*%s\s*\(.*\)', '\1', 'g'), 'nested': 0, 'leftAlt': '', 'rightAlt': '', 'nestedAlt': 0} | |
FUNCTION <SNR>141_get() | |
Defined: ~/.SpaceVim/bundle/delimitMate/autoload/delimitMate.vim line 32 | |
Called 178 times | |
Total time: 0.001435 | |
Self time: 0.001435 | |
count total (s) self (s) | |
178 0.000109 if a:0 == 2 | |
return deepcopy(get(a:2, 'delimitMate_' . a:name, a:1)) | |
178 0.000092 elseif a:0 == 1 | |
16 0.000034 let bufoptions = get(s:options, bufnr('%'), {}) | |
16 0.000036 return deepcopy(get(bufoptions, a:name, a:1)) | |
162 0.000042 else | |
162 0.000463 return deepcopy(eval('s:options.' . bufnr('%') . '.' . a:name)) | |
endif | |
FUNCTION <SNR>83_is_mac() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/vital/_unite/Prelude.vim line 251 | |
Called 2 times | |
Total time: 0.000002 | |
Self time: 0.000002 | |
count total (s) self (s) | |
2 0.000002 return s:is_mac | |
FUNCTION <SNR>82__function() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/vital/unite.vim line 11 | |
Called 9 times | |
Total time: 0.000017 | |
Self time: 0.000017 | |
count total (s) self (s) | |
9 0.000015 return function(a:fstr) | |
FUNCTION <SNR>123_init_delim_lists_fast() | |
Defined: ~/.SpaceVim/bundle/vim-matchup/autoload/matchup/loader.vim line 468 | |
Called 4 times | |
Total time: 0.000314 | |
Self time: 0.000314 | |
count total (s) self (s) | |
4 0.000010 let l:lists = { 'delim_tex': { 'regex': [], 'regex_capture': [] } } | |
4 0.000012 let l:sets = split(a:mps, ',') | |
4 0.000004 let l:seen = {} | |
10 0.000009 for l:s in l:sets | |
10 0.000025 if l:s =~# '^\s*$' | continue | endif | |
6 0.000007 if l:s ==# '[:]' || l:s ==# '\[:\]' | |
2 0.000001 let l:s = '\[:]' | |
6 0.000002 endif | |
10 0.000010 if has_key(l:seen, l:s) | continue | endif | |
6 0.000007 let l:seen[l:s] = 1 | |
6 0.000015 let l:words = split(l:s, ':') | |
10 0.000008 if len(l:words) < 2 | continue | endif | |
6 0.000025 call add(l:lists.delim_tex.regex, { 'open' : l:words[0], 'close' : l:words[-1], 'mid' : '', 'mid_list' : [], 'augments' : {},}) | |
6 0.000037 call add(l:lists.delim_tex.regex_capture, { 'open' : l:words[0], 'close' : l:words[-1], 'mid' : '', 'mid_list' : [], 'need_grp' : {}, 'grp_renu' : {}, 'aug_comp' : {}, 'has_zs' : 0, 'extra_list' : [{}, {}], 'extra_info' : { 'has_zs': 0, },}) | |
10 0.000005 endfor | |
" TODO if this is empty! | |
" generate combined lists | |
4 0.000005 let l:lists.delim_all = {} | |
4 0.000003 let l:lists.all = {} | |
12 0.000011 for l:k in ['regex', 'regex_capture'] | |
8 0.000014 let l:lists.delim_all[l:k] = l:lists.delim_tex[l:k] | |
8 0.000011 let l:lists.all[l:k] = l:lists.delim_all[l:k] | |
12 0.000005 endfor | |
4 0.000003 return l:lists | |
FUNCTION <SNR>63_disable_plugins() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/plugins.vim line 93 | |
Called 1 time | |
Total time: 0.000007 | |
Self time: 0.000007 | |
count total (s) self (s) | |
1 0.000001 if g:spacevim_plugin_manager ==# 'dein' | |
1 0.000001 for name in a:plugin_list | |
call dein#disable(name) | |
1 0.000000 endfor | |
elseif g:spacevim_plugin_manager ==# 'neobundle' | |
for name in a:plugin_list | |
call neobundle#config#disable(name) | |
endfor | |
1 0.000000 endif | |
FUNCTION vimfiler#helper#_set_cursor() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/helper.vim line 223 | |
Called 1 time | |
Total time: 0.000054 | |
Self time: 0.000054 | |
count total (s) self (s) | |
1 0.000002 let pos = getpos('.') | |
1 0.000047 execute 'normal!' (line('.') <= winheight(0) ? 'zb' : line('$') - line('.') > winheight(0) ? 'zz' : line('$').'zb') | |
1 0.000004 call setpos('.', pos) | |
FUNCTION unite#sources#file_point#define() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/sources/file_point.vim line 10 | |
Called 1 time | |
Total time: 0.000001 | |
Self time: 0.000001 | |
count total (s) self (s) | |
1 0.000001 return s:source | |
FUNCTION unite#util#get_vital() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/util.vim line 10 | |
Called 4 times | |
Total time: 0.000302 | |
Self time: 0.000071 | |
count total (s) self (s) | |
4 0.000006 if !exists('s:V') | |
1 0.000289 0.000058 let s:V = vital#unite#new() | |
4 0.000001 endif | |
4 0.000002 return s:V | |
FUNCTION <SNR>63_getLayerPlugins() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/plugins.vim line 48 | |
Called 10 times | |
Total time: 0.052459 | |
Self time: 0.000196 | |
count total (s) self (s) | |
10 0.000009 let p = [] | |
10 0.000004 try | |
10 0.052389 0.000125 let p = SpaceVim#layers#{a:layer}#plugins() | |
3 0.000030 catch /^Vim\%((\a\+)\)\=:E117/ | |
10 0.000006 endtry | |
10 0.000007 return p | |
FUNCTION <SNR>181_show_dir() | |
Defined: ~/.SpaceVim/bundle/vim-startify/autoload/startify.vim line 676 | |
Called 1 time | |
Total time: 0.001552 | |
Self time: 0.000010 | |
count total (s) self (s) | |
1 0.001552 0.000009 return s:display_by_path(getcwd() . s:sep, ':.', 0) | |
FUNCTION vimfiler#get_filetype() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler.vim line 128 | |
Called 90 times | |
Total time: 0.001536 | |
Self time: 0.000318 | |
count total (s) self (s) | |
90 0.001524 0.000305 return vimfiler#init#_get_filetype(a:file) | |
FUNCTION dein#util#_split_rtp() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/util.vim line 565 | |
Called 3 times | |
Total time: 0.000021 | |
Self time: 0.000021 | |
count total (s) self (s) | |
3 0.000006 if stridx(a:runtimepath, '\,') < 0 | |
3 0.000014 return split(a:runtimepath, ',') | |
endif | |
let split = split(a:runtimepath, '\\\@<!\%(\\\\\)*\zs,') | |
return map(split,'substitute(v:val, ''\\\([\\,]\)'', ''\1'', ''g'')') | |
FUNCTION <SNR>185_browse_check() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/plugin/vimfiler.vim line 72 | |
Called 14 times | |
Total time: 0.000046 | |
Self time: 0.000046 | |
count total (s) self (s) | |
14 0.000036 if !g:vimfiler_as_default_explorer || a:path == '' || bufnr('%') != expand('<abuf>') | |
14 0.000005 return | |
endif | |
" Disable netrw. | |
augroup FileExplorer | |
autocmd! | |
augroup END | |
let path = a:path | |
" For ":edit ~". | |
if fnamemodify(path, ':t') ==# '~' | |
let path = '~' | |
endif | |
if &filetype ==# 'vimfiler' && line('$') != 1 | |
return | |
endif | |
if isdirectory(vimfiler#util#expand(path)) | |
call vimfiler#handler#_event_handler('BufReadCmd') | |
endif | |
FUNCTION <SNR>181_set_mappings() | |
Defined: ~/.SpaceVim/bundle/vim-startify/autoload/startify.vim line 845 | |
Called 1 time | |
Total time: 0.000572 | |
Self time: 0.000535 | |
count total (s) self (s) | |
1 0.000035 nnoremap <buffer><nowait><silent> i :enew <bar> startinsert<cr> | |
1 0.000015 nnoremap <buffer><nowait><silent> <insert> :enew <bar> startinsert<cr> | |
1 0.000013 nnoremap <buffer><nowait><silent> b :call startify#set_mark('B')<cr> | |
1 0.000012 nnoremap <buffer><nowait><silent> s :call startify#set_mark('S')<cr> | |
1 0.000011 nnoremap <buffer><nowait><silent> t :call startify#set_mark('T')<cr> | |
1 0.000011 nnoremap <buffer><nowait><silent> v :call startify#set_mark('V')<cr> | |
1 0.000011 nnoremap <buffer><nowait><silent> B :call startify#set_batchmode('B')<cr> | |
1 0.000011 nnoremap <buffer><nowait><silent> S :call startify#set_batchmode('S')<cr> | |
1 0.000010 nnoremap <buffer><nowait><silent> T :call startify#set_batchmode('T')<cr> | |
1 0.000010 nnoremap <buffer><nowait><silent> V :call startify#set_batchmode('V')<cr> | |
1 0.000011 nnoremap <buffer><nowait><silent> <cr> :call startify#open_buffers()<cr> | |
1 0.000013 nnoremap <buffer><nowait><silent> <LeftMouse> :call <sid>leftmouse()<cr> | |
1 0.000013 nnoremap <buffer><nowait><silent> <2-LeftMouse> :call startify#open_buffers()<cr> | |
1 0.000014 nnoremap <buffer><nowait><silent> <MiddleMouse> :enew <bar> execute 'normal! "'.(v:register=='"'?'*':v:register).'gp'<cr> | |
" Without these mappings n/N wouldn't work properly, since autocmds always | |
" force the cursor back on the index. | |
1 0.000011 nnoremap <buffer><expr> n ' j'[v:searchforward].'n' | |
1 0.000010 nnoremap <buffer><expr> N 'j '[v:searchforward].'N' | |
1 0.000001 function! s:leftmouse() | |
" feedkeys() triggers CursorMoved which calls s:set_cursor() which checks | |
" .leftmouse. | |
let b:startify.leftmouse = 1 | |
call feedkeys("\<LeftMouse>", 'nt') | |
endfunction | |
1 0.000001 function! s:compare_by_index(foo, bar) | |
return a:foo.index - a:bar.index | |
endfunction | |
15 0.000136 0.000099 for entry in sort(values(b:startify.entries), 's:compare_by_index') | |
14 0.000210 execute 'nnoremap <buffer><silent><nowait>' entry.index ':call startify#open_buffers('. string(entry.line) .')<cr>' | |
15 0.000005 endfor | |
FUNCTION dein#util#_check_install() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/util.vim line 696 | |
Called 1 time | |
Total time: 0.000116 | |
Self time: 0.000103 | |
count total (s) self (s) | |
1 0.000002 if !empty(a:plugins) | |
let invalids = filter(dein#util#_convert2list(a:plugins), 'empty(dein#get(v:val))') | |
if !empty(invalids) | |
call dein#util#_error('Invalid plugins: ' . string(map(invalids, 'v:val'))) | |
return -1 | |
endif | |
1 0.000000 endif | |
1 0.000025 0.000012 let plugins = empty(a:plugins) ? values(dein#get()) : map(dein#util#_convert2list(a:plugins), 'dein#get(v:val)') | |
1 0.000081 let plugins = filter(plugins, '!isdirectory(v:val.path)') | |
1 0.000002 if empty(plugins) | return 0 | endif | |
call dein#util#_notify('Not installed plugins: ' . string(map(plugins, 'v:val.name'))) | |
return 1 | |
FUNCTION <SNR>197_restore_cursor() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/mappings.vim line 525 | |
Called 1 time | |
Total time: 0.000076 | |
Self time: 0.000022 | |
count total (s) self (s) | |
" Restore cursor pos. | |
1 0.000001 if a:dir ==# '..' | |
" Search previous current directory. | |
let num = 0 | |
let max = len(b:vimfiler.current_files) | |
while num < max | |
let path = b:vimfiler.current_files[num].action__path | |
if path ==# b:vimfiler.source.':'.a:previous_current_dir || path ==# a:previous_current_dir | |
call cursor(vimfiler#get_line_number(b:vimfiler, num), 1) | |
break | |
endif | |
let num += 1 | |
endwhile | |
1 0.000002 elseif has_key(b:vimfiler.directory_cursor_pos, a:fullpath) | |
1 0.000002 call setpos('.', b:vimfiler.directory_cursor_pos[a:fullpath]) | |
else | |
call cursor(vimfiler#get_file_offset(b:vimfiler)+1, 0) | |
1 0.000000 endif | |
1 0.000059 0.000005 call vimfiler#helper#_set_cursor() | |
FUNCTION vimfiler#helper#_sort_human() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/helper.vim line 276 | |
Called 4 times | |
Total time: 0.009678 | |
Self time: 0.000787 | |
count total (s) self (s) | |
4 0.000009 if !a:has_lua || len(filter(copy(a:candidates), "v:val.vimfiler__filename =~ '\\d'")) >= 2 | |
4 0.009668 0.000777 return sort(a:candidates, 's:compare_filename') | |
endif | |
" Use lua interface. | |
lua << EOF | |
do | |
local ignorecase = vim.eval('&ignorecase') | |
local candidates = vim.eval('a:candidates') | |
local t = {} | |
for i = 1, #candidates do | |
t[i] = candidates[i-1] | |
if ignorecase ~= 0 then | |
t[i].vimfiler__filename = string.lower(t[i].vimfiler__filename) | |
end | |
end | |
table.sort(t, function(a, b) | |
return a.vimfiler__filename < b.vimfiler__filename | |
end) | |
for i = 0, #candidates-1 do | |
candidates[i] = t[i+1] | |
end | |
end | |
EOF | |
return a:candidates | |
FUNCTION <SNR>181_display_by_path() | |
Defined: ~/.SpaceVim/bundle/vim-startify/autoload/startify.vim line 555 | |
Called 2 times | |
Total time: 0.002964 | |
Self time: 0.000343 | |
count total (s) self (s) | |
2 0.001764 0.000018 let oldfiles = call(get(g:, 'startify_enable_unsafe') ? 's:filter_oldfiles_unsafe' : 's:filter_oldfiles', [a:path_prefix, a:path_format, a:use_env]) | |
2 0.000003 let entry_format = "s:padding_left .'['. index .']'. repeat(' ', (3 - strlen(index))) ." | |
2 0.000003 if exists('*StartifyEntryFormat') | |
2 0.000014 0.000011 let entry_format .= StartifyEntryFormat() | |
else | |
let entry_format .= 'entry_path' | |
2 0.000001 endif | |
2 0.000002 if !empty(oldfiles) | |
2 0.000002 if exists('s:last_message') | |
2 0.000047 0.000009 call s:print_section_header() | |
2 0.000001 endif | |
14 0.000013 for [absolute_path, entry_path] in oldfiles | |
12 0.000195 0.000044 let index = s:get_index_as_string() | |
12 0.000724 0.000096 call append('$', eval(entry_format)) | |
12 0.000023 if has('win32') | |
let absolute_path = substitute(absolute_path, '\[', '\[[]', 'g') | |
12 0.000003 endif | |
12 0.000126 0.000070 call s:register(line('$'), index, 'file', 'edit', absolute_path) | |
14 0.000005 endfor | |
2 0.000003 call append('$', '') | |
2 0.000001 endif | |
FUNCTION <SNR>6_name() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/api/system.vim line 29 | |
Called 1 time | |
Total time: 0.000002 | |
Self time: 0.000002 | |
count total (s) self (s) | |
1 0.000001 if s:system.isLinux | |
1 0.000001 return 'linux' | |
elseif s:system.isWindows | |
if has('win32unix') | |
return 'cygwin' | |
else | |
return 'windows' | |
endif | |
else | |
return 'mac' | |
endif | |
FUNCTION vimproc#util#expand() | |
Defined: ~/.SpaceVim/bundle/vimproc.vim/autoload/vimproc/util.vim line 70 | |
Called 1 time | |
Total time: 0.000012 | |
Self time: 0.000010 | |
count total (s) self (s) | |
1 0.000012 0.000010 return vimproc#util#substitute_path_separator( (a:path =~ '^\~') ? fnamemodify(a:path, ':p') : (a:path =~ '^\$\h\w*') ? substitute(a:path, '^\$\h\w*', '\=eval(submatch(0))', '') : a:path) | |
FUNCTION <SNR>83_substitute_path_separator() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/vital/_unite/Prelude.vim line 318 | |
Called 10 times | |
Total time: 0.000018 | |
Self time: 0.000018 | |
count total (s) self (s) | |
10 0.000016 return s:is_windows ? substitute(a:path, '\\', '/', 'g') : a:path | |
FUNCTION startify#get_separator() | |
Defined: ~/.SpaceVim/bundle/vim-startify/autoload/startify.vim line 18 | |
Called 3 times | |
Total time: 0.000010 | |
Self time: 0.000010 | |
count total (s) self (s) | |
3 0.000008 return !exists('+shellslash') || &shellslash ? '/' : '\' | |
FUNCTION <SNR>36_search_count() | |
Defined: ~/.SpaceVim/autoload/SpaceVim/layers/core/statusline.vim line 283 | |
Called 1 time | |
Total time: 0.000154 | |
Self time: 0.000032 | |
count total (s) self (s) | |
1 0.000153 0.000032 return SpaceVim#plugins#searcher#count() | |
FUNCTION unite#util#strchars() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/util.vim line 69 | |
Called 2 times | |
Total time: 0.000721 | |
Self time: 0.000009 | |
count total (s) self (s) | |
2 0.000721 0.000009 return call(s:get_string().strchars, a:000) | |
FUNCTION <SNR>189_get_list() | |
Defined: ~/.SpaceVim/bundle/vimfiler.vim/autoload/vimfiler/util.vim line 28 | |
Called 1 time | |
Total time: 0.000063 | |
Self time: 0.000015 | |
count total (s) self (s) | |
1 0.000001 if !exists('s:List') | |
1 0.000061 0.000013 let s:List = vimfiler#util#get_vital().import('Data.List') | |
1 0.000000 endif | |
1 0.000001 return s:List | |
FUNCTION delimitMate#Set() | |
Defined: ~/.SpaceVim/bundle/delimitMate/autoload/delimitMate.vim line 270 | |
Called 138 times | |
Total time: 0.002009 | |
Self time: 0.000432 | |
count total (s) self (s) | |
138 0.001991 0.000415 return call('s:set', a:000) | |
FUNCTION dein#util#_add_after() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/util.vim line 578 | |
Called 5 times | |
Total time: 0.000023 | |
Self time: 0.000023 | |
count total (s) self (s) | |
5 0.000012 let idx = index(a:rtps, $VIMRUNTIME) | |
5 0.000010 call insert(a:rtps, a:path, (idx <= 0 ? -1 : idx + 1)) | |
FUNCTION <SNR>205_uniq() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/vital/_unite/Data/List.vim line 47 | |
Called 4 times | |
Total time: 0.000845 | |
Self time: 0.000026 | |
count total (s) self (s) | |
4 0.000844 0.000025 return s:uniq_by(a:list, 'v:val') | |
FUNCTION unite#util#sort_by() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/unite/util.vim line 171 | |
Called 2 times | |
Total time: 0.000052 | |
Self time: 0.000015 | |
count total (s) self (s) | |
2 0.000052 0.000014 return call(s:get_list().sort_by, a:000) | |
FUNCTION <SNR>177_clear_cache() | |
Defined: ~/.SpaceVim/bundle/neomake/autoload/neomake/statusline.vim line 15 | |
Called 1 time | |
Total time: 0.000003 | |
Self time: 0.000003 | |
count total (s) self (s) | |
1 0.000002 if has_key(s:cache, a:bufnr) | |
unlet s:cache[a:bufnr] | |
1 0.000000 endif | |
FUNCTION <SNR>68_parse_lazy() | |
Defined: ~/.SpaceVim/bundle/dein.vim/autoload/dein/parse.vim line 277 | |
Called 18 times | |
Total time: 0.001888 | |
Self time: 0.000848 | |
count total (s) self (s) | |
" Auto convert2list. | |
36 0.000315 for key in filter([ 'on_ft', 'on_path', 'on_cmd', 'on_func', 'on_map', 'on_source', 'on_event', ], 'has_key(a:plugin, v:val) && type(a:plugin[v:val]) != 3 && type(a:plugin[v:val]) != 4') | |
18 0.000031 let a:plugin[key] = [a:plugin[key]] | |
36 0.000014 endfor | |
18 0.000021 if get(a:plugin, 'on_i', 0) | |
let a:plugin.on_event = ['InsertEnter'] | |
18 0.000004 endif | |
18 0.000016 if get(a:plugin, 'on_idle', 0) | |
let a:plugin.on_event = ['FocusLost', 'CursorHold'] | |
18 0.000004 endif | |
18 0.000016 if has_key(a:plugin, 'on_event') | |
20 0.000016 for event in a:plugin.on_event | |
10 0.000014 if !has_key(g:dein#_event_plugins, event) | |
2 0.000003 let g:dein#_event_plugins[event] = [a:plugin.name] | |
8 0.000003 else | |
8 0.000016 call add(g:dein#_event_plugins[event], a:plugin.name) | |
8 0.000423 0.000049 let g:dein#_event_plugins[event] = dein#util#_uniq( g:dein#_event_plugins[event]) | |
10 0.000003 endif | |
20 0.000007 endfor | |
18 0.000005 endif | |
18 0.000017 if has_key(a:plugin, 'on_cmd') | |
9 0.000460 0.000044 call s:generate_dummy_commands(a:plugin) | |
18 0.000005 endif | |
18 0.000018 if has_key(a:plugin, 'on_map') | |
2 0.000261 0.000011 call s:generate_dummy_mappings(a:plugin) | |
18 0.000005 endif | |
FUNCTION <SNR>181_register() | |
Defined: ~/.SpaceVim/bundle/vim-startify/autoload/startify.vim line 1026 | |
Called 14 times | |
Total time: 0.000067 | |
Self time: 0.000067 | |
count total (s) self (s) | |
14 0.000062 let b:startify.entries[a:line] = { 'index': a:index, 'type': a:type, 'line': a:line, 'cmd': a:cmd, 'path': a:path, 'marked': 0, } | |
FUNCTION <SNR>220_has_vimproc() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/vital/_unite/Process.vim line 81 | |
Called 2 times | |
Total time: 0.000798 | |
Self time: 0.000098 | |
count total (s) self (s) | |
2 0.000003 if !exists('s:exists_vimproc') | |
1 0.000000 try | |
1 0.000777 0.000078 call vimproc#version() | |
let s:exists_vimproc = 1 | |
1 0.000007 catch | |
1 0.000002 let s:exists_vimproc = 0 | |
1 0.000001 endtry | |
2 0.000001 endif | |
2 0.000002 return s:exists_vimproc | |
FUNCTION <SNR>82__exists_autoload_func_with_source() | |
Defined: ~/.SpaceVim/bundle/unite.vim/autoload/vital/unite.vim line 240 | |
Called 4 times | |
Total time: 0.001042 | |
Self time: 0.000078 | |
count total (s) self (s) | |
4 0.000008 if exists('*' . a:funcname) | |
" Return true if a given func is already defined | |
return 1 | |
4 0.000001 endif | |
" source a file which may include a given func definition and try again. | |
4 0.000034 let path = 'autoload/' . substitute(substitute(a:funcname, '#[^#]*$', '.vim', ''), '#', '/', 'g') | |
4 0.000981 0.000017 call s:_runtime(path) | |
4 0.000010 return exists('*' . a:funcname) | |
FUNCTIONS SORTED ON TOTAL TIME | |
count total (s) self (s) function | |
1 0.331538 0.001743 SpaceVim#end() | |
1 0.255150 0.000033 SpaceVim#plugins#load() | |
20 0.167618 0.000390 SpaceVim#util#loadConfig() | |
3 0.156562 0.000022 dein#call_hook() | |
1 0.156561 0.000055 SpaceVim#plugins#end() | |
3 0.156539 0.000238 dein#util#_call_hook() | |
10 0.156099 0.000125 dein#util#_execute_hook() | |
10 0.155974 0.000097 <SNR>65_execute() | |
12 0.148227 0.001851 SpaceVim#layers#core#statusline#get() | |
1 0.145452 0.000160 <SNR>36_active() | |
1 0.142210 0.000188 109() | |
15 0.141991 0.000166 107() | |
8 0.141959 0.000031 106() | |
1 0.141825 0.000076 SpaceVim#layers#core#statusline#_current_tag() | |
1 0.140682 0.000020 tagbar#currenttag() | |
1 0.140662 0.000011 <SNR>178_Init() | |
1 0.140651 0.140520 <SNR>178_CheckForExCtags() | |
1 0.096077 0.001631 <SNR>63_load_plugins() | |
1 0.076370 0.000351 SpaceVim#welcome() | |
1 0.066535 0.000145 dein#autoload#_on_cmd() | |
FUNCTIONS SORTED ON SELF TIME | |
count total (s) self (s) function | |
1 0.140651 0.140520 <SNR>178_CheckForExCtags() | |
1 0.044772 SpaceVim#util#haspy3lib() | |
1 0.043931 provider#Poll() | |
1 0.042142 provider#clipboard#Executable() | |
1 0.022306 SpaceVim#layers#core#plugins() | |
1 0.029180 0.022122 SpaceVim#layers#edit#plugins() | |
1 0.020607 SpaceVim#autocmds#init() | |
1 0.020286 SpaceVim#server#export_server() | |
314 0.021646 0.019155 SpaceVim#mapping#space#def() | |
61 0.006923 0.005747 dein#parse#_dict() | |
468 0.005608 <SNR>200_get_words() | |
6 0.003911 <SNR>147_motion_map_helper() | |
232 0.003708 <SNR>69_is_git_dir() | |
234 0.008891 0.003283 <SNR>200_compare_filename() | |
90 0.002685 unite#sources#file#create_vimfiler_dict() | |
119 0.007205 0.002592 168() | |
102 0.002587 <SNR>97_HL() | |
94 0.002448 unite#sources#file#create_file_dict() | |
56 0.002414 79() | |
58 0.003815 0.002222 dein#autoload#_on_func() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment