You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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:autocmd User Node nnoremap <buffer> ,nf <Plug>NodeGotoFile
to my vimrc:source $MYVIMRC
:map ,nf
... goto , YRMapsExpression("<SNR>192_", ",")
(which I think is irrelevant, I had it before)var net = require('net');
,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?The text was updated successfully, but these errors were encountered: