john-jones
john-jones

Reputation: 7780

Vim travel to pathfile determined in vimrc

How do I open a file specified in vimrc, with a key combination?

Upvotes: 0

Views: 64

Answers (1)

DrAl
DrAl

Reputation: 72626

I'm not exactly clear what you mean, but if you just want a key combination to open a file specified in vimrc, you could do something like this:

:nmap ,e :e /path/to/my/file.txt<CR>

Pressing ,e will then open your requested file.

Upvotes: 2

Related Questions