diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-04-14 11:37:47 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-04-14 11:37:47 +0200 |
commit | f60841c39c7dbc4d00e93ad4a210a5259ab39793 (patch) | |
tree | b2e1efb8a82e76f7c0634556ed770661663b746e /vimrc | |
parent | af82a4774376c7a2d31294d5a4053dd409c37af5 (diff) | |
download | vim-f60841c39c7dbc4d00e93ad4a210a5259ab39793.zip vim-f60841c39c7dbc4d00e93ad4a210a5259ab39793.tar.gz |
vimrc set colorscheme depending of :0.0 beeing empty or not
Diffstat (limited to 'vimrc')
-rw-r--r-- | vimrc | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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> \\\ |