vim-node
vim-node copied to clipboard
Can't remap keys
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>NodeGotoFileto my vimrc - Did
:source $MYVIMRC - Did
:map ,nf... goto , 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... gotE486: 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?