Wednesday, 11 January 2017

VIM: Deleting from current position until a character

Switch to command mode in vim and then try d + t + space. In general d + t + x deletes from current position till just before x. Just t + x moves the cursor to just before character x in current line.

To delete up to and including the space, use d + f + space  (or d + t + space)


Reference: http://stackoverflow.com/questions/1607904/vim-deleting-from-current-position-until-a-space

No comments:

Post a Comment