# HG changeset patch # User Oleksandr Gavenko # Date 1316961497 -10800 # Node ID c6d56d6fbcc2a7a97b45f1b2a16649b29aad9a70 # Parent d71ad1876c46b11d1f1977ee1b24d523e2b24a28 A 256 color scheme. diff -r d71ad1876c46 -r c6d56d6fbcc2 .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 for comment " set fo+=cr