aboutsummaryrefslogtreecommitdiff
path: root/plugin/big_file_options.vim
blob: e02e935965a0ba507675e2347202926d9526f251 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"
" big_file_options.vim: When opening a large file, take some measures to keep
" things loading quickly.
"
" Author: Tom Ryder <tom@sanctum.geek.nz>
" License: Same as Vim itself
"
if exists('loaded_big_file_options') || &compatible || v:version < 700
  finish
endif
let loaded_big_file_options = 1

" Define autocmd for calling to check filesize
augroup big_file_options
  autocmd!
  autocmd BufReadPre,StdinReadPre *
        \ call big_file_options#()
augroup end