add double keymap, and fixed functions for vim.