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/5, Downloaded by 682  Comments, bugs, improvements  Vim wiki

created by
Tom Ryder
 
script type
utility
 
description
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.

https://sanctum.geek.nz/cgit/vim-big-file-options.git
 
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.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-big-file-options-1.0.0.tar.gz 1.0.0 2018-07-07 6.0 Tom Ryder Overhaul; remove broken backup disabling, fix option names, add new readonly option, refine detection algorithm, and more.
ip used for rating: 142.132.191.50

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.
   
Vim at Github