Suppose i've got two different positions in a buffer returned by getpos() function:p1 = getpos(v)p2 = getpos(.)Is there a simple or elegant way to find out which one is before the other in the buffer?  Doingif p1[1] < p2[1] || (p1[1] == p2[1] && p1[2] < p2[2])  ...each time looks ugly.Alternatively, can i get the absolute positions -- the number of characters from the start of the file?
How to compare two positions in a buffer?
vimscript