On 03/12/09 23:08, roman kalous wrote:
I got a laptop, XP windows, many politics& scripts applied. Among
others, the $HOME variable is set to a network drive. Naturally, once
I go off-line, I spend minutes waiting for nothing and then losing any
history of commands.
I simply need to set the viminfo file to my local harddrive and
preferably to my local home directory so that my gvim never want to
access any other drives than my local (temporaries, viminfo,
whatever).
I am not able to change the $HOME variable (and I even do not aim to).
I tried
set viminfo=nC:\DOCUME~1\<my user name>\LOCALS~1\MYDOCU~1\_viminfo
But that did not work.
I do not know where to place the command (vimrc, elsewhere ??) or if
it depends where it is placed. I do not even know whether it is
correct (I would doubt that as I obtain some E528 message which I do
not understand and even do not want to).
I am sure this problem is not new, let me know the solution how to
redirect viminfo to "C:\Documents and Settings\<my user name>\My
Documents\_viminfo".
THank you, Roman.
In addition to all other replies, not only the 'viminfo' option, if
nonempty, must include the ' sub-option, but the n sub-option, if
included, must come last; so there must not ne any :set vi+= statements
after :set vi+=nC:/DOCUME~1/instruktor/LOCALS~1/MYDOCU~1/viminfo (or
whatever path you choose). There _may_ be :set vi^= statements (to add
on the left side) after it if you wish.
My 'viminfo' option is set by
if has('viminfo')
set vi-=h vi+=!,%
if has("unix")
set vi+=r/media/dvdrecorder,r/mnt/floppy
else
set vi+=ra:,rb:
endif
endif
which (on Linux) results in
viminfo='100,<50,s10,!,%,r/media/dvdrecorder,r/mnt/floppy
If I wanted to change the viminfo file location, I would set it (with +=
) after each of the +=r lines, since the location would most probably
differ between Unix and Windows (or if it didn't, then place one set
vi+=n... between the two endif lines at the end).
Best regards,
Tony.
--
We were young and our happiness dazzled us with its strength.
But there was also a terrible betrayal that lay within me like a Merle
Haggard song at a French restaurant. ...
I could not tell the girl about the woman of the tollway, of
her milk white BMW and her Jordache smile. There had been a fight. I
had punched her boyfriend, who fought the mechanical bulls. Everyone
told him, "You ride the bull, senor. You do not fight it." But he was
lean and tough like a bad rib-eye and he fought the bull. And then he
fought me. And when we finished there were no winners, just men doing
what men must do. ...
"Stop the car," the girl said. There was a look of terrible
sadness in her eyes. She knew about the woman of the tollway. I knew
not how. I started to speak, but she raised an arm and spoke with a
quiet and peace I will never forget.
"I do not ask for whom's the tollway belle," she said, "the
tollway belle's for thee."
The next morning our youth was a memory, and our happiness was
a lie. Life is like a bad margarita with good tequila, I thought as I
poured whiskey onto my granola and faced a new day.
-- Peter Applebome, International Imitation Hemingway
Competition
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php