Hello,
I am using FreeBSD 10.1-RELEASE-p6 in a VMWare 5.5 environment.
I have a problem configuring (my favorite editor)
I created a alternate directory /opt/tmp on a big filesystem with same permissions drwxrwxrwt as /var/tmp owned by root:wheel.
I tried setting $TMPDIR environment variable in
I tried setting into ~/.exrc
and then editing the file, same result : no temporary file is created in /opt/tmp, all is done in /var/tmp/vi.recover/.
I opened the file with
one empty temporary file is created in /opt/tmp but swap files are created in /var/tmp/vi.recover/.
Man page says :
I read man pages and several articles about
I agree that
Regards
Denis
PS : redited my post to use forum html editor, it's much more readable now.
I am using FreeBSD 10.1-RELEASE-p6 in a VMWare 5.5 environment.
I have a problem configuring (my favorite editor)
vi
to use an alternate temporary directory when editing large files instead of full filling /var.I created a alternate directory /opt/tmp on a big filesystem with same permissions drwxrwxrwt as /var/tmp owned by root:wheel.
I tried setting $TMPDIR environment variable in
sh
, csh
and tcsh
as normal user (inside wheel group) and as superuser root before editing file and making searches inside : no temporary file is created in /opt/tmp, all is done in /var/tmp/vi.recover/.I tried setting into ~/.exrc
Code:
dir=/opt/tmp
"or
directory=/opt/tmp
I opened the file with
vi
then immediately setting dir
Code:
:set dir=/opt/tmp
Man page says :
Code:
directory, dir [environment variable TMPDIR, or /tmp]
The directory where temporary files are created.
vi
I used for years now, I found nothing about this strange behaviour. I tried many possibilities without success, is there another possibility or could it be an abnormal behaviour for FreeBSD 10 ?I agree that
vi
is not the best way to make searches, egrep
and awk
are my favorites but sometimes I don't take time to use them.Regards
Denis
PS : redited my post to use forum html editor, it's much more readable now.