Hi,

When opening a file, is there a way to tell vim which name to use for
the swapfile?

I'm writing a little vim config file to edit a CMS' content in a DB.
Each page has a parts named 'body', which the script makes available
through
   :Radiant edit pages/Home Page/body
or, for another page:
   :Radiant edit pages/Home Page/Articles/First Post/body

The problem is that vim is using the same swapfile due to the last
part of the path being body in both cases. I see 2 solutions to this
problem: either use no swapfile (resetting swapfile), or specify
another name for the swapfile, with a preference for the latter. I can
specify the directory where to put swapfiles, but can I specify a name
for the swapfile? Or can I set a swapfile directory specific to a
buffer?

Thanks in advance for your help.

Raph


--
Web database: http://www.myowndb.com
Free Software Developers Meeting: http://www.fosdem.org

Reply via email to