From f2e01d7e513067ddb57c75f6e38cdcf434946cf8 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Mon, 22 Oct 2018 00:02:58 +0200 Subject: Major refactoring for version 2.0 vim-plug has been removed and replaced with Vims internal bundle mechanism. But I already noticed, that there is also GLVM now and started trying that as well. --- plugin/terminal.vim | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 plugin/terminal.vim (limited to 'plugin/terminal.vim') diff --git a/plugin/terminal.vim b/plugin/terminal.vim new file mode 100644 index 0000000..c8f02fd --- /dev/null +++ b/plugin/terminal.vim @@ -0,0 +1,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 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 + + menu &UI.&Open\ in\ Serversession + \ :execute ':!nvr --servername /tmp/nvimsocket --remote % +'.line('.'):stopinsert:set readonly + endif +augroup END -- cgit v1.2.3