From 2f1534da215128fcf908bc1b0c6c099c285ea5a1 Mon Sep 17 00:00:00 2001 From: fergalmoran Date: Tue, 30 Apr 2013 11:17:15 +0100 Subject: [PATCH] Added 256 color support for putty --- .vimrc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.vimrc b/.vimrc index 48c4cfc..a563d7f 100644 --- a/.vimrc +++ b/.vimrc @@ -23,6 +23,7 @@ Bundle 'Lokaltog/vim-easymotion' Bundle 'rstacruz/sparkup', {'rtp': 'vim/'} Bundle 'tpope/vim-rails.git' Bundle 'https://github.com/fholgado/minibufexpl.vim' +Bundle 'https://github.com/juvenn/mustache.vim' " vim-scripts repos Bundle 'L9' Bundle 'FuzzyFinder' @@ -42,5 +43,21 @@ filetype plugin indent on " required! " NOTE: comments after Bundle command are not allowed.. " *** End Vundle *** +" Setup 256 colors +if &term =~ "xterm" + "256 color -- + let &t_Co=256 + " restore screen after quitting + set t_ti=ESC7ESC[rESC[?47h t_te=ESC[?47lESC8 + if has("terminfo") + let &t_Sf="\ESC[3%p1%dm" + let &t_Sb="\ESC[4%p1%dm" + else + let &t_Sf="\ESC[3%dm" + let &t_Sb="\ESC[4%dm" + endif +endif + + colorscheme badwolf filetype on