.vimrc 714 B

123456789101112131415161718
  1. set encoding=utf-8
  2. set directory=~/.vim/swp " *.swp files will end up here
  3. """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  4. " When editing a file, always jump to the last known cursor position.
  5. """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  6. autocmd BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal g`\"" | endif
  7. """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  8. " Delete trailing whitespaces on saving a file
  9. """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  10. autocmd BufWritePre * :%s/\s\+$//e
  11. syntax on
  12. set t_Co=256
  13. let g:solarized_termcolors=256
  14. colorscheme solarized