If you place the following three lines in your ~/.vimrc, vim will never
use /tmp
set backupdir=~/.vim/backup
set viewdir=~/.vim/views
set directory=~/.vim/swap
and also make sure that those directories exist:
mkdir -p ~/.vim/{backup,views,swap}
The behavior you cite in your bug report is the de
Jeffrey Baker:
Thank you for your efforts on this bug report. I do not appreciate you
calling my actions "asshatery". My action was innocuous at worst.. To
maintain a respectful atmosphere, please follow the code of conduct -
http://www.ubuntu.com/community/conduct/ . Bug reports are handled by
h
This guy is going around and just changing all the open bugs from 2005
from Confirmed to Incomplete. Is there some way we can roll back his
asshattery?
--
Cannot recover unsaved email after system crash
https://bugs.launchpad.net/bugs/11899
You received this bug notification because you are a me
Yes, this is still the case on Lucid (and Maverick). What did you think
had changed?
To summarise:
- mutt's default 'tmpdir' is still /tmp
- vim's default 'directory' for where it keeps swap files still tries '.'
first, which will be /tmp when composing email in mutt.
- Ubuntu still defaults
Thank you for reporting this bug.
Does this occur in Lucid?
** Changed in: vim (Ubuntu)
Status: Confirmed => Incomplete
--
Cannot recover unsaved email after system crash
https://bugs.launchpad.net/bugs/11899
You received this bug notification because you are a member of Ubuntu
Bugs, whi
James: And I have now configured things to avoid this issue. The bug
isn't that vim (or mutt) can't do this. The bug is that the default
behaviour should be sane, rather than the default configuration of the
system to be deleting crash recovery data before the user has a chance
to use it.
--
Ca
If you don't want Vim saving the swapfile in the same directory as the
file being edited, then configure it not to. For example, I have the
~/.vim/tmp as the first directory Vim tries to store swapfiles in by
adding the following line to my ~/.vimrc:
set directory^=~/.vim/tmp " Prepend ~/.vim/
Vim's behaviour is still the same (default to using the current
directory first, if possible).
A workaround for this is to use the following in your .muttrc:
set editor="/usr/bin/vim --cmd 'set directory-=.'"
This removes the "current directory" (/tmp for mutt's default location) from
the lis
It's still a problem for you with vim 7 ?
VIM - Vi IMproved 7.0 (2006 May 7, compiled May 22 2007 21:23:05) -
Feisty current version...
--
Cannot recover unsaved email after system crash
https://bugs.launchpad.net/bugs/11899
You received this bug notification because you are a member of Ubuntu
B