From f60841c39c7dbc4d00e93ad4a210a5259ab39793 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Sat, 14 Apr 2012 11:37:47 +0200 Subject: vimrc set colorscheme depending of :0.0 beeing empty or not --- vimrc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/vimrc b/vimrc index 5e021ac..70c1a3e 100644 --- a/vimrc +++ b/vimrc @@ -1,11 +1,14 @@ " vimrc call pathogen#infect() - " color scheme map :let &background = ( &background == "dark" ? "light" : "dark" ) -set t_Co=256 -colorscheme desert256 +if !empty($DISPLAY) + set t_Co=256 + colorscheme desert256 +else + colorscheme adobe +endif " Switch syntax highlighting on, when the terminal has colors " Also switch on highlighting the last used search pattern. @@ -48,6 +51,7 @@ set incsearch " do incremental searching set number " show line number set showmode " show current mode + " remap vim-comentary : nmap \\ Commentary map \\\ -- cgit v1.1-2-g2b99