Last active
January 3, 2016 20:59
-
-
Save shellexy/8518500 to your computer and use it in GitHub Desktop.
vim 大文件
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 大文件 | |
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