Skip to content

Ctrl-W binding vim-like behavior in Insert mode #72

@tardypad

Description

@tardypad

Following my PR #71, Ctrl-W behavior in Insert mode is one more thing I was trying to have behaving more vim-like with a respect of the is_keyword configuration notably.

I currently have that Ctrl-W binding bound to /input delete_previous_word and have defined word_chars_input to be similar to my is_keyword value.

But the behavior is still slightly different than from vim:

  • in vim "aaa---bbb" -> Ctrl-W -> "aaa---" -> Ctrl-W -> "aaa" -> Ctrl-W -> ""
  • in weechat "aaa---bbb" -> Ctrl-W -> "aaa---" -> Ctrl-W -> ""

I didn't see any way in the current plugin to influence bindings in Insert mode.
Did I miss something?
If not, do you know if that's doable somehow?

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