snippet for if err != nil
moved .viminfo to .vim/.dirs and made cursor start at last position when opening file
improved err snippet