A 256 color scheme.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sun, 25 Sep 2011 17:38:17 +0300
changeset 211 c6d56d6fbcc2
parent 210 d71ad1876c46
child 212 6608c5b29815
A 256 color scheme.
.vimrc
--- a/.vimrc	Sun Sep 25 17:13:42 2011 +0300
+++ b/.vimrc	Sun Sep 25 17:38:17 2011 +0300
@@ -4,9 +4,15 @@
 " This must be first, because it changes other options as side effect.
 set nocompatible
 
-syntax on
+" Switch syntax highlighting on, when the terminal has colors
+if &t_Co > 2 || has("gui_running")
+  syntax on
+endif
 
-" colorscheme delek
+" A 256 color scheme.
+if &t_Co >= 256 || has("gui_running")
+  colorscheme inkpot
+endif
 
 set sessionoptions=curdir,buffers,tabpages
 
@@ -16,6 +22,7 @@
 " Set command string height.
 set ch=1
 
+" Hide buffers instead of closing them.
 set hidden
 
 set mouse=a
@@ -107,6 +114,13 @@
 " Disable these characters as word dividers.
 set iskeyword+=_
 
+" Allow backspacing over autoindent, line breaks (join lines), start of insert
+set backspace=indent,eol,start
+
+" Affects the output of :TOhtml.
+:let html_use_css = 1
+:let use_xhtml = 1
+
 " Fix <Enter> for comment
 " set fo+=cr