Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't remap keys #8

Open
johnnymo87 opened this issue Jun 1, 2014 · 0 comments
Open

Can't remap keys #8

johnnymo87 opened this issue Jun 1, 2014 · 0 comments

Comments

@johnnymo87
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant