.vimrc 580 B

1234567891011
  1. set encoding=utf-8
  2. """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  3. " When editing a file, always jump to the last known cursor position.
  4. """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  5. autocmd BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal g`\"" | endif
  6. """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  7. " Delete trailing whitespaces on saving a file
  8. """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
  9. autocmd BufWritePre * :%s/\s\+$//e