Thursday, September 3, 2009

using Unix 'whoami' to build a temp file location

Is there a way to set a temp and backup location for users using a
global vimrc like:

my name is "rlhicks"

when loading vim it checks to see if the following are there:

/tmp/rlhicks/backup
/tmp/rlhicks/temp

If they are it uses them...if they aren't it creates them an uses
them.

If doing something in home would work:

/home/rhicks/.vim/backup
/home/rhicks/.vim/tmp

I am sure I can use a shell script to check and create the directories
but wondering if I can do it all from the vimrc.

Robert
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

No comments: