I use both CtrlP
and NERDTree
in my Vim. When I open a file using the CtrlP
search feature, it sometimes opens in the NERDTree window (and always if the NERD window is the active one).
How can I stop CtrlP
from opening files in NERDTree, and force it to open them in the main window? I've tried going through the CtrlP
docs in Vim, but couldn't figure out a way.
These are all the NERDTree and CtrlP related configs in my .vimrc
:
let g:netrw_liststyle = 3
let NERDTreeShowHidden = 1
let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files -co --exclude-standard']
command E Ex
map <C-t> :NERDTreeTabsToggle<CR>
nmap <Leader>r :NERDTreeFocus<cr>R<c-w><c-p>:CtrlPClearCache<cr>