[vim keymap] Use global vim state instead of local state