Adding color to VIM and Cygwin
These are notes-to-self more than anything, but maybe you can use them.
You can add colorized text to Vim by adding the following to .vimrc
in your $HOME directory:
" Switch syntax highlighting on, when the terminal has colors " Also switch on highlighting the last used search pattern. if &t_Co > 2 || has("gui_running") syntax on set hlsearch endi
If you don't have this file, you can create it using :mkv
. You can change your font-settings by editing them with Edit >> Select Font and then typing :set guifont
, followed by :mkv!
. I prefer Courier New, 9pt.
If you want colors for file listings (using ls
) in Cygwin, add the following to your .bashrc
file in your $HOME directory:
alias ls="ls -CF --color"
Posted by Steve on June 05, 2008 at 06:18 PM MDT #
Posted by 139.93.128.12 on August 18, 2010 at 03:45 PM MDT #
Posted by Erik Weibust on June 29, 2011 at 01:01 PM MDT #
Posted by Wouter on October 17, 2012 at 02:20 PM MDT #
Posted by Annon on March 30, 2013 at 11:28 AM MDT #
Posted by 112.204.152.113 on June 01, 2013 at 04:33 PM MDT #
Posted by Hector on April 24, 2014 at 09:43 PM MDT #