Cygwin .vimrc file location and how to make changes?

670 views
Skip to first unread message

tsai

unread,
Feb 10, 2012, 3:00:22 PM2/10/12
to vim...@googlegroups.com
Hi everyone,

After installing Cygwin, where is the default location of the .vimrc file so I can augment it? Kind of confusing. I know on my Linux box, it is hidden in the home directory and a simple ls -la will list it. That isn't happening in Cygwin. Where is .vimrc located in Cygwin and how do I make changes to it and save it?

Thanks


Tsai 

Ben Fritz

unread,
Feb 10, 2012, 3:28:52 PM2/10/12
to vim_use
I'm not sure where it is by default in cygwin, but an easy way to find
out is to launch vim, and :echo $MYVIMRC

Or just edit it with :edit $MYVIMRC

sc

unread,
Feb 10, 2012, 4:20:14 PM2/10/12
to vim...@googlegroups.com

the first way to find it that popped into my mind was to execute

:scriptnames

your .vimrc should be the first script mentioned

Christian Brabandt

unread,
Feb 11, 2012, 3:37:51 AM2/11/12
to vim...@googlegroups.com
Hi tsai!

~/.vimrc as on Unix.

regards,
Christian
--

pansz

unread,
Feb 13, 2012, 8:42:21 PM2/13/12
to vim...@googlegroups.com
On Sat, Feb 11, 2012 at 4:00 AM, tsai <tsa...@gmail.com> wrote:
> Hi everyone,
>
> After installing Cygwin, where is the default location of the .vimrc file so
> I can augment it? Kind of confusing. I know on my Linux box, it is hidden in
> the home directory and a simple ls -la will list it. That isn't happening in
> Cygwin.

If you don't have the .vimrc in your home directory, you can create
one from scratch.

A better way may be copy the one found in your Linux box to your
cygwin home directory.

The cygwin is considered unix environment and .vimrc should be in your home.

Reply all
Reply to author
Forward
0 new messages