blob: c8f02fdf7eccd67e424db05cc3b1804ed4a5881a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
augroup TERMINAL
" Vim 8 has a terminal command...
if has('terminal')
" use default ESC key to leave insert mode in the internal terminal emulator
tnoremap <Esc> <C-W>N
" make terminal windows hidden by default (copied from :help terminal)
autocmd BufWinEnter * if &buftype == 'terminal' | setlocal bufhidden=hide | endif
endif
" NEOVIM_incompatible:
if has('nvim') " Neovim?
autocmd TermOpen term://* set nobuflisted
" use default ESC key to leave insert mode in the internal terminal emulator
tnoremap <Esc> <C-\><C-n>
menu &UI.&Open\ in\ Serversession
\ :execute ':!nvr --servername /tmp/nvimsocket --remote % +'.line('.')<CR>:stopinsert<CR>:set readonly<CR>
endif
augroup END
|