Vim Tip: place a file in the current buffer

vim.png

path/to/file outputs a file into the current buffer – While in normal mode, entering :r /path/to/file outputs the specified file into the current buffer. Now, anytime you find yourself typing something repeatedly, save it into a file somewhere and use the :r command to avoid typing it again.

Related Posts

Comments are closed.