← Technical

TIL: Vim Text Objects

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