I want just to open and close NERDTree, pushing the F2 button. I’ve mapped it in this way :
map <silent> <F2> NERDTreeToggle
But, Actually this doesn’t work properly and I haven’t understood why…
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here is my config for NERDTree.
F3will open NERDTree panel and highlight current file.And when you’re in the NERDTree panel,
F3will open file under cursor.So, I can use one button to jump between buffer and NERDTree.
(And
F4for preview because it’s next toF3)