vim-node
vim-node copied to clipboard
Can you make 'gf' work on whole `require` declarations instead of only its parameter?
For instance, I would like to be able to do 'gf' on a whole require
statement (including var if possible), instead of jumping first to its parameter.
:+1:
+1
You can just remap to a command that will go to the start of the line, then finds the first quotation character, then executes the jump:
nnoremap gl ^f'gf