summaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'vimrc')
-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> \\\