Is there a way to configure a shortcut within my .vimrc to automatically open a specific file in a new buffer? I have a file I frequently need to access and I would like to quickly open said file in a new buffer during a coding or writing session. I am not looking for a fuzzy search such as could be achieved with Command-T or PeepOpen, but rather a fast command to open a specific file in a new buffer. Bonus points if there is a way to control the shape of the new buffer window.
Is there a way to configure a shortcut within my .vimrc to automatically open
Share
You can create a mapping like:
Now if you hit \v in normal mode, it opens your
.vimrc.Note: \ is the default leader setting, you can change with
in your
.vimrctoo.If you want in a new buffer, just try: