Wednesday, January 25, 2012

swap file directory

Hello,

I stated to use a new computer where, as I expected for a default behaviour,
swap files are created in the current directory on a given screen or window.
But that happens only for the first file opened for a given screen or
window. If I split the window (:sp or :vsp) and open different files on each
split, those files will have their corresponding swap files created
somewhere else (/var/tmp).

I tried specifying a specific directory for swap file in my .vimrc inserting
a line such as:

set directory=~/.vim/swap_files//

but it had effect only for the main file edited. Swap files for subsequent
files edited on each split continue to be created on /var/tmp.

Does anybody know what I have to do to have only one location for all swap
files?

Thank you.

-----------------------------
Uma nova maneira de fazer negócio
TabWay, o tablet da Itautec. Uma combinação entre o melhor do hardware,
software e serviços para otimizar seus negócios.
www.itautec.com.br/tabway

-----------------------------


0

--
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

No comments: