move some functions to vim_user_data.lua