I would like to redefine the :h
and :help
commands, so that they split the screen vertically by default. The following solutions are undesirable for two reasons.
cnoremap h vert help
cabbrev h vert help
I only want the substitution to occur for
:*
commands. Unfortunately, the substitution also occurs when I type/h
. I scanned through the documentation on maps, but I could not find a command that will only remap:*
commands and not/*
commands.I only want the substitution to occur when the command starts with
:h
. If I type:ah
, the command is expanded to:avert help
. This behavior may be desirable when I pipe commands together, but I don't want it here.
Thanks for your help!