In a Jekyll file I have
<IMG SRC="/assets/images/
I would like to use the filename autocompletion shortcut to insert the rest of the filename, but this fails because of the leading slash.
When I remove the leading slash, the completion works perfectly but I then I have to put it back in for the code to work.
How can I tell vim to ignore the slash?
Related question is this one but the solutions do not appear relevant.
{% link file %}
, which works with relative paths!)<C-x><C-f>
logic to implement your own, or usingcompletefunc
. See How to create my own autocomplete function? The help page says "Note: the 'path' option is not used here (yet)", so the "real solution" would probably be to implement that in Vim.