Sunday, June 16, 2013

Re: error M:\_viminfo!

On Sunday, June 16, 2013 6:02:10 AM UTC-5, steve wrote:
> Im using vim on windows 7 this is in a domain environment.
>
> Sometimes when the M: network drive is not conencted I get this error when IM exiting the program. This is odd because started VIM on the C:\ drive.
>
> I know that you can set up local configuration files that set up where the tmp file goes an I suppose 100's of other settings.
> M:\_viminfo!
>
> The version I use is I want the temp files etc to be on the c drive. For many reasons but one of my concerns is that the tmp files that are created are left behind on the M: drive thus creating a security risk, when I use the -x option.
>
> Anyway can anyone tell me how to stop this and maybe why its trying to do things on M:

By default _viminfo goes into whatever Vim sees as "$HOME". This is the same place used for your _vimrc and vimfiles directories.

You can fix this in a couple ways.

First, you could set the HOME environment variable in Windows, to point to somewhere on your C: drive. This will make Vim look in the C: drive for your config files like _vimrc and vimfiles/plugin and such. In my experience Vim is much faster with local config files. Where I work it can take up to 40 seconds for Vim to launch when my config files are on a network share (depending on network load) where it only takes 1-3 seconds when they are stored on my hard drive.

If you don't want to set HOME, you could add an "n" flag with the path you want to your 'viminfo' option. See :help 'viminfo' for details.

>
> VIM - Vi IMproved
>
> version 7.2
> by Bram Moolenaar et al.
> Vim is open source and freely distributable
>
> Sponsor Vim development!
> type :help sponsor<Enter> for information
>
> type :q<Enter> to exit
> type :help<Enter> or <F1> for on-line help
> type :help version7<Enter> for version info

This is a VERY old version. Try 7.3.829 from http://sourceforge.net/projects/cream/files/Vim/ (currently the most recent available from that project). Although, 7.4 should be out soon-ish too.

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment