I'm new to Vim, and for the paste couple of weeks, I've been using NERDTree with no problems. However, I recently added a few key mappings and am now unable to open NERDTree with the <C-n>
command. Nothing happens when I run the command.
Here's the part of my .vimrc
that I found to be causing the problem.
" Map semicolon to colon and vice versa
nnoremap ; :
nnoremap : ;
" Map shortcuts to align = for Tabularize
vmap <Leader>a= :Tabularize /=<CR>
" The following line doesn't work as well.
nmap <Leader>a= :Tabularize /=<CR>
Once I remove the nnoremap : ;
command, NERDTree begins working again. Why is this happening, and how can I fix it?
Additionally, the shortcut to call Tabularize works in the visual mode but not in insert mode. I don't know if this and the NERDTree problems are related.
Background information: I'm running Vim 7.4.52 on bash on Windows (Windows Subsystem for Linux).