Re: Changing location of swap directory for selected files, how to?

2012-09-13 Thread Karthick Gururaj
On Wed, Sep 12, 2012 at 7:54 PM, Karthick Gururaj wrote: > On Wed, Sep 12, 2012 at 7:42 PM, sc wrote: >> On Wed, Sep 12, 2012 at 06:52:39PM +0530, Karthick Gururaj wrote: >>> Hello, >> >>> I would like to modify the value of 'dir' option for a few specific >>> files (e.g: all files in directory ~

Re: Changing location of swap directory for selected files, how to?

2012-09-13 Thread Ben Fritz
On Thursday, September 13, 2012 10:32:22 AM UTC-5, Karthick wrote: > > > I have some slow network shares, so I gave this idea a try to prevent using > > them for swap files. It seems successful so far, but beware of the crash I > > observed here: > > https://groups.google.com/d/topic/vim_dev/Zc

Re: Changing location of swap directory for selected files, how to?

2012-09-13 Thread Marcin Szamotulski
On 20:48 Thu 13 Sep , Karthick Gururaj wrote: > On Wed, Sep 12, 2012 at 10:00 PM, Marcin Szamotulski > wrote: > > On 08:03 Wed 12 Sep , Ben Fritz wrote: > >> On Wednesday, September 12, 2012 8:22:44 AM UTC-5, Karthick wrote: > >> > Hello, > >> > > >> > > >> > I would like to modify the va

Re: Changing location of swap directory for selected files, how to?

2012-09-13 Thread Karthick Gururaj
On Thu, Sep 13, 2012 at 12:02 AM, Ben Fritz wrote: > On Wednesday, September 12, 2012 10:03:09 AM UTC-5, Ben Fritz wrote: >> On Wednesday, September 12, 2012 8:22:44 AM UTC-5, Karthick wrote: >> >> > Hello, >> > I would like to modify the value of 'dir' option for a few specific >> > files (e.g: a

Re: Changing location of swap directory for selected files, how to?

2012-09-13 Thread Karthick Gururaj
On Wed, Sep 12, 2012 at 10:00 PM, Marcin Szamotulski wrote: > On 08:03 Wed 12 Sep , Ben Fritz wrote: >> On Wednesday, September 12, 2012 8:22:44 AM UTC-5, Karthick wrote: >> > Hello, >> > >> > >> > I would like to modify the value of 'dir' option for a few specific >> > files (e.g: all files i

Re: Changing location of swap directory for selected files, how to?

2012-09-12 Thread Ben Fritz
On Wednesday, September 12, 2012 10:03:09 AM UTC-5, Ben Fritz wrote: > On Wednesday, September 12, 2012 8:22:44 AM UTC-5, Karthick wrote: > > > Hello, > > > > > > > > > > > > I would like to modify the value of 'dir' option for a few specific > > > > > > files (e.g: all files in director

Re: Changing location of swap directory for selected files, how to?

2012-09-12 Thread Marcin Szamotulski
On 08:03 Wed 12 Sep , Ben Fritz wrote: > On Wednesday, September 12, 2012 8:22:44 AM UTC-5, Karthick wrote: > > Hello, > > > > > > I would like to modify the value of 'dir' option for a few specific > > files (e.g: all files in directory ~/Foo/). Had 'dir' been a buffer > > local option, it w

Re: Changing location of swap directory for selected files, how to?

2012-09-12 Thread Ben Fritz
On Wednesday, September 12, 2012 8:22:44 AM UTC-5, Karthick wrote: > Hello, > > > > I would like to modify the value of 'dir' option for a few specific > > files (e.g: all files in directory ~/Foo/). Had 'dir' been a buffer > > local option, it would have been a easy thing, > > au BufEnter ~/

Re: Changing location of swap directory for selected files, how to?

2012-09-12 Thread Karthick Gururaj
On Wed, Sep 12, 2012 at 7:42 PM, sc wrote: > On Wed, Sep 12, 2012 at 06:52:39PM +0530, Karthick Gururaj wrote: >> Hello, > >> I would like to modify the value of 'dir' option for a few specific >> files (e.g: all files in directory ~/Foo/). Had 'dir' been a buffer >> local option, it would have be

Re: Changing location of swap directory for selected files, how to?

2012-09-12 Thread sc
On Wed, Sep 12, 2012 at 06:52:39PM +0530, Karthick Gururaj wrote: > Hello, > I would like to modify the value of 'dir' option for a few specific > files (e.g: all files in directory ~/Foo/). Had 'dir' been a buffer > local option, it would have been a easy thing, > au BufEnter ~/Foo/* set dir=newv

Changing location of swap directory for selected files, how to?

2012-09-12 Thread Karthick Gururaj
Hello, I would like to modify the value of 'dir' option for a few specific files (e.g: all files in directory ~/Foo/). Had 'dir' been a buffer local option, it would have been a easy thing, au BufEnter ~/Foo/* set dir=newval But 'dir' is global across buffers. Can anyone suggest workarounds? I h