19 lines
714 B
VimL
19 lines
714 B
VimL
set encoding=utf-8
|
|
set directory=~/.vim/swp " *.swp files will end up here
|
|
|
|
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
" When editing a file, always jump to the last known cursor position.
|
|
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
autocmd BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal g`\"" | endif
|
|
|
|
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
" Delete trailing whitespaces on saving a file
|
|
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
autocmd BufWritePre * :%s/\s\+$//e
|
|
|
|
syntax on
|
|
set t_Co=256
|
|
let g:solarized_termcolors=256
|
|
colorscheme solarized
|