Vim Tips Wiki
(Created page with "By default, Cygwin does ''not'' include the improved version of vi, and this results in ~/.vimrc being ignored. To create a custom configuration file, you have two options" <...")
 
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
  +
{{TipProposed
By default, Cygwin does ''not'' include the improved version of vi, and this results in ~/.vimrc being ignored. To create a custom configuration file, you have two options"
 
  +
|id=0
  +
|previous=0
  +
|next=0
  +
|created=July 16, 2013
  +
|complexity=basic
  +
|author=
  +
|version=7.0
  +
|subpage=/2013
  +
|category1=Cygwin
  +
|category2=
  +
}}
 
By default, Cygwin does ''not'' include the improved version of vi, and this results in <code>~/.vimrc</code> being ignored. To create a custom configuration file, you have two options:
 
*Store your vi configuration settings in <code>~/.virc</code>.
 
*Install Vim via setup.exe (see note below).
   
 
For option 2, you will have to launch vi with the Vim command or add an alias to ~/.profile, ~/.bashrc, ~/.zshrc, etc. like so:
<ol>
 
<li>Store your vi configuration settings in ~/.virc</li>
 
<li>Install vim via setup.exe (see note below)</li>
 
</ol>
 
 
 
For option 2, you will have to launch vi with the vim command or add an alias to ~/.profile, ~/.bashrc, ~/.zshrc, etc. like so:
 
 
<code>
 
<code>
 
echo "alias vi=vim" >> ~/.bashrc
 
echo "alias vi=vim" >> ~/.bashrc
 
</code>
 
</code>
  +
  +
==Comments==
  +
I went for first option, that helped, thanks! Regards, Ida

Latest revision as of 07:45, 17 April 2014

Proposed tip Please edit this page to improve it, or add your comments below (do not use the discussion page).

Please use new tips to discuss whether this page should be a permanent tip, or whether it should be merged to an existing tip.
created July 16, 2013 · complexity basic · version 7.0

By default, Cygwin does not include the improved version of vi, and this results in ~/.vimrc being ignored. To create a custom configuration file, you have two options:

  • Store your vi configuration settings in ~/.virc.
  • Install Vim via setup.exe (see note below).

For option 2, you will have to launch vi with the Vim command or add an alias to ~/.profile, ~/.bashrc, ~/.zshrc, etc. like so: echo "alias vi=vim" >> ~/.bashrc

Comments[]

I went for first option, that helped, thanks! Regards, Ida