set global variables by vim.vars instead of vim.command
implement history by python