aboutsummaryrefslogtreecommitdiff
path: root/autoload
diff options
context:
space:
mode:
Diffstat (limited to 'autoload')
-rw-r--r--autoload/big_file_options.vim25
1 files changed, 9 insertions, 16 deletions
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