diff options
| author | nsfisis <nsfisis@gmail.com> | 2021-11-15 23:07:06 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2021-11-15 23:09:52 +0900 |
| commit | cea30dfbb220f7a8d04a83dcef45937d95f14129 (patch) | |
| tree | 64f5da599b48a54587f318c64ad58ec0a5fddc51 | |
| parent | 8340e7dcfc1339c42d807f12498c1f4175ccb580 (diff) | |
| download | dotfiles-cea30dfbb220f7a8d04a83dcef45937d95f14129.tar.gz dotfiles-cea30dfbb220f7a8d04a83dcef45937d95f14129.tar.zst dotfiles-cea30dfbb220f7a8d04a83dcef45937d95f14129.zip | |
vim: speed Vim startup
| -rw-r--r-- | .vimrc | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -1600,8 +1600,13 @@ let g:lightline = { \ } function! s:lightline_mode() - if get(g:, 'loaded_eskk', v:false) && eskk#is_enabled() - let skk = ' (' . eskk#statusline('%s') . ')' + " Calling `eskk#statusline()` makes Vim autoload eskk. If you call it + " without checking `g:loaded_autoload_eskk`, eskk is loaded on an early + " stage of the initialization (probably the first rendering of status line), + " which slows down Vim startup. Loading eskk can be delayed by checking both + " of `g:loaded_eskk` and `g:loaded_autoload_eskk`. + if exists('g:loaded_eskk') && exists('g:loaded_autoload_eskk') + let skk = eskk#statusline(' (%s)', '') else let skk = '' endif |
