diff --git a/examples/vim.rs b/examples/vim.rs index 3977f80..d14f62d 100644 --- a/examples/vim.rs +++ b/examples/vim.rs @@ -112,6 +112,13 @@ impl Vim { key: Key::Char('w'), .. } => textarea.move_cursor(CursorMove::WordForward), + Input { + key: Key::Char('e'), + ctrl: false, + .. + } if matches!(self.mode, Mode::Operator(_)) => { + textarea.move_cursor(CursorMove::WordForward) // `e` behaves like `w` in operator-pending mode + } Input { key: Key::Char('e'), ctrl: false,