Skip to content

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

Open

Description

@adriangrigore

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.

Activity

  1. bahamas10 commented on Mar 13, 2015

    @bahamas10

    👍

  2. scien commented on Mar 20, 2016

    @scien

    +1

  3. nicksergeant commented on Jun 7, 2017

    @nicksergeant

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions