Re: Disable swap file for large files?

2013-08-23 Thread Abhishek
On Wednesday, August 21, 2013 2:57:51 AM UTC+5:30, 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 Hi, Here's something I use: let g:BufSizeThresholdSmall = 50

Re: Disable swap file for large files?

2013-08-23 Thread Ben Fritz
It would be nice, if somebody took some of the suggestions in this thread and incorporated them into: http://vim.wikia.com/wiki/Faster_loading_of_large_files -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying to. For

Re: Disable swap file for large files?

2013-08-22 Thread Christian Brabandt
On Wed, August 21, 2013 19:29, Charles Campbell wrote: On Tuesday, August 20, 2013 5:36:00 PM UTC-5, John Little wrote: I really wish 'undolevels' were not a global option, but it is, so LargeFile messing with it is not very good when using the same Vim There is a patch pending, making

Re: Disable swap file for large files?

2013-08-22 Thread Ben Fritz
On Thursday, August 22, 2013 1:25:29 AM UTC-5, Christian Brabandt wrote: No. There are only two ways handling this. If you don't really change the buffer, you can disable the undo and later :rundo the existing undofiles. Woah, woah, woah! Could one theoretically add to the autocmd that

Re: Disable swap file for large files?

2013-08-22 Thread Christian Brabandt
On Thu, August 22, 2013 16:37, Ben Fritz wrote: On Thursday, August 22, 2013 1:25:29 AM UTC-5, Christian Brabandt wrote: No. There are only two ways handling this. If you don't really change the buffer, you can disable the undo and later :rundo the existing undofiles. Woah, woah, woah!

Re: Disable swap file for large files?

2013-08-22 Thread Charles Campbell
Christian Brabandt wrote: On Thu, August 22, 2013 16:37, Ben Fritz wrote: On Thursday, August 22, 2013 1:25:29 AM UTC-5, Christian Brabandt wrote: No. There are only two ways handling this. If you don't really change the buffer, you can disable the undo and later :rundo the existing

Re: Disable swap file for large files?

2013-08-22 Thread Christian Brabandt
Hi Charles! On Do, 22 Aug 2013, Charles Campbell wrote: Christian Brabandt wrote: On Thu, August 22, 2013 16:37, Ben Fritz wrote: On Thursday, August 22, 2013 1:25:29 AM UTC-5, Christian Brabandt wrote: No. There are only two ways handling this. If you don't really change the buffer, you

Re: Disable swap file for large files?

2013-08-21 Thread Ben Fritz
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

Re: Disable swap file for large files?

2013-08-21 Thread Ben Fritz
On Tuesday, August 20, 2013 5:36:00 PM UTC-5, John Little wrote: Use the LargeFile plugin, it does exactly that. One can set a variable in your.vimrc to set the threshold; it defaults to 20 MB. I'm actually considering uninstalling the LargeFile plugin myself. I have file associations

Re: Disable swap file for large files?

2013-08-21 Thread Jorge Rodrigues
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. Thanks for the suggestions Ben and John, I

Disable swap file for large files?

2013-08-20 Thread skeept
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 -- -- 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

Re: Disable swap file for large files?

2013-08-20 Thread Ben Fritz
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

Disable swap file for large files?

2013-08-20 Thread John Little
Use the LargeFile plugin, it does exactly that. One can set a variable in your.vimrc to set the threshold; it defaults to 20 MB. Regards, John Little -- -- 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