new .Xdefaults and added F12 map to vimrc

This commit is contained in:
Oliver Ladner 2013-03-24 14:08:55 +01:00
commit 364dc3603d
2 changed files with 97 additions and 35 deletions

8
.vimrc
View file

@ -3,6 +3,7 @@ filetype on
set background=dark
set showcmd
set hlsearch
let g:solarized_termcolors=256
colorscheme solarized ".vim/colors/solarized.vim
" Jump to last position in file when reopening
@ -10,5 +11,12 @@ if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif
" Switch between light/dark backgrounds
" F12 toggles between light and dark backgrounds
map <silent> <F12> :if &background == "light"<CR>
\set background=dark<CR>
\else<CR>
\set background=light<CR>
\endif<CR>
set t_Co=256