Skip to content
Snippets Groups Projects
Commit c2e92578 authored by gwenn's avatar gwenn
Browse files

Make vi repeat char search with commands c, d, y

parent 7fbe3530
No related branches found
No related tags found
No related merge requests found
......@@ -471,6 +471,18 @@ impl EditState {
None => None,
}
}
KeyPress::Char(';') => {
match self.last_char_search {
Some(ref cs) => Some(Movement::ViCharSearch(n, cs.clone())),
None => None,
}
}
KeyPress::Char(',') => {
match self.last_char_search {
Some(ref cs) => Some(Movement::ViCharSearch(n, cs.opposite())),
None => None,
}
}
KeyPress::Char('h') |
KeyPress::Ctrl('H') |
KeyPress::Backspace => Some(Movement::BackwardChar(n)), // vi-delete-prev-char: Vi move to previous character (backspace).
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment