Currently, I set the following keymap to my .vimrc
:
nnoremap <C-z> :NERDTreeToggle ~/Dropbox/jupyter/<CR>
However, I sometimes want to trigger it with different directory, for example:
:NERDTreeToggle CURRENT_DIR
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?
=
expression register with control r