diff --git a/autoload/te/feat.vim b/autoload/te/feat.vim index 7ce60e6..4006aff 100644 --- a/autoload/te/feat.vim +++ b/autoload/te/feat.vim @@ -57,7 +57,7 @@ function! te#feat#gen_feature_vim(reset) abort endif let l:temp2=te#feat#get_vim_version() if v:shell_error != 0 - let g:vinux_version='vinux V1.4.0'.' @'.l:temp2[0].'.'.l:temp2[1] + let g:vinux_version='vinux V1.4.9'.' @'.l:temp2[0].'.'.l:temp2[1] else let l:temp = matchstr(l:vinux_version[-1],'.*\(-\d\+-\w\+\)\@=') if l:temp !=# '' diff --git a/autoload/te/terminal.vim b/autoload/te/terminal.vim index 2b13127..f3bd55c 100644 --- a/autoload/te/terminal.vim +++ b/autoload/te/terminal.vim @@ -127,9 +127,9 @@ function! te#terminal#jump_to_floating_win(num) abort elseif l:no_of_term == 1 && a:num != -5 call te#terminal#open_term(l:term_list[0]) else + let l:last_close_bufnr = s:last_close_bufnr if te#terminal#is_term_buf(bufnr('%')) == v:true let l:current_term_buf = bufnr('%') - let l:last_close_bufnr = s:last_close_bufnr call te#terminal#hide_popup() endif if a:num == -4 @@ -140,6 +140,8 @@ function! te#terminal#jump_to_floating_win(num) abort :Leaderf term elseif g:fuzzysearcher_plugin_name.cur_val == 'ctrlp' :call te#ctrlp#term#start() + else + call te#terminal#open_term(l:last_close_bufnr) endif elseif a:num >= 0 "in terminal or out out terminal @@ -172,10 +174,6 @@ function! te#terminal#jump_to_floating_win(num) abort endif endif elseif a:num == -3 - if l:current_term_buf < 0 - call te#utils#EchoWarning("Only support in terminal") - return - endif call te#terminal#open_term(l:last_close_bufnr) elseif a:num == -5 if l:current_term_buf < 0 diff --git a/rc/mappings.vim b/rc/mappings.vim index fc54e7d..ac79bcf 100644 --- a/rc/mappings.vim +++ b/rc/mappings.vim @@ -317,6 +317,7 @@ nnoremap si zi " close all buffer map ba :bufdo bd nnoremap jf :call te#terminal#jump_to_floating_win(-4) +nnoremap jt :call te#terminal#jump_to_floating_win(-3) nnoremap j0 :call te#terminal#jump_to_floating_win(0) nnoremap j1 :call te#terminal#jump_to_floating_win(1) nnoremap j2 :call te#terminal#jump_to_floating_win(2)