" ==== 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
。