I often complete file paths in Vim using Ctrl-x
Ctrl-f in insert mode, but there is one annoyance: the tilde character does not expand. This is fine for things like bash, but for Python (which does not understand
~/Data/data.xml) it is suboptimal.
~/Dat completes to
~/Data/ whereas I would prefer the full path
/home/user/Data/. (As a side note: Vim already expands shell variables correctly, so that
$HOME/Dat completes to
Is there a way to get file path completion to expand the tilde? If not natively, is there a plugin that does so?