Kaushik Balamukundhan
Kaushik Balamukundhan

Reputation: 555

Vim nerdtree not able to open files

I am trying to setup NerdTree on Unix. When I open gvim editor it displays the file explorer bar on the side. However, I am not able to click and open files nor use the vim keys. Not sure what's going on here.

I have the following lines in my vimrc for NerdTree setup:

autocmd VimEnter * NERDTree
autocmd VimEnter * wincmd p
nmap <silent> <c-n> :NERDTreeToggle<CR>
let g:NERDTreeWinSize = 30

Any ideas? THanks.

Upvotes: 3

Views: 1009

Answers (1)

jinleileiking
jinleileiking

Reputation: 247

In my system, nerdtree is easy to use.

just delete

autocmd VimEnter * NERDTree
autocmd VimEnter * wincmd p
nmap <silent> <c-n> :NERDTreeToggle<CR>
let g:NERDTreeWinSize = 30

and try in cmdline :NERDTreeToggle

and then map the cmd.

Upvotes: 1

Related Questions