sponsor Vim development Vim logo Vim Book Ad

big_file_options.vim : Automatically set options to speed up working with big files

 script karma  Rating -1/1, Downloaded by 1  Comments, bugs, improvements  Vim wiki

created by
Tom Ryder
script type
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.
install details
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.
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-big-file-options-0.2.1.tar.gz 0.2.1 2018-06-17 6.0 Tom Ryder Hide options in default state, structural changes
ip used for rating:

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
SourceForge.net Logo