Wiki

Changes between Version 7 and Version 8 of VimSupport

Show
Ignore:
Timestamp:
07/02/12 22:34:58 (12 years ago)
Author:
nerdzero
Comment:

Added blurb about enabling 256 color support.

Legend:

Unmodified
Added
Removed
Modified
  • VimSupport

    v7 v8  
    2525Open or create a file with a '''.cobra''' extension and you will have highlighting and indentation for Cobra 
    2626 
    27 If you use a dark background, you can try the cobra color scheme. 
     27If you use a dark background, you can try the cobra color scheme.  Execute the following command while in Vim. 
    2828{{{ 
    2929:colorscheme cobra 
     
    4242}}} 
    4343 
     44If the color schemes don't seem to be working then your terminal may not support all necessary colors.  Check the value of your TERM variable by executing 
     45{{{ 
     46echo $TERM 
     47}}} 
     48at the command prompt.  If it reports ''xterm'' then you can try the following to enable color support. 
     49{{{ 
     50export TERM=xterm-256color 
     51}}} 
     52 
     53If the colors show up correctly now you can add that line to your ''.bashrc'' file.  This was tested on Ubuntu 12.04 LTS and 10.04 LTS. 
     54 
    4455== All Users == 
    4556For all users use your system admin privileges to copy the ''indent/cobra.vim'', ''ftdetect/cobra.vim'', ''syntax/cobra.vim'', into Vim's ''indent'', ''ftdetect'', and ''syntax'' directories, respectively. These directories are found in the Vim home path. An example of such a Vim path is ''/usr/share/vim/vim72''.