The first line returns the cursor to the line i was on, the second sources the resource file. both work on there own but will not work together. The marks set by Return cursor seem to still be set, can anyone explain what the correlation is between the two?
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$")
\ | exe "normal! g`\"" | endif
augroup myvimrc
au!
au BufWritePost .vimrc,_vimrc,vimrc,.gvimrc,_gvimrc,gvimrc so $MYVIMRC
\ | if has('gui_running') && filereadable($MYGVIMRC)
\ | so $MYGVIMRC | endif
augroup END