Let VIM open file at last editing position

Simply put the following lines to your ~/.vimrc and all files will be opend at the last editing position.

Saves a lot of searching time. 😉

if has("autocmd")
  au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif