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

60
.Xdefaults Executable file → Normal file
View file

@ -1,10 +1,64 @@
Urxvt*font: xft:Terminus:pixelsize=14 !-------------------------------------------------------------------------------
! Xft settings
!-------------------------------------------------------------------------------
!! Solarized color scheme Xft.dpi: 96
Xft.antialias: false
Xft.rgba: rgb
Xft.hinting: true
Xft.hintstyle: hintslight
!-------------------------------------------------------------------------------
! URxvt settings
! Colours lifted from Solarized (http://ethanschoonover.com/solarized)
! More info at:
! http://pod.tst.eu/http://cvs.schmorp.de/rxvt-unicode/doc/rxvt.1.pod
!-------------------------------------------------------------------------------
URxvt.depth: 32
URxvt.geometry: 90x30
URxvt.transparent: false
URxvt.fading: 0
! URxvt.urgentOnBell: true
! URxvt.visualBell: true
URxvt.loginShell: true
URxvt.saveLines: 50
URxvt.internalBorder: 3
URxvt.lineSpace: 0
! Fonts
URxvt.allow_bold: false
/* URxvt.font: -*-terminus-medium-r-normal-*-12-120-72-72-c-60-iso8859-1 */
!URxvt*font: xft:Monospace:pixelsize=14
!URxvt*boldFont: xft:Monospace:pixelsize=14
URxvt*font: xft:Inconsolata:pixelsize=16
URxvt*boldFont: xft:Inconsolata:pixelsize=16
! Fix font space
URxvt*letterSpace: -1
! Scrollbar
URxvt.scrollStyle: rxvt
URxvt.scrollBar: false
! Perl extensions
URxvt.perl-ext-common: default,matcher
URxvt.matcher.button: 1
URxvt.urlLauncher: firefox
! Cursor
URxvt.cursorBlink: true
URxvt.cursorColor: #657b83
URxvt.cursorUnderline: false
! Pointer
URxvt.pointerBlank: true
!!Source http://github.com/altercation/solarized
*background: #002b36 *background: #002b36
*foreground: #657b83 *foreground: #657b83
*fading: 40 !!*fading: 40
*fadeColor: #002b36 *fadeColor: #002b36
*cursorColor: #93a1a1 *cursorColor: #93a1a1
*pointerColorBackground: #586e75 *pointerColorBackground: #586e75

8
.vimrc
View file

@ -3,6 +3,7 @@ filetype on
set background=dark set background=dark
set showcmd set showcmd
set hlsearch set hlsearch
let g:solarized_termcolors=256
colorscheme solarized ".vim/colors/solarized.vim colorscheme solarized ".vim/colors/solarized.vim
" Jump to last position in file when reopening " 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 au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
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 set t_Co=256