big_file_options.vim : Automatically set options to speed up working with big files
| script karma
Downloaded by 1
Comments, bugs, improvements
script versions (upload new version)
|This plugin adds an |autocmd| hook to check the file size of an incoming buffer, and if it's over a certain threshold, disables certain options in order to make the file a bit easier to edit. It disables backups, swap files, undo files, and by default syntax highlighting.
It's similar to the much older and more sophisticated LargeFile plugin by Charles Campbell, which is based on vimtip #611: http://vim.wikia.com/wiki/Faster_loading_of_large_files
If you want more options and bells and whistles, you should definitely use that instead. I'm intentionally keeping this very small and simple; it should be install-and-forget.
|Drop plugin/big_file_options.vim in your ~/.vim/plugin directory. Add doc/big_file_options.txt in ~/.vim/doc if you want the help file. Otherwise, use your favourite Vim plugin package manager.|
Click on the package to download.
ip used for rating: