Fixed a problem with <Esc> and added function for NERDTree

This commit is contained in:
Dennis Potter 2018-06-02 17:38:00 +02:00
parent b5e957c70e
commit 8d50555d9c
1 changed files with 2 additions and 1 deletions

View File

@ -28,6 +28,7 @@ let g:airline#extensions#whitespace#enabled = 0
" NERDTree
let NERDTreeChDirMode = 2
let NERDTreeQuitOnOpen = 1
" Custom key bindings general
nmap <leader>n :NERDTreeToggle <CR>
@ -36,7 +37,7 @@ map <leader>u :MundoToggle <CR>
nnoremap <leader>l <C-w>l
tnoremap <Esc> <C-\><C-n>
map <Esc> <Esc>:noh <CR>
noremap <Esc> <Esc>:noh <CR>
nnoremap <F4> :call vimterm#toggle() <CR>
tnoremap <F4> <C-\><C-n>:call vimterm#toggle() <CR>