Skip to content

Pressing <Esc> should not move the cursor if we're already in Normal mode #92

@fghimis

Description

@fghimis

I am trying to reuse the normal keybindings for switching channels.

Normally, when pressing Ctrl+n I will advance one channel and Ctrl+p will go back.
Currently, this works only one I'm in Insert mode. When I switch to Normal mode it stops working.

I have tried the following nmaps:

  • :nmap <C-n> /buffer +1<CR>
  • :nmap <C-N> /buffer +1<CR>
  • :nmap ^N /buffer +1<CR>
  • :nmap C-N /buffer +1<CR>

And none worked.
I'm using the latest script on https://weechat.org/scripts/source/vimode.py.html/ : Version: 0.8.1

More info (I don't know if it helps):

  • on pressing :nmap after setting the keybindings, I would not get the expected <C-n>, but only n or N or ^N.
  • also ^F and ^B don't seem to work with default settings, but ^U and ^D work fine

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