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.
An example:
cobbler reposync --only=puppetlabs-6Server-x86_64
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.
To delete one character, position the cursor over the character to be deleted and type x . The x command also deletes the space the character occupied—when a letter is removed from the middle of a word, the remaining letters will close up, leaving no gap. You can also delete blank spaces in a line with the x command.
d^ will delete from current backward to first non-white-space character. d0 will delete from current backward to beginning of line. dw deletes current to end of current word (including trailing space) db deletes current to beginning of current word.
You can use T
and F
for that. For example cT=
or dF=
etc.
d-T-$char
deletes from the cursor position backwards without deleting $char
,
d-F-$char
with deleting $char
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With