Let's say I have my directory/file tree as follows:
/
|_home
|_myPC
|_script.sh
|_test.sh
|_etc
|_log.txt
I'm working on script.sh
and Vim has nothing like firejail
to stop it from accessing stuff.
So far, I'm able to, with ctrlp, auto-complete with stuff already in script.sh
. However, when I type cat ~/t
and use <C-p>
(with ctrlp), I want it to auto-complete to cat ~/test.sh
or offer that. However, ctrlp alone only seems to access stuff already in script.sh
.
How can I make Vim auto-complete with the system file tree? Is there a plugin for that?