我从来没有想过 Vim 会这么慢。我所拥有的只是以下长行:
我使用终端应用程序在 Mac OS X 下运行 Vim (MacVim)。这是我的vimrc。我希望它与我的一些插件无关。如果我打破图像中的大线,一切都会再次快速运行。
小智 36
尝试以下:
" Syntax coloring lines that are too long just slows down the world
set synmaxcol=128
Run Code Online (Sandbox Code Playgroud)
否则我建议通过以下方式加速vim:
set ttyfast " u got a fast terminal
set ttyscroll=3
set lazyredraw " to avoid scrolling problems
Run Code Online (Sandbox Code Playgroud)
rom*_*inl 24
这是 Vim 和非常长的行的一个已知问题。我看到三个解决方案:
:syntax off。:set synmaxcol=200或 其他值限制语法高亮。:s/\s<a/<C-v><Enter><a。在这种特殊情况下,我建议使用解决方案 3。
| 归档时间: |
|
| 查看次数: |
7111 次 |
| 最近记录: |