Replace getcurpos with getpos to support older Vim