mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 13:50:05 +08:00
parent
81e09ceae9
commit
6bfa04a62a
@ -58,6 +58,7 @@ function! SpaceVim#layers#shell#config() abort
|
|||||||
exe 'tnoremap <expr><silent><C-d> SpaceVim#layers#shell#terminal()'
|
exe 'tnoremap <expr><silent><C-d> SpaceVim#layers#shell#terminal()'
|
||||||
exe 'tnoremap <expr><silent><C-u> SpaceVim#layers#shell#ctrl_u()'
|
exe 'tnoremap <expr><silent><C-u> SpaceVim#layers#shell#ctrl_u()'
|
||||||
exe 'tnoremap <expr><silent><C-w> SpaceVim#layers#shell#ctrl_w()'
|
exe 'tnoremap <expr><silent><C-w> SpaceVim#layers#shell#ctrl_w()'
|
||||||
|
exe 'tnoremap <expr><silent><C-r> SpaceVim#layers#shell#ctrl_r()'
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
" in window gvim, use <C-d> to close terminal buffer
|
" in window gvim, use <C-d> to close terminal buffer
|
||||||
@ -78,6 +79,13 @@ func! SpaceVim#layers#shell#ctrl_u() abort
|
|||||||
return repeat("\<BS>", len(line) - len(prompt) + 2)
|
return repeat("\<BS>", len(line) - len(prompt) + 2)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
func! SpaceVim#layers#shell#ctrl_r() abort
|
||||||
|
let reg = getchar()
|
||||||
|
if reg == 43
|
||||||
|
return @+
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
func! SpaceVim#layers#shell#ctrl_w() abort
|
func! SpaceVim#layers#shell#ctrl_w() abort
|
||||||
let cursorpos = term_getcursor(s:term_buf_nr)
|
let cursorpos = term_getcursor(s:term_buf_nr)
|
||||||
let line = getline(cursorpos[0])[:cursorpos[1]-1]
|
let line = getline(cursorpos[0])[:cursorpos[1]-1]
|
||||||
|
@ -13,5 +13,5 @@ coverage:
|
|||||||
target: 35% # we always want 35% coverage here
|
target: 35% # we always want 35% coverage here
|
||||||
paths: "autoload/SpaceVim/api/" # only include coverage in "autoload/SpaceVim/api/" folder
|
paths: "autoload/SpaceVim/api/" # only include coverage in "autoload/SpaceVim/api/" folder
|
||||||
all: # declare a new status context "all"
|
all: # declare a new status context "all"
|
||||||
target: 35% # we always want 35% coverage here
|
target: 25% # we always want 35% coverage here
|
||||||
paths: "!tests/" # remove all files in "tests/"
|
paths: "!tests/" # remove all files in "tests/"
|
||||||
|
Loading…
Reference in New Issue
Block a user