vim-node icon indicating copy to clipboard operation
vim-node copied to clipboard

Can't remap keys

Open johnnymo87 opened this issue 11 years ago • 0 comments

I apologize in advance for my ignorance, I'm just a vim newb. This plugin looks really awesome, and I'd like to use it to view the source code of node modules.

I'm using a slightly modified version for yadr for my dotfiles, and the gf keybinding is clashing with something there. So I did the following:

  • I added autocmd User Node nnoremap <buffer> ,nf <Plug>NodeGotoFile to my vimrc
  • Did :source $MYVIMRC
  • Did :map ,nf ... got o , YRMapsExpression("<SNR>192_", ",") (which I think is irrelevant, I had it before)
  • Opened a node file, put my cursor on the 'n' of 'net' inside the require in var net = require('net');
  • Did ,nf ... got E486: Pattern not found: plug

Am I not doing this remapping correctly? Also, does this module not expose vim commands like :NodeGotoFile so I can call it without a keybinding?

johnnymo87 avatar Jun 01 '14 16:06 johnnymo87