VI(VIM):从右到左删除/更改? [英] VI (VIM): delete/change right to left?

查看:35
本文介绍了VI(VIM):从右到左删除/更改?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我经常使用c-t-$char"change-till-character 和d-t-$char",并且希望能够反过来做同样的事情.

I often use "c-t-$char" change-till-character and "d-t-$char" and would love to be able to do the same thing in reverse.

示例:

cobbler reposync --only=puppetlabs-6Server-x86_64

如果我的光标在行尾并且我想向后删除到 = 字符.导致这个的原因是我想从 BASH emacs 模式转移到 vi 模式.

If my cursor is at the end of the line and I want to delete backwards to the = char. What brought this on is my wanting to move from BASH emacs mode to vi mode.

推荐答案

你可以使用 TF 来解决这个问题.例如 cT=dF=

You can use T and F for that. For example cT= or dF= etc.

这篇关于VI(VIM):从右到左删除/更改?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆