aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Christian Pohle2017-05-10 07:59:38 +0200
committerMax Christian Pohle2017-05-10 07:59:38 +0200
commit9dfe745294a87a1666325bb4959c164422cc84b5 (patch)
treeba09cbaf337e69d40f6e9e52f070160862300c4c
parentdc7d0ba5467d9b1e43c4c56e3c499db7806d7cdb (diff)
downloadvim-karlmarks-9dfe745294a87a1666325bb4959c164422cc84b5.tar.bz2
vim-karlmarks-9dfe745294a87a1666325bb4959c164422cc84b5.zip
Improved nvim terminal integration
-rw-r--r--vimrc-full8
1 files changed, 5 insertions, 3 deletions
diff --git a/vimrc-full b/vimrc-full
index 5b7327a..6946b1b 100644
--- a/vimrc-full
+++ b/vimrc-full
@@ -306,8 +306,8 @@ set redrawtime=400 | " The time in milliseconds for redrawing the dis
306set scrolljump=5 | " how many lines get scrolled into view when cursor reaches the screens edge 306set scrolljump=5 | " how many lines get scrolled into view when cursor reaches the screens edge
307set splitbelow | " open new windows below the current one (i find that more intuitive) 307set splitbelow | " open new windows below the current one (i find that more intuitive)
308set shiftround | " indent/unindent snaps to multiple of shiftwidth 308set shiftround | " indent/unindent snaps to multiple of shiftwidth
309" set showcmd | " essential: show keys of combined commands in the lower right corner (BUT SLOW, makes cursor flickering) 309set showcmd | " essential: show keys of combined commands in the lower right corner (BUT SLOW, makes cursor flickering)
310set noshowcmd | " essential: show keys of combined commands in the lower right corner (BUT SLOW, makes cursor flickering) 310" ret noshowcmd | " essential: show keys of combined commands in the lower right corner (BUT SLOW, makes cursor flickering)
311set winwidth=30 | " keep NERDTreeWindow at least this size 311set winwidth=30 | " keep NERDTreeWindow at least this size
312set winminwidth=30 | " (and all other windows, so TODO: watch out) 312set winminwidth=30 | " (and all other windows, so TODO: watch out)
313set tags+=../tags 313set tags+=../tags
@@ -461,7 +461,9 @@ if has("autocmd")
461 augroup END 461 augroup END
462 462
463 if has('nvim') 463 if has('nvim')
464 autocmd BufEnter term://* set nobuflisted 464 autocmd TermOpen term://* set nobuflisted
465 " use default ESC key to leave insert mode in the internal terminal emulator
466 tnoremap <Esc> <C-\><C-n>
465 else 467 else
466 augroup vimonly 468 augroup vimonly
467 autocmd VimLeave * call system("echo -n $'" . escape(getreg(), "'") . "' | xsel -ib") 469 autocmd VimLeave * call system("echo -n $'" . escape(getreg(), "'") . "' | xsel -ib")
..