[vox-tech] vi problem: can't make back up file (add ! to override)

Hai Yi yihai2004 at gmail.com
Sun Sep 7 16:28:43 PDT 2008


hello, Carl:

Thanks for the response. I checked the package and found that the
vim-full was missing; then I installed it and its dependencies.
However, the problem persisted. Later I found that when I opened a
file, the message pop up for 1 sec : "unable to open swap file... ", I
googled it and ppl said I need to "...change the 'directory' option to
avoid this error...".

I went back to check the .vimrc file and found its variable "directory
" is set to "$HOME/tmp", which I didn't have it. So I created this
folder underneath $HOME, and my problem is resolved.

FYI, my distribution is Ubuntu 8.0.4 and my vim is " version 7.1.138 "

Thanks again for the hint.
Hai



On Sun, Sep 7, 2008 at 7:09 PM, Carl Boettiger <cboettig at gmail.com> wrote:
> Could you provide a little more information:
>
> What distribution are you using? Have you installed any extra vim
> packages (i.e. vim-full in ubuntu/debian)?  Perhaps you need to
> install certain extensions, since the .vimrc is just providing the
> configuration, not the actual support.  For instance, you can turn
> syntax highlighting on by typing the command
>
> stynax on
>
> or by adding that line to your own .vimrc.
>
> Could you attach the .vimrc and .exrc files you are using?
>
> -C
>
>
>
>
> On Sun, Sep 7, 2008 at 3:41 PM, Hai Yi <yihai2004 at gmail.com> wrote:
>> Hello,
>>
>> I have downloaded two configuration files for VIM, one is .exrc and
>> the other .vimrc
>>
>> After these two files are applied, the vi editor starts to support
>> color syntax (maybe other feature as well). However after I edited a
>> CPP file and wanted to save it, I encountered this error message:
>>
>> can't make back up file (add ! to override)
>>
>> Therefore the file is not able to be saved.
>>
>> Anyone knows how to handle this error?
>>
>>
>> Thanks for the suggestions!
>>
>> Hai
>> _______________________________________________
>> vox-tech mailing list
>> vox-tech at lists.lugod.org
>> http://lists.lugod.org/mailman/listinfo/vox-tech
>>
>
>
>
> --
> Carl Boettiger
> Population Biology, UC Davis
> http://two.ucdavis.edu/~cboettig
> _______________________________________________
> vox-tech mailing list
> vox-tech at lists.lugod.org
> http://lists.lugod.org/mailman/listinfo/vox-tech
>


More information about the vox-tech mailing list