Currently, I set the following keymap to my
nnoremap <C-z> :NERDTreeToggle ~/Dropbox/jupyter/<CR>
However, I sometimes want to trigger it with different directory, for example:
However, I tried the following command with the following answer, but it did not work.
:NERDTreeToggle getcwd() :NERDTreeToggle pwd
How can I get the current directory to insert into the command-line mode?