dotfiles/.vimrc

22 lines
564 B
VimL
Raw Normal View History

2012-03-02 10:31:58 +01:00
syntax on
filetype on
set background=dark
set showcmd
set hlsearch
let g:solarized_termcolors=256
2012-03-02 10:31:58 +01:00
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>
2012-03-02 10:31:58 +01:00
set t_Co=256