Cygwin .vimrc file location and how to make changes?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Cygwin .vimrc file location and how to make changes?

tsai
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 

--
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
Reply | Threaded
Open this post in threaded view
|

Re: Cygwin .vimrc file location and how to make changes?

Benjamin Fritz


On Feb 10, 2:00 pm, tsai <[hidden email]> 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. Where is .vimrc located in Cygwin and how do I make
> changes to it and save it?
>

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

--
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
Reply | Threaded
Open this post in threaded view
|

Re: Cygwin .vimrc file location and how to make changes?

scott-268
On Fri, Feb 10, 2012 at 12:28:52PM -0800, Ben Fritz wrote:


> On Feb 10, 2:00 pm, tsai <[hidden email]> 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. Where is .vimrc located in Cygwin and how do I make
> > changes to it and save it?
> >

> 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

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

    :scriptnames

your .vimrc should be the first script mentioned

--
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
Reply | Threaded
Open this post in threaded view
|

Re: Cygwin .vimrc file location and how to make changes?

Christian Brabandt
In reply to this post by tsai
Hi tsai!

On Fr, 10 Feb 2012, tsai 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. Where is .vimrc located in Cygwin and how do I make
> changes to it and save it?

~/.vimrc as on Unix.

regards,
Christian
--

--
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
Reply | Threaded
Open this post in threaded view
|

Re: Cygwin .vimrc file location and how to make changes?

pansz
In reply to this post by tsai
On Sat, Feb 11, 2012 at 4:00 AM, tsai <[hidden email]> 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.

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