Add function check in .vimrc to avoid error in older version