moll / vim-node

Tools and environment to make Vim superb for developing with Node.js. Like Rails.vim for Node.
http://www.vim.org/scripts/script.php?script_id=4674
Other
807 stars 59 forks source link

Can you make 'gf' work on whole `require` declarations instead of only its parameter? #12

Open adriangrigore opened 9 years ago

adriangrigore commented 9 years ago

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.

bahamas10 commented 9 years ago

:+1:

scien commented 8 years ago

+1

nicksergeant commented 7 years ago

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