2 set viminfo=%,'100,\"100,:100,n~/.vim/viminfo
4 " Vim jumps to the last position when reading a file
5 au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal g'\"" | endif
10 " Make a backup (i. e. 'file~') and save it.
12 " create ~/tmp/vimbak if it doesn't exist and use it to save the backups
14 if !isdirectory(expand("~/tmp/vimbak/."))
15 !mkdir -p ~/tmp/vimbak
17 set backupdir=~/tmp/vimbak
20 " Create backups by copying files to backup directory instead of renaming