From 0ce3100c92c5662286f2088ebd539336790da1ea Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 7 Jul 2018 16:37:32 +1200 Subject: Simply 'synmaxcol' setting --- plugin/big_file_options.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugin') diff --git a/plugin/big_file_options.vim b/plugin/big_file_options.vim index a64d648..9b60976 100644 --- a/plugin/big_file_options.vim +++ b/plugin/big_file_options.vim @@ -36,8 +36,8 @@ function! s:BigFileOptions() let l:synmaxcol = exists('g:big_file_synmaxcol') \ ? g:big_file_synmaxcol \ : 256 - if exists('+synmaxcol') && &synmaxcol > l:synmaxcol - execute 'setlocal synmaxcol=' . l:synmaxcol + if exists('+synmaxcol') && &l:synmaxcol > l:synmaxcol + let &l:synmaxcol = l:synmaxcol endif " Disable syntax highlighting if configured to do so -- cgit v1.2.3