add exit terminal insert mode mapping

This commit is contained in:
Ray Elliott 2020-07-16 09:43:11 +01:00
parent f9929579bb
commit 487c190bac
1 changed files with 2 additions and 1 deletions

View File

@ -321,8 +321,9 @@ nnoremap <silent> <space>rc :so $MYVIMRC<CR>
nnoremap <silent><expr> <space>nh (&hls && v:hlsearch ? ':nohls' : ':set hls')."\n" nnoremap <silent><expr> <space>nh (&hls && v:hlsearch ? ':nohls' : ':set hls')."\n"
" Focus on current fold, close the rest " Focus on current fold, close the rest
nnoremap <silent> <space>zz zMzvzt nnoremap <silent> <space>zz zMzvzt
" exit from terminal insert mode with escape
tnoremap <Esc> <C-\><C-n>
" open quickfix window of TODOs " open quickfix window of TODOs
" FIXME i want fixme!!!
nnoremap <space>td :grep -RE '(TODO\\|FIXME)' .<CR>:botright cwindow<CR>:echo len(getqflist()) 'TODOs'<CR> nnoremap <space>td :grep -RE '(TODO\\|FIXME)' .<CR>:botright cwindow<CR>:echo len(getqflist()) 'TODOs'<CR>
" sync highlighting from start " sync highlighting from start
nnoremap <silent><space>ss :syntax sync fromstart<CR> nnoremap <silent><space>ss :syntax sync fromstart<CR>