0
let Dropbox = "/usr/Dropbox"
...

  autocmd BufNewFile  *.php 0r Dropbox/vim/templates/php_start.txt

The variable 'Dropbox' is not substituded by its value

2
  • 1
    You need to evaluate the variable first, using :exe. I am sure there are already several answers here that explain this Apr 1, 2022 at 13:00
  • Please try to format future questions as actual questions, rather than a statement of something that occurred. It is otherwise difficult to figure out what is being asked.
    – D. Ben Knoble
    Apr 3, 2022 at 13:54

0

Browse other questions tagged or ask your own question.