简体   繁体   English

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>

I probably not understand that key mapping means: 我可能不了解键映射的含义:

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

<D-…> is the Command key on Mac OS X. That key can only be seen by the MacVim GUI. <D-…>是Mac OS X上的Command键。该键只能由MacVim GUI看到。

  • That mapping does nothing outside of the MacVim GUI, 该映射在MacVim GUI之外没有任何作用,
  • copying settings from someone else's vimrc is not a very good idea. 从别人的vimrc复制设置不是一个好主意。

See :help key-notation . 参见:help key-notation

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM