new .Xdefaults and added F12 map to vimrc
This commit is contained in:
parent
3d263edcf6
commit
364dc3603d
2 changed files with 97 additions and 35 deletions
8
.vimrc
8
.vimrc
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue