if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif`
This is if else
statement which can be written as follows:
if line("'\"") > 1 && line("'\"") <= line("$")
exe "normal! g'\""
endif`
The meaning of au BufReadPost
can be found here: http://vimdoc.sourceforge.net/htmldoc/autocmd.html#BufReadPost
g'\"
means go to the mark "
, but don't change the jumplist when jumping within the current buffer as pointed out here: https://vimhelp.appspot.com/motion.txt.html#mark-motions
Here the mark "
indicates: jump to position where last exited current buffer
If you ran g'"
in normal mode in VIM it would work fine, but you are running a normal mode command in Ex
mode, which is why you need to use the \
to escape the "
.
:help
, not google.:help g
,:help g'
,:help '"