Skip to content

<Leader> bind error in plugins #121

Description

@Tiny-Box

According to the document, if I want to modify the value of <leader>, it‘s recommended to modify .vimrc.local, but it doesn't work about ex-gsearch.

Because the loading order of the .vimrc files, .vimrc.plugins will be first loaded.
On line 48~52

Plugin 'exvim/ex-gsearch'

call exgsearch#register_hotkey( 100, 0, '<leader>gs', ":EXGSearchToggle<CR>", 'Toggle global search window.' )
call exgsearch#register_hotkey( 101, 0, '<leader>gg', ":EXGSearchCWord<CR>", 'Search current word.' )
call exgsearch#register_hotkey( 102, 0, '<leader><S-f>', ":GS ", 'Shortcut for :GS' )

is default '' at this time. Even if I set the value of <leader> in .vimrc.local, '<leader>gs' is still \gs.

There is a dirty fix way: set the value of <leader> on top of .vimrc.plugins file, but it destroyed the previous design about load order. It's better way to modify register_hotkey function.

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions