vim-gfm-syntax icon indicating copy to clipboard operation
vim-gfm-syntax copied to clipboard

vim-gfm-syntax potentially causing nvim startup delays

Open seanrmurphy opened this issue 7 years ago • 0 comments

I'm having problems with my nvim startup time when I wish to edit a .md file. (There is no problem with other filetypes).

I'm not v experienced with troubleshooting nvim, but I can see this from the startuptime logs:

<snip>
2708.310  000.719  000.719: sourcing /usr/share/nvim/runtime/syntax/yaml.vim
2708.503  010.645  000.722: sourcing /home/sean/.cache/vim/dein/repos/github.com/plasticboy/vim-markdown/syntax/markdown.vim
2708.546  000.009  000.009: sourcing /usr/share/nvim/runtime/syntax/markdown.vim
2708.727  000.130  000.130: sourcing /home/sean/.cache/vim/dein/repos/github.com/rhysd/vim-gfm-syntax/after/syntax/markdown/gfm.vim
5172.727  000.675  000.675: sourcing /home/sean/.cache/vim/dein/repos/github.com/plasticboy/vim-markdown/ftplugin/markdown.vim
5173.153  000.147  000.147: sourcing /usr/share/nvim/runtime/ftplugin/html.vim
5173.456  000.665  000.518: sourcing /usr/share/nvim/runtime/ftplugin/markdown.vim
</snip>

<snip>
5185.134  000.725  000.725: sourcing /usr/share/nvim/runtime/syntax/yaml.vim
5185.316  010.980  000.711: sourcing /home/sean/.cache/vim/dein/repos/github.com/plasticboy/vim-markdown/syntax/markdown.vim
5185.359  000.009  000.009: sourcing /usr/share/nvim/runtime/syntax/markdown.vim
5185.527  000.123  000.123: sourcing /home/sean/.cache/vim/dein/repos/github.com/rhysd/vim-gfm-syntax/after/syntax/markdown/gfm.vim
7815.731  000.947  000.947: sourcing /home/sean/.cache/vim/dein/repos/github.com/plasticboy/vim-markdown/ftplugin/markdown.vim
7816.268  000.182  000.182: sourcing /usr/share/nvim/runtime/ftplugin/html.vim
7816.639  000.832  000.649: sourcing /usr/share/nvim/runtime/ftplugin/markdown.vim
</snip>

<snip>
7829.004  011.265  000.718: sourcing /home/sean/.cache/vim/dein/repos/github.com/plasticboy/vim-markdown/syntax/markdown.vim
7829.064  000.010  000.010: sourcing /usr/share/nvim/runtime/syntax/markdown.vim
7829.234  000.125  000.125: sourcing /home/sean/.cache/vim/dein/repos/github.com/rhysd/vim-gfm-syntax/after/syntax/markdown/gfm.vim
10316.004  000.735  000.735: sourcing /home/sean/.cache/vim/dein/repos/github.com/plasticboy/vim-markdown/ftplugin/markdown.vim
10316.455  000.154  000.154: sourcing /usr/share/nvim/runtime/ftplugin/html.vim
10316.792  000.720  000.566: sourcing /usr/share/nvim/runtime/ftplugin/markdown.vim
</snip>

(I also see another similar issue which seems to relate to parenmatch.vim).

I guess it's likely a problem with my config, which I've mostly copied from here - https://github.com/rafi/vim-config - however, it's not clear to me how to dig a bit deeper.

~> nvim --version
NVIM v0.2.2
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -g -O2 -fdebug-prefix-map=/build/neovim-_mzR4z/neovim-0.2.2=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DDISABLE_LOG -Wdate-time -D_FORTIFY_SOURCE=2 -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -O2 -g -DMIN_LOG_LEVEL=3 -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -I/build/neovim-_mzR4z/neovim-0.2.2/build/config -I/build/neovim-_mzR4z/neovim-0.2.2/src -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/build/neovim-_mzR4z/neovim-0.2.2/build/src/nvim/auto -I/build/neovim-_mzR4z/neovim-0.2.2/build/include
Compiled by [email protected]

Features: +acl +iconv +jemalloc +tui 
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info
~> 



health#nvim#check
========================================================================
## Configuration
  - OK: no issues found

## Performance
  - OK: Build type: RelWithDebInfo

## Remote Plugins
  - OK: Up to date

## terminal
  - INFO: key_backspace (kbs) terminfo entry: key_backspace=\177
  - INFO: key_dc (kdch1) terminfo entry: key_dc=\E[3~
  - INFO: $XTERM_VERSION=''
  - INFO: $VTE_VERSION=''
  - INFO: $TERM_PROGRAM=''
  - INFO: $SSH_TTY=''

health#provider#check
========================================================================
## Clipboard (optional)
  - OK: Clipboard tool found: xsel

## Python 2 provider (optional)
  - INFO: Using: g:python_host_prog = "/usr/bin/python"
  - INFO: Executable: /usr/bin/python
  - INFO: Python2 version: 2.7.15
  - INFO: python-neovim version: 0.2.6
  - OK: Latest python-neovim is installed: 0.2.6

## Python 3 provider (optional)
  - INFO: Using: g:python3_host_prog = "/usr/bin/python3"
  - INFO: Executable: /usr/bin/python3
  - INFO: Python3 version: 3.6.5
  - INFO: python3-neovim version: 0.2.6
  - OK: Latest python3-neovim is installed: 0.2.6

## Ruby provider (optional)
  - INFO: Disabled. g:loaded_ruby_provider=1

## Node provider (optional)
  - INFO: Node: v8.10.0
  - INFO: Host: /usr/local/bin/neovim-node-host
  - OK: Latest "neovim" npm is installed: 4.2.1

seanrmurphy avatar Jul 16 '18 18:07 seanrmurphy