aboutsummaryrefslogtreecommitdiff
path: root/vim/plugin
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-11-02 14:18:04 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-11-02 14:18:58 +1300
commit17bd794328560cf68c23db2f2a1b04526abe932b (patch)
tree1313ec75b4724d04e3bf8a4f8e6697a86c4b577d /vim/plugin
parent080a0802d95ce3d89a4cfd9dded76d11b3092e88 (diff)
downloaddotfiles-17bd794328560cf68c23db2f2a1b04526abe932b.tar.gz
dotfiles-17bd794328560cf68c23db2f2a1b04526abe932b.zip
Rename variable and autocmd to use plugin prefix
Just removing an underscore from the variable name so that g:big_file_size becomes g:bigfile_size, and remove the "dotfiles" prefix from the autocmd.
Diffstat (limited to 'vim/plugin')
-rw-r--r--vim/plugin/bigfile.vim8
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