In my vimrc I have this line :call matchadd('ColorColumn', '\%81v', 100)It colors the 81th column in a subtle grey background so I can track my line length :(see the l and the f)I found out that when editing a large file, this function causes Vim to be very slow.One of the file I am currently working on is a jsp file with a lot of mistakes in the indentation/syntax.I also tried with a custom vimrc : .vimrc-testcall matchadd('ColorColumn', '\%81v', 100)And launching vim with vim -u .vimrc-test -N my-file.jsp it reproduce the same.I am on MacVim 7.4.383 on Yosemity.Do you know anything related to this issue ?
matchadd makes vim slow with large files
vimrc;performance;large documents
Try appending the \%#=1 to the pattern so the old regexp engine is used. If I remember correctly, there was a bug in the newer engine that makes matching column positions slower, which was fixed later in the 7.4. development.