From ea77ad5a59d977376aeffbeee1a7c5c0207d1171 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Thu, 26 Jan 2017 22:06:21 +0800 Subject: [PATCH] Fix alt + left and alt + right mapping for terminal buffer --- autoload/SpaceVim/default.vim | 2 ++ config/neovim.vim | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/autoload/SpaceVim/default.vim b/autoload/SpaceVim/default.vim index b1674ff6d..471907ffe 100644 --- a/autoload/SpaceVim/default.vim +++ b/autoload/SpaceVim/default.vim @@ -178,6 +178,8 @@ function! SpaceVim#default#SetMappings() abort exe 'tnoremap :wincmd h' exe 'tnoremap :wincmd k' exe 'tnoremap :wincmd j' + exe 'tnoremap :bprev' + exe 'tnoremap :bnext' exe 'tnoremap ' endif diff --git a/config/neovim.vim b/config/neovim.vim index 17b866647..b284ffb3c 100644 --- a/config/neovim.vim +++ b/config/neovim.vim @@ -55,7 +55,7 @@ let g:terminal_color_15 = "#ebdbb2" augroup Terminal au! au TermOpen * let g:last_terminal_job_id = b:terminal_job_id | IndentLinesDisable - au WinEnter term://* startinsert | IndentLinesDisable + au BufWinEnter term://* startinsert | IndentLinesDisable "au TermClose * exec &buftype == 'terminal' ? 'bd!' : '' au TermClose * exe expand('').'bd!' augroup END