Skip to content

Instantly share code, notes, and snippets.

@shellexy
Last active January 3, 2016 20:59
Show Gist options
  • Save shellexy/8518500 to your computer and use it in GitHub Desktop.
Save shellexy/8518500 to your computer and use it in GitHub Desktop.
vim 大文件
" 大文件
autocmd BufReadPre * if getfsize(expand("<afile>")) > 1024*1024*200 | setlocal noundofile bufhidden=unload lazyredraw linebreak syntax=off | endif
" 或者可以简单 gvim -u NONE 来打开大文件
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment