Made conque and gitgrep play nice with each other by killing each other's windows to prevent sizing problems
This commit is contained in:
parent
b672159d4c
commit
e44e50e023
@ -1 +1 @@
|
|||||||
Subproject commit ff1e84bf89cfd214303d9815f8688bc892cc648d
|
Subproject commit b1fdf8c456469468e6bf64e829faf50b102a7274
|
@ -1,19 +1,20 @@
|
|||||||
"git grep the current word using K (mnemonic Kurrent)
|
"git grep the current word using K (mnemonic Kurrent)
|
||||||
nnoremap <silent> K :GitGrep <cword><CR>
|
nnoremap <silent> K :call CloseSingleConque()<CR>:GitGrep <cword><CR>
|
||||||
|
|
||||||
function! GetVisual()
|
function! GetVisual()
|
||||||
let reg_save = getreg('"')
|
let reg_save = getreg('"')
|
||||||
let regtype_save = getregtype('"')
|
let regtype_save = getregtype('"')
|
||||||
let cb_save = &clipboard
|
let cb_save = &clipboard
|
||||||
set clipboard&
|
set clipboard&
|
||||||
normal! ""gvy
|
normal! ""gvy
|
||||||
let selection = getreg('"')
|
let selection = getreg('"')
|
||||||
call setreg('"', reg_save, regtype_save)
|
call setreg('"', reg_save, regtype_save)
|
||||||
let &clipboard = cb_save
|
let &clipboard = cb_save
|
||||||
return selection
|
return selection
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
"git grep visual selection
|
"git grep visual selection
|
||||||
vnoremap K :<C-U>execute GitGrep(GetVisual())<CR>
|
vnoremap K :call CloseSingleConque()<CR>:<C-U>execute GitGrep(GetVisual())<CR>
|
||||||
|
|
||||||
"git grep current word up to the next exclamation point using ,K
|
"git grep current word up to the next exclamation point using ,K
|
||||||
nnoremap ,K viwf!:<C-U>execute GitGrep(GetVisual())<CR>
|
nnoremap ,K viwf!:<C-U>execute GitGrep(GetVisual())<CR>
|
||||||
|
Loading…
Reference in New Issue
Block a user