Aaron Shen
Aaron Shen

Reputation: 8374

how to open an empty buffer when vim on directory?

I have nerdtree and ctrlp installed in vim.
I use vim in command line on some directory: vim somedir.
I intend to let vim start with an empty file just as if I only type vim. But currently, vim will start with nerdtree opened, the root directory is the same as the directory after vim command.

How can let vim start with an empty buffer and afterwards I want to use ctrlp to search files?

Upvotes: 0

Views: 949

Answers (1)

romainl
romainl

Reputation: 196546

You should do it the other way around:

$ cd somedir && vim

Upvotes: 3

Related Questions