On Tuesday, August 20, 2013 4:32:28 PM UTC-5, Ben Fritz wrote: > On Tuesday, August 20, 2013 4:27:51 PM UTC-5, skeept wrote: > > Is there a way of enabling swap files for files say less than 10Mb but > > disabling swap files for files or larger sizes? > > > > Thanks, > > > > Jorge > > Start with them globally disabled. On a BufRead autocmd, set it to enabled > (locally), if getfsize() on the file name is larger than your threshold value.
Oops, I guess You wanted to DISABLE for files larger than a certain size, not ENABLE them. You could do the same thing in reverse, or potentially enable by default and then disable locally in a BufReadPre. I'm not sure whether that works or not. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
