Reputation: 7780
How do I open a file specified in vimrc, with a key combination?
Upvotes: 0
Views: 64
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