Cannot figure out how to use the output of :pwd as argument to :helptags. Something like:

:helptags . exec ':pwd'

Tried many combinations of |, :exec, :call and ! .


Backticks can be used many places, so:

:helptags `pwd`

will do what you want, although so will:

:helptags .

Other uses would be things like:

:e `date +\%Y-\%m-\%d`

which edits a file whose name is the current date in the format YYYY-MM-DD (the backslashes are because % is a special character there).

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.