dotfiles/.vimrc

22 lines
564 B
VimL

syntax on
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
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