Skip to content
Browse files

Use solarized as default colorscheme.

  • Loading branch information...
1 parent 290b364 commit 362a7eff107e3944993456a51fac98ee41465ed4 @nelstrom committed Apr 4, 2011
Showing with 16 additions and 5 deletions.
  1. +5 −4 gvimrc
  2. +11 −1 vimrc
View
9 gvimrc
@@ -1,11 +1,12 @@
set go-=T
set bg=dark
-if &background == "dark"
- hi normal guibg=black
-endif
+"if &background == "dark"
+ "hi normal guibg=black
+"endif
set guifont=Monaco:h14
-colorscheme mac_classic
+colorscheme solarized
+
if exists('*HexHighlight()')
" http://www.vim.org/scripts/script.php?script_id=2937
nmap <leader>h :call HexHighlight()<Return>
View
12 vimrc
@@ -129,6 +129,7 @@ if has("autocmd")
autocmd BufNewFile,BufRead *.rss setfiletype xml
autocmd BufNewFile,BufRead Rakefile,Capfile,Gemfile,Termfile,config.ru setfiletype ruby
autocmd FileType ruby :Abolish -buffer initialise initialize
+ autocmd FileType vo_base :colorscheme solarized
endif
" Toggles & Switches (Leader commands) {{{1
@@ -216,7 +217,7 @@ if has("autocmd")
endif
" Custom commands and functions {{{1
-" Create a :Quickfixdo command, to match :argdo/bufdo/windo
+" Create a :Quickfixdo command, to match :argdo/bufdo/windo {{{2
" Define a command to make it easier to use
command! -nargs=* Qargs execute 'args ' . QuickfixFilenames()
function! QuickfixFilenames()
@@ -393,6 +394,15 @@ omap ia <Plug>(textobj-entire-i)
let g:space_disable_select_mode=1
let g:space_no_search = 1
+" Solarized {{{2
+set background=light
+colorscheme solarized
+if has("autocmd")
+ " For some reason, opening a vimoutliner file switches to another
+ " colorscheme. This prevents that from happening.
+ autocmd FileType vo_base :colorscheme solarized
+endif
+
" Modelines: {{{1
" vim: nowrap fdm=marker
" }}}

0 comments on commit 362a7ef

Please sign in to comment.
Something went wrong with that request. Please try again.