Vim keybinding help


#1

Hello, I’m brand new to Cloud9 and having trouble with getting vim keybindings to work. I’m trying to remap the Esc key. Typing ":imap jk " works in vim but i can’t get the keybinding in init to work.

This is in my init.js:

require(["plugins/c9.ide.ace.keymaps/vim/keymap"], function(vim) {
   vim.map("jk", "<Esc>", "insert")
 });

What am i doing wrong? Thanks.