Skip to content

Bug: ]b and [b maps not loaded in Neovim by plugin, yes remap-able manually #42

@juanMarinero

Description

@juanMarinero

This works fine in Vim 9.1 (included patches: 1-818), but not in NVIM v0.11.1. Both with same plugin manager vim-plug.

In Neovim maps like ]e and [e work, but not ]b nor [b. Instead the default ones are keep, see _defaults.lua

    -- Buffers
    vim.keymap.set('n', '[b', function()
      cmd({ cmd = 'bprevious', count = vim.v.count1 })
    end, { desc = ':bprevious' })

    vim.keymap.set('n', ']b', function()
      cmd({ cmd = 'bnext', count = vim.v.count1 })
    end, { desc = ':bnext' })

I did manually remap them and now they work

if has('nvim')
  nmap <silent> [b  <Plug>JumpDiffCharPrevStart
  nmap <silent> ]b  <Plug>JumpDiffCharNextStart
endif

...but I request to fix the override. Actually I ask:

  • fix code for Neovim or help me find why to me is not proper overwritten
  • add a global option to no auto-load plugin mappings

Thanks in advance!

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