I have a variable that I would set to the current result I get from :pwd
.
I tried the following, which obviously doesn't work:
:let b:projectroot = expand("pwd")
But this is essentially what I want to do. I want to switch to a directory using :cd
and set that as the value for the variable b:projectroot
.