TIL: Vim Text Objects

Last updated: 2/5/2025

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

Reply by email!