vim NERDTree 按键映射

vim NERDTree key mapping

" ==== NERD tree
" Cmd-Shift-N for nerd tree
nmap <D-N> :NERDTreeToggle<CR>
" Open the project tree and expose current file in the nerdtree with Ctrl-\
nnoremap <silent> <C-\> :NERDTreeFind<CR>:vertical res 30<CR>

我可能不明白键映射是什么意思:

`nmap <D-N>` maps `D` - Mac Command key ? 

<D-…> 是 Mac OS X 上的命令键。该键只能被 MacVim GUI 看到。

  • 该映射在 MacVim GUI 之外不执行任何操作,
  • 从别人的 vimrc 复制设置不是一个好主意。

参见:help key-notation