← Technical

TIL: Vim Text Objects

Last updated: Sat Apr 15 2023

Most vim commands take text objects. For instance, we can do diw for delete in word or daw for delete around word, which includes the delimiters as well. I use w pretty heavily to select alphanumeric words, but there’s actually a lot of other useful options:

Two plugins supported by VSCodeVim implementation make this even more powerful:

References