Saturday, December 10, 2011

Re: how to change vim default path for windows7

On 2011-12-09, 鹏 左 wrote:
> newer to vim, newer to this group
>
> not the save path is windows/system32/
> I don't want to save doc here
> what should i do

Something is not right about Vim's choice of default path. I would
not expect the default path to be /windows/system32. I would expect
the default path to be "/Documents and Settings/鹏 左". (Does
Windows 7 still use the "/Documents and Settings" folder, or does it
have some other name?)

Another term for default path is current working directory.

You can change Vim's current working directory with the :cd command.
See

:help :cd

If you want Vim to always start in a particular directory, you can
put the :cd command in your ~/_vimrc file. If you want Vim to use
the parent directory of the file you are editing as its current
working directory, you can put this setting in your ~/_vimrc file:

set autochdir

See

:help 'autochdir'

There are other ways to change this directory, too. Which way is
best for you depends on what you want.

Regards,
Gary

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