Skip to content

<Leader> bind error in plugins #121

@Tiny-Box

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions