16

I like Vim's Directory Completion when I'm normal mode, for example I do something like :cd ~/Desktop it actually autocompletes the name When I hit tab.

So here's my question is there something like let's see, I want somefile.png that's stored in my images directory, and I'm operating from my css file, So I type ../img/som and it automagically completes it for me, is there something like that on ViM

1

1 Answer 1

29

Ctrl+X Ctrl+F while editing will do the job

Sign up to request clarification or add additional context in comments.

1 Comment

This is really super cool, but does not work when there is no space before the path, e.g. in a shell variable assignation PATH=$HOME/foo

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.