Timeline for Get the dir of $MYVIMRC and concatenate a different file path
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 19, 2023 at 22:54 | comment | added | rrauenza |
I had to do fnamemodify(expand("$MYVIMRC"), ":p:h") to get this to work ... or fnamemodify($MYVIMRC, ":p:h")
|
|
Mar 23, 2020 at 10:05 | vote | accept | run_the_race | ||
Mar 22, 2020 at 7:13 | history | edited | Maxim Kim | CC BY-SA 4.0 |
added 98 characters in body
|
Mar 22, 2020 at 7:12 | comment | added | Maxim Kim |
@run_the_race indeed. fnamemodify would fix this
|
|
Mar 21, 2020 at 23:29 | comment | added | run_the_race | expand("$MYVIMRC:p:h") result in a path ending with the literal ":p:h", so ":exe "source " . expand("$MYVIMRC:p:h") . "/vimrc/env.vim"" does not work | |
Mar 21, 2020 at 21:16 | vote | accept | run_the_race | ||
Mar 21, 2020 at 23:29 | |||||
Mar 21, 2020 at 10:51 | history | answered | Maxim Kim | CC BY-SA 4.0 |