Friday, May 10, 2013

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


On May 10, 2013, at 9:01 AM, 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!

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've deleted the swap files, but I'm still getting gvim instead of macvim. 

Why is this happening? How can I stop it?

A clue. I've been trying to get vim touch going on an android tablet. And I've been syncing the '.vim' folders on the tablet and my macbook but not the .vimrcs. 

Just now on the macbook I executed the vimwiki command to rename a link and it asked if I wanted to create a new folder on android file path. I thought maybe I'd accidentally copied the android .vimrc to the home folder on my macbook, but I checked and I had not. My vim [macbook] and vim touch [table] setups are identical except for the paths to folders need by my plugins. I assumed it was safe to sync the .vim folders between the two systems, but I'm guessing that it's not.

I've disabled syncing between the tablet and the macbook and will go back into my backups before I started syncing the two systems and restore my .vim folder from there.

If anyone has any suggestions for how I can more easily get back to a healthy '.vim' folder I'd appreciate them.

Sincerely,
------------------------------------------------------------------------------------------
"On the basis of evidence we may be sure that 
we are wrong but we can never be sure that we are right." 

- Richard Feynman

No comments: