Wikia

Vim Tips Wiki

Changes: Fix .vimrc

Edit

Back to page

(Comments)
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
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:
+
{{TipProposed
  +
|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).
   
<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:
<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>
[[Category:Cygwin]]
+
  +
==Comments==
  +
I went for first option, that helped, thanks! Regards, Ida

Latest revision as of 07:45, April 17, 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

CommentsEdit

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

Around Wikia's network

Random Wiki