LoginSignup
33
32

More than 5 years have passed since last update.

Vimが長いテキストで重くなる現象を回避

Posted at

Vimで編集中のファイル内にdata URL等のlong lineがあると、設定によってはVimが死にます。

syntax onだとsyntax highlightingのために、一行3000文字まで解析しよと頑張っちゃうらしいので、そこが原因です。

基本的には1行多くてもせいぜい200文字くらい(多い)なので、
最大設定を適当に書き換えればokです。

" 以下を.vimrc等に記述
set synmaxcol=200
33
32
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
33
32