|
|
|
@ -397,8 +397,25 @@ let g:terminal_ansi_colors = [
|
|
|
|
|
\ '#ffffff'
|
|
|
|
|
\ ]
|
|
|
|
|
|
|
|
|
|
autocmd TerminalOpen * set nonu
|
|
|
|
|
|
|
|
|
|
highlight Terminal guibg='#0c0c0c'
|
|
|
|
|
highlight Terminal guifg='#cccccc'
|
|
|
|
|
|
|
|
|
|
function! ExitNormalMode()
|
|
|
|
|
unmap <buffer> <silent> <RightMouse>
|
|
|
|
|
call feedkeys("a")
|
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
|
|
function! EnterNormalMode()
|
|
|
|
|
if &buftype == 'terminal' && mode('') == 't'
|
|
|
|
|
call feedkeys("\<c-w>N")
|
|
|
|
|
call feedkeys("\<c-y>")
|
|
|
|
|
map <buffer> <silent> <RightMouse> :call ExitNormalMode()<CR>
|
|
|
|
|
endif
|
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
|
|
tmap <silent> <ScrollWheelUp> <c-w>:call EnterNormalMode()<CR>
|
|
|
|
|
" ---------------------------------------------------------------------------}}}
|
|
|
|
|
|
|
|
|
|
" Operator-Pending Mode -----------------------------------------------------{{{
|
|
|
|
|