Monday, February 10, 2014

turn off color in vim

1. change colors in vim 
I found this somewhere online to turn off color in vim. 
Before this, comments are displayed as blue and it makes extremely to read.
After that, comments are displayed as rest of texts, which use default 
foreground color.  
 
So here is what you need to do:
Add the following three lines in your ".vimrc" file under your home directory. 
If the file doesn't exist, then create one and them in. 
syntax off
set nohlsearch
set t_Co=0
 
You can also do it when you're in vi session.
e.g., You're editing a file called "abc".
    $ vi abc 
 
 Do ESC, then one of commands to turn color ON or OFF.
     :syntax off   
     :syntax on
     :sy off
     :sy on  

    
2. change folder colors:
Add the following line into your ".bash_profile" file.  
   export LS_COLORS="$LS_COLORS:di=0;32"    #di refers to directory color.

No comments:

Post a Comment