Running Turtle
Running Turtle

Reputation: 12752

open vim in alternate directory in windows

using vim + NERDTree in windows is a bit of a pain for me because each time I start vim and toggle NERDTree, NERDTree takes a long time caching my whole /Windows/system32 directory.

In order to avoid that, how can I create a shortcut to open vim in say C:\users\me\vim ?

Upvotes: 2

Views: 246

Answers (1)

Xavier T.
Xavier T.

Reputation: 42258

You can add somewhere in your .vimrc.

cd C:\users\me\vim

It will change the working directory of your Vim instance.

According to :help starting.txt.vimrc is loaded before plugins.

Upvotes: 1

Related Questions