If I activate vim-go syntax highlighting with:
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
let g:go_highlight_structs = 1
let g:go_highlight_operators = 1
let g:go_highlight_build_constraints = 1
and also activate set cursorline in my .vimrc, vim gets really slow.
Without the hightlights functions and/or cursorline it works perfectly.
vim should run smooth as always
1.Create minimal vimrc:
syntax on
runtime bundle/vim-pathogen/autoload/pathogen.vim
execute pathogen#infect()
set cursorline
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
let g:go_highlight_structs = 1
let g:go_highlight_operators = 1
let g:go_highlight_build_constraints = 1
2.Put (only) vim-go into ~/.vim/bundle (if using pathogen)
3.Open a go file and start scrolling
Add here your current configuration and additional information that might be
useful, such as:
Hi @moogle19
There are many highlight groups, and Vim continuously tries to rematch them. That's why we have flags, to disable some of those. You can these settings to make it faster:
set lazyredraw " Wait to redraw
syntax sync minlines=256
set synmaxcol=300
set re=1
Other than this there is not much we can do. Thanks for opening.
Okay, thanks for the info and keep up the good work!
Most helpful comment
Hi @moogle19
There are many highlight groups, and Vim continuously tries to rematch them. That's why we have flags, to disable some of those. You can these settings to make it faster:
Other than this there is not much we can do. Thanks for opening.