My NeoVim in 2021

I am used to write or edit my code in vim long time. But this year I want to be more efficiency in this. And this is my first step. Clean config file.

1. clean version of config

~/.config/nvim/init.vim

nvim --startuptime nvim.log

times in msec
  clock   self+sourced   self:  sourced script
  clock   elapsed:              other lines
 000.010  000.010: --- NVIM STARTING ---
 000.967  000.956: locale set
 011.315  010.348: inits 1
 011.364  000.049: window checked
 011.372  000.007: parsing arguments
 011.682  000.311: expanding arguments
 011.754  000.071: inits 2
 012.201  000.447: init highlight
 012.208  000.006: waiting for UI
 016.771  004.563: done waiting for UI
 016.786  000.015: initialized screen early for UI
 020.305  001.725  001.725: sourcing /Users/pepa/.local/share/nvim/site/autoload/plug.vim
 026.942  005.982  005.982: sourcing /usr/local/Caskroom/neovim-nightly/latest/nvim-osx64/share/nvim/runtime/filetype.vim
 027.468  000.051  000.051: sourcing /usr/local/Caskroom/neovim-nightly/latest/nvim-osx64/share/nvim/runtime/ftplugin.vim
 027.923  000.042  000.042: sourcing /usr/local/Caskroom/neovim-nightly/latest/nvim-osx64/share/nvim/runtime/indent.vim
 029.059  000.241  000.241: sourcing /usr/local/Caskroom/neovim-nightly/latest/nvim-osx64/share/nvim/runtime/syntax/syncolor.vim
 029.447  000.778  000.538: sourcing /usr/local/Caskroom/neovim-nightly/latest/nvim-osx64/share/nvim/runtime/syntax/synload.vim
 029.482  000.994  000.216: sourcing /usr/local/Caskroom/neovim-nightly/latest/nvim-osx64/share/nvim/runtime/syntax/syntax.vim
 029.507  011.170  002.375: sourcing /Users/pepa/.config/nvim/init.vim
 029.642  001.686: sourcing vimrc file(s)
 031.993  000.390  000.390: sourcing /usr/local/Caskroom/neovim-nightly/latest/nvim-osx64/share/nvim/runtime/plugin/gzip.vim
 032.121  000.020  000.020: sourcing /usr/local/Caskroom/neovim-nightly/latest/nvim-osx64/share/nvim/runtime/plugin/health.vim
 032.344  000.144  000.144: sourcing /usr/local/Caskroom/neovim-nightly/latest/nvim-osx64/share/nvim/runtime/plugin/man.vim
 033.543  000.193  000.193: sourcing /usr/local/Caskroom/neovim-nightly/latest/nvim-osx64/share/nvim/runtime/pack/dist/opt/matchit/plugin/matchit.vim
 033.622  001.199  001.006: sourcing /usr/local/Caskroom/neovim-nightly/latest/nvim-osx64/share/nvim/runtime/plugin/matchit.vim
 033.855  000.152  000.152: sourcing /usr/local/Caskroom/neovim-nightly/latest/nvim-osx64/share/nvim/runtime/plugin/matchparen.vim
 034.324  000.386  000.386: sourcing /usr/local/Caskroom/neovim-nightly/latest/nvim-osx64/share/nvim/runtime/plugin/netrwPlugin.vim
 034.629  000.205  000.205: sourcing /usr/local/Caskroom/neovim-nightly/latest/nvim-osx64/share/nvim/runtime/plugin/rplugin.vim
 034.831  000.108  000.108: sourcing /usr/local/Caskroom/neovim-nightly/latest/nvim-osx64/share/nvim/runtime/plugin/shada.vim
 034.952  000.030  000.030: sourcing /usr/local/Caskroom/neovim-nightly/latest/nvim-osx64/share/nvim/runtime/plugin/spellfile.vim
 035.176  000.137  000.137: sourcing /usr/local/Caskroom/neovim-nightly/latest/nvim-osx64/share/nvim/runtime/plugin/tarPlugin.vim
 035.352  000.085  000.085: sourcing /usr/local/Caskroom/neovim-nightly/latest/nvim-osx64/share/nvim/runtime/plugin/tohtml.vim
 035.464  000.025  000.025: sourcing /usr/local/Caskroom/neovim-nightly/latest/nvim-osx64/share/nvim/runtime/plugin/tutor.vim
 035.718  000.170  000.170: sourcing /usr/local/Caskroom/neovim-nightly/latest/nvim-osx64/share/nvim/runtime/plugin/zipPlugin.vim
 035.846  003.153: loading plugins
 036.091  000.246: loading packages
 036.287  000.196: loading after plugins
 036.299  000.012: inits 3
 037.697  001.398: reading ShaDa
 037.804  000.107: opening buffers
 037.864  000.060: BufEnter autocommands
 037.867  000.002: editing files in windows
 037.985  000.118: VimEnter autocommands
 037.987  000.002: UIEnter autocommands
 037.988  000.001: before starting main loop
 038.368  000.380: first screen update
 038.370  000.002: --- NVIM STARTED ---