diff options
author | Max Christian Pohle | 2017-05-10 07:59:38 +0200 |
---|---|---|
committer | Max Christian Pohle | 2017-05-10 07:59:38 +0200 |
commit | 9dfe745294a87a1666325bb4959c164422cc84b5 (patch) | |
tree | ba09cbaf337e69d40f6e9e52f070160862300c4c | |
parent | dc7d0ba5467d9b1e43c4c56e3c499db7806d7cdb (diff) | |
download | vim-karlmarks-9dfe745294a87a1666325bb4959c164422cc84b5.tar.bz2 vim-karlmarks-9dfe745294a87a1666325bb4959c164422cc84b5.zip |
Improved nvim terminal integration
-rw-r--r-- | vimrc-full | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -306,8 +306,8 @@ set redrawtime=400 | " The time in milliseconds for redrawing the dis | |||
306 | set scrolljump=5 | " how many lines get scrolled into view when cursor reaches the screens edge | 306 | set scrolljump=5 | " how many lines get scrolled into view when cursor reaches the screens edge |
307 | set splitbelow | " open new windows below the current one (i find that more intuitive) | 307 | set splitbelow | " open new windows below the current one (i find that more intuitive) |
308 | set shiftround | " indent/unindent snaps to multiple of shiftwidth | 308 | set 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) | 309 | set showcmd | " essential: show keys of combined commands in the lower right corner (BUT SLOW, makes cursor flickering) |
310 | set 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) |
311 | set winwidth=30 | " keep NERDTreeWindow at least this size | 311 | set winwidth=30 | " keep NERDTreeWindow at least this size |
312 | set winminwidth=30 | " (and all other windows, so TODO: watch out) | 312 | set winminwidth=30 | " (and all other windows, so TODO: watch out) |
313 | set tags+=../tags | 313 | set 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") |