{"action":"created","issue":{"url":"https://api.github.com/repos/vim/vim/issues/2790","repository_url":"https://api.github.com/repos/vim/vim","labels_url":"https://api.github.com/repos/vim/vim/issues/2790/labels{/name}","comments_url":"https://api.github.com/repos/vim/vim/issues/2790/comments","events_url":"https://api.github.com/repos/vim/vim/issues/2790/events","html_url":"https://github.com/vim/vim/issues/2790","id":312255949,"number":2790,"title":"syntax highlighting breaks for big file after jump or search","user":{"login":"machsix","id":28209092,"avatar_url":"https://avatars0.githubusercontent.com/u/28209092?v=4","gravatar_id":"","url":"https://api.github.com/users/machsix","html_url":"https://github.com/machsix","followers_url":"https://api.github.com/users/machsix/followers","following_url":"https://api.github.com/users/machsix/following{/other_user}","gists_url":"https://api.github.com/users/machsix/gists{/gist_id}","starred_url":"https://api.github.com/users/machsix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/machsix/subscriptions","organizations_url":"https://api.github.com/users/machsix/orgs","repos_url":"https://api.github.com/users/machsix/repos","events_url":"https://api.github.com/users/machsix/events{/privacy}","received_events_url":"https://api.github.com/users/machsix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-08T00:20:51Z","updated_at":"2018-04-08T14:37:55Z","closed_at":null,"author_association":"NONE","body":"This issue was already reported by somebody else on [vim-use mailist](https://groups.google.com/forum/#!topic/vim_use/S-749ebXY2o). In short words, if a file is very large (more than 10k lines), the syntax highlighting will break if I use `:linenumber` or search to jump to another line. But it won't break if I keep using PageDown to jump. I need to revoke `:syntax on` to get highlighting back. \r\n\r\nMinium vimrc to reproduce:\r\n```\r\nsyntax enable\r\nfiletype plugin on\r\n```\r\nEven if  I add `set synmaxcol=0` to the file, the problem will occur. Vim version info:\r\n```\r\nVIM - Vi IMproved 8.0 (2016 Sep 12, compiled Feb 26 2018 23:02:12)\r\nIncluded patches: 1-1542\r\nCompiled by Arch Linux\r\nHuge version without GUI.  Features included (+) or not (-):\r\n+acl               +farsi             +mouse_sgr         -tag_any_white\r\n+arabic            +file_in_path      -mouse_sysmouse    +tcl/dyn\r\n+autocmd           +find_in_path      +mouse_urxvt       +termguicolors\r\n-autoservername    +float             +mouse_xterm       +terminal\r\n-balloon_eval      +folding           +multi_byte        +terminfo\r\n+balloon_eval_term -footer            +multi_lang        +termresponse\r\n-browse            +fork()            -mzscheme          +textobjects\r\n++builtin_terms    +gettext           +netbeans_intg     +timers\r\n+byte_offset       -hangul_input      +num64             +title\r\n+channel           +iconv             +packages          -toolbar\r\n+cindent           +insert_expand     +path_extra        +user_commands\r\n-clientserver      +job               +perl/dyn          +vertsplit\r\n-clipboard         +jumplist          +persistent_undo   +virtualedit\r\n+cmdline_compl     +keymap            +postscript        +visual\r\n+cmdline_hist      +lambda            +printer           +visualextra\r\n+cmdline_info      +langmap           +profile           +viminfo\r\n+comments          +libcall           +python/dyn        +vreplace\r\n+conceal           +linebreak         +python3/dyn       +wildignore\r\n+cryptv            +lispindent        +quickfix          +wildmenu\r\n+cscope            +listcmds          +reltime           +windows\r\n+cursorbind        +localmap          +rightleft         +writebackup\r\n+cursorshape       +lua/dyn           +ruby/dyn          -X11\r\n+dialog_con        +menu              +scrollbind        -xfontset\r\n+diff              +mksession         +signs             -xim\r\n+digraphs          +modify_fname      +smartindent       -xpm\r\n-dnd               +mouse             +startuptime       -xsmp\r\n-ebcdic            -mouseshape        +statusline        -xterm_clipboard\r\n+emacs_tags        +mouse_dec         -sun_workshop      -xterm_save\r\n+eval              +mouse_gpm         +syntax            \r\n+ex_extra          -mouse_jsbterm     +tag_binary        \r\n+extra_search      +mouse_netterm     +tag_old_static    \r\n   system vimrc file: \"/etc/vimrc\"\r\n     user vimrc file: \"$HOME/.vimrc\"\r\n 2nd user vimrc file: \"~/.vim/vimrc\"\r\n      user exrc file: \"$HOME/.exrc\"\r\n       defaults file: \"$VIMRUNTIME/defaults.vim\"\r\n  fall-back for $VIM: \"/usr/share/vim\"\r\nCompilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H   -D_FORTIFY_SOURCE=2  -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1       \r\nLinking: gcc   -L. -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.26/core_perl/CORE  -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -L/usr/local/lib -Wl,--as-needed -o vim        -lm -ltinfo -lelf -lnsl    -lacl -lattr -lgpm -ldl   -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.26/core_perl/CORE -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -fstack-protector-strong -L/usr/local/lib  -L/usr/lib/perl5/5.26/core_perl/CORE -lperl -lpthread -lnsl -ldl -lm -lcrypt -lutil -lc   -L/usr/lib -ltclstub8.6 -ldl -lz -lpthread -lieee -lm     \r\n```\r\n\r\nExample of \"large file\" is provided in the thread [vim-use mailist](https://groups.google.com/forum/#!topic/vim_use/S-749ebXY2o). BTW: this issue doesn't exist in vim74. Thanks for your help!\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/vim/vim/issues/comments/379555340","html_url":"https://github.com/vim/vim/issues/2790#issuecomment-379555340","issue_url":"https://api.github.com/repos/vim/vim/issues/2790","id":379555340,"user":{"login":"h-east","id":518808,"avatar_url":"https://avatars3.githubusercontent.com/u/518808?v=4","gravatar_id":"","url":"https://api.github.com/users/h-east","html_url":"https://github.com/h-east","followers_url":"https://api.github.com/users/h-east/followers","following_url":"https://api.github.com/users/h-east/following{/other_user}","gists_url":"https://api.github.com/users/h-east/gists{/gist_id}","starred_url":"https://api.github.com/users/h-east/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h-east/subscriptions","organizations_url":"https://api.github.com/users/h-east/orgs","repos_url":"https://api.github.com/users/h-east/repos","events_url":"https://api.github.com/users/h-east/events{/privacy}","received_events_url":"https://api.github.com/users/h-east/received_events","type":"User","site_admin":false},"created_at":"2018-04-08T14:37:55Z","updated_at":"2018-04-08T14:37:55Z","author_association":"NONE","body":"Hi,\r\n\r\nSee the document in Vim.\r\n:h :syn-sync\r\n:h :syn-sync-third\r\n\r\nIs the issue resolved with the following settings?\r\n```vim\r\n:syntax sync minlines=10000\r\n```\r\n"}}
{"actor":{"display_login":"h-east"}}