aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-07 16:40:00 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-07 16:40:00 +1200
commitf393fa3efb9601c874c8a298436c5ada421e8d9b (patch)
treedf5ebdc3b4965b7a3959423be1a67cf6046e46ae
parentSimply 'synmaxcol' setting (diff)
downloadvim-big-file-options-f393fa3efb9601c874c8a298436c5ada421e8d9b.tar.gz
vim-big-file-options-f393fa3efb9601c874c8a298436c5ada421e8d9b.zip
Use full plugin name in options prefix
-rw-r--r--doc/big_file_options.txt24
-rw-r--r--plugin/big_file_options.vim12
2 files changed, 18 insertions, 18 deletions
diff --git a/doc/big_file_options.txt b/doc/big_file_options.txt
index 72460bd..aaea917 100644
--- a/doc/big_file_options.txt
+++ b/doc/big_file_options.txt
@@ -25,18 +25,18 @@ OPTIONS *big_file_options-options*
There are a few options you can set at any time before loading big files; it's
probably best to put them in your |vimrc|.
- *g:big_file_size*
-Set `g:big_file_size` to the threshold in bytes beyond which a file should be
-considered "big"; this defaults to 10 MiB.
-
- *g:big_file_syntax*
-Set `g:big_file_syntax` to either 1 or 0 depending on whether you want to
-disable syntax highlighting completely on large files.
-
- *g:big_file_synmaxcol*
-Set `g:big_file_synmaxcol` to the number of columns for which syntax
-highlighting should be done on big files, assuming |g:big_file_syntax| is
-enabled. It defaults to 256 and only works if you have the |+synmaxcol|
+ *g:big_file_options_size*
+Set `g:big_file_options_size` to the threshold in bytes beyond which a file
+should be considered "big"; this defaults to 10 MiB.
+
+ *g:big_file_options_syntax*
+Set `g:big_file_options_syntax` to either 1 or 0 depending on whether you want
+to disable syntax highlighting completely on large files.
+
+ *g:big_file_options_synmaxcol*
+Set `g:big_file_options_synmaxcol` to the number of columns for which syntax
+highlighting should be done on big files, assuming |g:big_file_options_syntax|
+is enabled. It defaults to 256 and only works if you have the |+synmaxcol|
feature.
AUTHOR *big_file_options-author*
diff --git a/plugin/big_file_options.vim b/plugin/big_file_options.vim
index 9b60976..90fc27d 100644
--- a/plugin/big_file_options.vim
+++ b/plugin/big_file_options.vim
@@ -17,8 +17,8 @@ let g:loaded_big_file_options = 1
function! s:BigFileOptions()
" Don't do anything if the buffer size is under the threshold
- let l:size = exists('g:big_file_size')
- \ ? g:big_file_size
+ let l:size = exists('g:big_file_options_size')
+ \ ? g:big_file_options_size
\ : 10 * 1024 * 1024
if line2byte(line('$') + 1) <= l:size
return
@@ -33,16 +33,16 @@ function! s:BigFileOptions()
endif
" Limit the number of columns of syntax highlighting
- let l:synmaxcol = exists('g:big_file_synmaxcol')
- \ ? g:big_file_synmaxcol
+ let l:synmaxcol = exists('g:big_file_options_synmaxcol')
+ \ ? g:big_file_options_synmaxcol
\ : 256
if exists('+synmaxcol') && &l:synmaxcol > l:synmaxcol
let &l:synmaxcol = l:synmaxcol
endif
" Disable syntax highlighting if configured to do so
- let l:syntax = exists('g:big_file_syntax')
- \ ? g:big_file_syntax
+ let l:syntax = exists('g:big_file_options_syntax')
+ \ ? g:big_file_options_syntax
\ : 0
if !l:syntax
setlocal syntax=OFF