if by vi you mean vim, this works perfectly (and indeed i use it a lot; it's more reliable than hitting '').
if by vi you mean justplain vi, then why are you not using vim in the first place?!
if by vi you mean justplain vi, then why are you not using vim in the first place?!