I'm having this really weird issue with Vim, when I scroll down certain files it gives me a "Max memory" error and then the entire file turns white. It doesn't make any sense though because the file I view is <500 SLOC and is a .yaml file. Here's my .vimrc
call plug#begin()
Plug 'preservim/nerdtree'
Plug 'sheerun/vim-polyglot'
Plug 'prettier/vim-prettier', { 'do': 'yarn install --frozen-lockfile --production' }
Plug 'thaerkh/vim-workspace'
call plug#end()
let g:NERDTreeWinPos = "right"
set anti enc=utf-8
set guifont=Monaco:h14
au VimEnter * NERDTree
set autoindent
set relativenumber
set number
set mouse=a
After running the file as nvim --clean
next I ran it using vim --clean, same errors, different colors :)
Also, I noticed at the bottom of my file there is a large blob of data:
genesis: AAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAIONyBTTF0nAdPx82GBb5rdRMZw0gGKoR4fX7Xm0thUf5AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD8Y6ihgEAAAAAAAAAAAAAQGhVeHJpeDYybHBpR1VQMUxiUVkvN1UyM09UYmZSVHhQa1ZXTEtzNlBicDZUZWdiNzFPc0FQSG9lZWFXbFFwajUYOjAAAAEAAAAAAAMAEAAAAAAAAQACAAMAASBY5NUBCwG4+d9ySf7lzkDymZRwTleDIHaPuD7kzUkJ7iBPDCchXF1hHF2JxKDMX8adW+YJupDn7m/3yi+E1saj6wAAAAAACCEAAQAAAAAAAAAAAAAAAAAAAAAAAAABCwNiY3NQoRzrCwYAAAAGAQACAwIGBQgHBw8NCBwUDDAEAAAAAQABAQABBgkAAQoCA2Jjcwh0b19ieXRlcwAAAAAAAAAAAAAAAAAAAAAAAAABAAECAAAEaGFzaF6hHOsLBgAAAAYBAAIDAgoFDAMHDxcIJhQMOggAAAABAAAAAAIAAAABCgIEaGFzaAhzaGEyXzI1NghzaGEzXzI1NgAAAAAAAAAAAAAAAAAAAAAAAAABAAECAAEBAgAABWFzY2lpiwahHOsLBgAAAAsBAAQCBA4DElQEZggFbjsHqQHIAQjxAhQGhQMKCo8DCwyaA7oCDdQFBAAAAAEAAgcAAAMHAAEPBwEAAAAEAAEAAAUAAgAABgMEAAAHBAMAAAgFBgAACQQBAAAKBAEAAAsABwAADAgDAAANCQoAAA4GBQAAEAYLAAESDQEBAAETDg8BAAEUCg4BAAEVDw4BAAwFDQUOBQ8FAQYIAQEBAQYKAgEIAAECAQgBAQoCAQMBBwgBAgcIAQgAAAELAgEIAQIDAwEGCwIBCQABCwIBCQABCQAFYXNjaWkGb3B0aW9uBENoYXIGU3RyaW5nGGFsbF9jaGFyYWN0ZXJzX3ByaW50YWJsZQhhc19ieXRlcwRieXRlBGNoYXIKaW50b19ieXRlcxFpc19wcmludGFibGVfY2hhcg1pc192YWxpZF9jaGFyBmxlbmd0aAhwb3BfY2hhcglw...
After inspection it looks like a ton of text on a single line. Maybe this is causing the issue?





polyglot? – Vivian De Smedt Feb 27 '23 at 22:28vim --clean. Also, what exactly do you mean withcertain files? What exact file types provoke that behaviour? – Christian Brabandt Mar 02 '23 at 08:03yamlis notoriously known for some crazy patterns. You could try to increase the 'maxmempattern' option value (not sure this will work) or you may want to try to lower the 'synmaxcol' setting to say 250 or so. – Christian Brabandt Mar 02 '23 at 16:02