Friday, February 21, 2020

Error detected on BufWritePost Autocommands for "*.vim" : drive not recognized with expand('%:p')

Hi,

Using gvim 8.2.292 on windows, following error appears while I am saving a vim file.
It seems to mistake good drive. C: out of  D:

expand('%:p') returns bad drive.

Error detected while processing BufWritePost Autocommands for "*.vim":
E484: Can't open file c:\logiciels\Vim\vimfiles\plugged\foo-bar\autoload\foobar.vim


 autocmd! BufWritePost  *.vim    exe 'source '.expand('%:p')





--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/24c42b2b-b01d-4b57-870a-4eb1233f73e0%40googlegroups.com.

No comments: