vim: Replace with Register (#24326)
Closes #18813 Release Notes: - vim: Add `gr` for [replace with register](https://github.com/vim-scripts/ReplaceWithRegister)
This commit is contained in:
parent
d83c316e6d
commit
8646d37c0c
5 changed files with 120 additions and 1 deletions
|
@ -182,6 +182,9 @@ impl Vim {
|
|||
Some(Operator::ToggleComments) => {
|
||||
self.toggle_comments_motion(motion, times, window, cx)
|
||||
}
|
||||
Some(Operator::ReplaceWithRegister) => {
|
||||
self.replace_with_register_motion(motion, times, window, cx)
|
||||
}
|
||||
Some(operator) => {
|
||||
// Can't do anything for text objects, Ignoring
|
||||
error!("Unexpected normal mode motion operator: {:?}", operator)
|
||||
|
@ -228,6 +231,9 @@ impl Vim {
|
|||
Some(Operator::ToggleComments) => {
|
||||
self.toggle_comments_object(object, around, window, cx)
|
||||
}
|
||||
Some(Operator::ReplaceWithRegister) => {
|
||||
self.replace_with_register_object(object, around, window, cx)
|
||||
}
|
||||
_ => {
|
||||
// Can't do anything for namespace operators. Ignoring
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue