Friday, May 10, 2013

Re: Vim warns of swap files in "/var/tmp/"

On Friday, May 10, 2013 5:42:59 AM UTC-5, Eric Weir wrote:
> Getting "swap file exists" warning. There are no swap files anywhere in my user directory. Then I notice the text of the warning: 
>
>
> Swap file "/var/tmp/writing.taskpaper.swp" already exists!
>

What is your 'directory' option set to? Is writing.taskpaper.swp related to a file you're editing, or a plugin?

> I'm gathering this has something to do with the fact that that I'm getting what I take to be gvim instead of macvim. 
>

I have no idea what led you to that conclusion. Why do you think this?

>
> I've deleted the swap files, but I'm still getting gvim instead of macvim. 
>

Deleting swap files has absolutely nothing to do with which version of Vim will launch from a shortcut. What are you saying, here?

>
> Why is this happening? How can I stop it?
>
>

Either you're editing a file in Vim that you already have open in another Vim, you had a Vim instance crash while editing that file before (but probably not, because you *said* you deleted the swap file), or you have a plugin creating swap files when it probably should not be.

Try disabling plugins by launching Vim with the --noplugin option. If the problem goes away it might be a plugin. The name of the swapfile might give a hint as to which one.

--
--
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 vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: