I started using Vim recently, just installed NERDTree (a plugin to navigate files).
The command to access that plugin is :NERDTree
so I though it's a good idea to start learning mappings by assigning one to that command.
So I added to my .vimrc
file the following line: map :nt :NERDTree
- but when I type :nt
in a vim file (even after restarting) I receive the following error message: not an editor command: nt
I also tried to add the mapping directly while editing a file by typing :map :nt :NERDTree
but it returned the same error when I tried to use the command.
I checked that answer:What is the difference between the remap, noremap, nnoremap and vnoremap mapping commands in vim?, so it seems to me that :map
(opposed to noremap
etc.) is the good command for that.
The plugin works fine when typing the original command.
What am I doing wrong? (sorry for the noob question)