Skip to content

Commit 154f7aa

Browse files
committed
Added a frequently asked question to README
1 parent 3a8310a commit 154f7aa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.markdown

+4
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ __Q. How can I open a NERDTree automatically when vim starts up if no files were
8282

8383
A. Stick this in your vimrc `autocmd vimenter * if !argc() | NERDTree | endif`
8484

85+
__Q. How can I map a specific key or shortcut to open NERDTree?__
86+
87+
A. Stick this in your vimrc to open NERDTree with `Ctrl+n` (you can set whatever key you want): `map <C-n> :NERDTreeToggle<CR>`
88+
8589
__Q. How can I close vim if the only window left open is a NERDTree?__
8690

8791
A. Stick this in your vimrc:

0 commit comments

Comments
 (0)