diff options
Diffstat (limited to 'vim/plugin')
-rw-r--r-- | vim/plugin/bigfile.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vim/plugin/bigfile.vim b/vim/plugin/bigfile.vim index 7f28c539..962d7153 100644 --- a/vim/plugin/bigfile.vim +++ b/vim/plugin/bigfile.vim @@ -9,14 +9,14 @@ if has('eval') && has('autocmd') " Default threshold is 10 MiB - if !exists('g:big_file_size') - let g:big_file_size = 10 * 1024 * 1024 + if !exists('g:bigfile_size') + let g:bigfile_size = 10 * 1024 * 1024 endif " Declare function for turning off slow options function! s:BigFileMeasures() let l:file = expand('<afile>') - if getfsize(l:file) > g:big_file_size + if getfsize(l:file) > g:bigfile_size setlocal nobackup setlocal nowritebackup setlocal noswapfile @@ -30,7 +30,7 @@ if has('eval') && has('autocmd') endfunction " Define autocmd for calling to check filesize - augroup dotfiles_big_file_measures + augroup bigfile_options_bufreadpre autocmd! autocmd BufReadPre * call s:BigFileMeasures() augroup end |