summaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-10-31 15:04:07 -0400
committerJesse Luehrs <doy@tozt.net>2013-11-01 09:41:30 -0400
commitdaaaaad24da079d1251d9b16a94abb50d5d5c56e (patch)
treee023987bb61d7a26eef23149dbb0948c4bf15eda /vimrc
parent20dc26b0f24e41c42208e9f50cf0ca067817f9c0 (diff)
downloadconf-daaaaad24da079d1251d9b16a94abb50d5d5c56e.tar.gz
conf-daaaaad24da079d1251d9b16a94abb50d5d5c56e.zip
turn syntax highlighting off in huge files
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 2e78473..8f88630 100644
--- a/vimrc
+++ b/vimrc
@@ -373,6 +373,9 @@ endif
" start with the current fold open {{{
autocmd BufReadPost * normal zv
" }}}
+" disable syntax highlighting for huge files (it's really slow) {{{
+autocmd BufEnter * if line('$') > 20000 | syntax off | endif
+" }}}
" Misc {{{
autocmd BufWritePost *conkyrc silent exe "!killall -HUP conky"
" }}}