how to open an empty buffer when vim on directory?

927 views Asked by At

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?

1

There are 1 answers

1
romainl On BEST ANSWER

You should do it the other way around:

$ cd somedir && vim