Oscar Godson
Oscar Godson

Reputation: 32776

Open file into empty buffer in vim

I remampped ctrl+v to open a new tab via :tabnew, but it opens an empty buffer and for the life of me I can't find the answer on Google. I just want to open a file in the current buffer like file /my/file.js. file doesn't work tho. What is the command I am looking for?

Upvotes: 1

Views: 914

Answers (1)

hobbs
hobbs

Reputation: 240649

The direct answer to your question is :edit aka :e, but you can also give :tabnew a file argument.

Upvotes: 5

Related Questions