I keep a vimrc file stored on Dropbox and use symlinks to point to this so my vimrc is always synced up. Recently I got a new laptop and the location of some utilities are different from that of my old machines -- in particular, my Python installation is in a different spot. Is there a way to do "let &pythonthreedll=PATH" where PATH is the location of Python on my local system (regardless of which machine I'm on)?
1 Answer
I set environment variables on my machine for the Python .dll and the Python directory. Then, I can reference these variables using the $path convention. Not sure if this is the best way to do this however!
-
1I'm not sue I understand your answer. Maybe sharing some code would help understanding what you did exactly. Jul 26, 2022 at 6:41
'pythonthreedll'
is a Vim option used to specify the location of the Python 3 DLL if it's not on your search path (Windows) or if it doesn't match the environment variables used when compiling Vim (Unix)pythonthreedll
is… also note that you can use things likeexepath()
/executable()
to find executables (not the same as a DLL, obviously, but can help with portability when needed).