Commits

chao committed 4866d7e

Update how NerdTree and Undotree are activated

Now they are <C-_> and <C-\> respectively

  • Participants
  • Parent commits f744738

Comments (0)

Files changed (1)

 Plug 'maxbrunsfeld/vim-yankstack'
 Plug 'justinmk/vim-ipmotion'
 Plug 'reedes/vim-colors-pencil'
-Plug 'sjl/splice.vim'
+" Plug 'sjl/splice.vim'
 
 " Plug 'stefandtw/quickfix-reflector.vim'
 
 " Close NERDTree upon opening a file
 let NERDTreeQuitOnOpen = 1
 
-" Fast NERDTree toggle by tapping '-'
-nmap <silent> - :call ToggleNERDTree()<cr>
+" Fast NERDTree toggle by tapping 'Ctrl and dash(minus)'
+nmap <silent> <C-_> :call ToggleNERDTree()<cr>
 function! ToggleNERDTree()
     if !exists("t:NERDTreeBufName") || bufwinnr(t:NERDTreeBufName) == -1
         " If NERDTree is not present, open it and point it to where the current file is
     endif
 endfunction
 
-" Toggle UndoTree by tapping '_'
-nmap <silent> _ :call ToggleUndoTree()<cr>
+" Toggle UndoTree by tapping 'Ctrl-\'
+nmap <silent> <C-\> :call ToggleUndoTree()<cr>
 function! ToggleUndoTree()
     if UndotreeIsVisible()
         " Hide the Undotree when it's already visible