Combining as @NARKOZ says works for me, thanks very much. But when directly running "vim", it will also keep focus on the empty file (right window); when directly running "vim ", it will open two NERDTree window. How to make it work for "vim" and "vim " ?