diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-25 17:25:08 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-05-25 17:31:52 +1200 |
commit | a3d575f4db69123dbad6c59faf8ba6185e4b0091 (patch) | |
tree | 67d165e3a7bc5563b18404083310a73617e2c2b0 /autoload | |
parent | Remove redundant option existence check (diff) | |
download | vim-big-file-options-a3d575f4db69123dbad6c59faf8ba6185e4b0091.tar.gz vim-big-file-options-a3d575f4db69123dbad6c59faf8ba6185e4b0091.zip |
Remove syntax feature check
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/big_file_options.vim | 25 |
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 |