big_file_options.vim : Automatically set options to speed up working with big files
| script karma
Downloaded by 293
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 makes the buffer read-only, and disables filetypes, swap files, undo files, and syntax highlighting.
It's similar to the much older and more sophisticated LargeFile plugin by Charles Campbell, which is based on vimtip #611.
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: 22.214.171.124