Vim: Add change word and delete word functionality

Add the functionality of key sequences 'cw', 'ce', 'cb', 'dw', 'de' and 'db'.
This commit is contained in:
Zac 2021-01-27 21:57:39 +10:00 committed by Andreas Kling
commit aaf691c4ef
Notes: sideshowbarker 2024-07-18 22:48:02 +09:00
5 changed files with 129 additions and 28 deletions

View file

@ -68,9 +68,13 @@ protected:
void move_page_down(const KeyEvent& event);
void move_to_first_line();
void move_to_last_line();
TextPosition find_beginning_of_next_word();
void move_to_beginning_of_next_word();
TextPosition find_end_of_next_word();
void move_to_end_of_next_word();
TextPosition find_end_of_previous_word();
void move_to_end_of_previous_word();
TextPosition find_beginning_of_previous_word();
void move_to_beginning_of_previous_word();
void move_up(const KeyEvent& event, double page_height_factor);