From a3d575f4db69123dbad6c59faf8ba6185e4b0091 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 25 May 2019 17:25:08 +1200 Subject: Remove syntax feature check --- autoload/big_file_options.vim | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) (limited to 'autoload') diff --git a/autoload/big_file_options.vim b/autoload/big_file_options.vim index 023c672..4d65bd4 100644 --- a/autoload/big_file_options.vim +++ b/autoload/big_file_options.vim @@ -79,23 +79,16 @@ function! s:SetPost() abort " Force filetype off setlocal filetype=NONE - " Syntax features - if has('syntax') - - " Disable syntax highlighting if configured - let syntax = get(g:, 'big_file_options_syntax', 0) - if !syntax - setlocal syntax=OFF - endif - - " Force maximum syntax columns down if configured - if exists('+synmaxcol') - let synmaxcol = get(g:, 'big_file_options_synmaxcol', 256) - if &synmaxcol > synmaxcol - let &l:synmaxcol = synmaxcol - endif - endif + " Disable syntax highlighting if configured + let syntax = get(g:, 'big_file_options_syntax', 0) + if !syntax + setlocal syntax=OFF + endif + " Force maximum syntax columns down if configured + let synmaxcol = get(g:, 'big_file_options_synmaxcol', 256) + if &synmaxcol > synmaxcol + let &l:synmaxcol = synmaxcol endif " Tell the user what we've done -- cgit v1.2.3