I am using vim
to edit config files on newly-built linux servers. On these boxes I have a default vim
setup (RHEL 6.2).
While editing these files, I'd like to avoid fat-fingering directory & file paths whenever possible.
Suppose I have a file foo.conf
opened in the editor, the contents of which I've just entered:
myfoo=
The cursor is currently to the right of the =
in this file. I'd like to use vim to insert the name of a directory here. Suppose it's a directory that exists: /etc/foo
, and that I'm lazy and so would like to use as few keystrokes as possible.
Can get vim to do this?
I cannot add any plugins to vim, nor can I change its configuration.