I don't have access to a true vi
, only elvis
, nvi
, and vim
. In vim
:set lisp
will treat - as part of a word, rather than as a separator for both tags and motion. elvis
does not (documentation claims it's unimplemented and does nothing), and nvi
responds that :set lisp
is unimplemented.
Update: a lightly updated vi
, http://ex-vi.sourceforge.net/ does indeed handle "-" as part of words for tag purposes (but not motion) when :set lisp
is active.