summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-04-14 11:37:47 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2012-04-14 11:37:47 +0200
commitf60841c39c7dbc4d00e93ad4a210a5259ab39793 (patch)
treeb2e1efb8a82e76f7c0634556ed770661663b746e
parentaf82a4774376c7a2d31294d5a4053dd409c37af5 (diff)
downloadvim-f60841c39c7dbc4d00e93ad4a210a5259ab39793.zip
vim-f60841c39c7dbc4d00e93ad4a210a5259ab39793.tar.gz
vimrc set colorscheme depending of :0.0 beeing empty or not
-rw-r--r--vimrc10
1 files 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 <F12> :let &background = ( &background == "dark" ? "light" : "dark" )<CR>
-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 \\ <Plug>Commentary
map <C-c> \\\