added replacements for MacVim functions