:h
Of a path, keep the directory: dirname without a subshell.
Modifiers are suffixes hung on any designator. :h cuts the last component of a path and keeps the rest — what dirname does, without opening a subshell.
The pairing with cd is unbeatable: you just touched a file deep in the tree, and cd !$:h takes you to its folder.
$ vim ~/coleta/2026/agosto/ficha.md
$ cd !$:h
cd ~/coleta/2026/agosto