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,5 +1,6 @@
|
||||
"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()
|
||||
let reg_save = getreg('"')
|
||||
let regtype_save = getregtype('"')
|
||||
@ -13,7 +14,7 @@ function! GetVisual()
|
||||
endfunction
|
||||
|
||||
"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
|
||||
nnoremap ,K viwf!:<C-U>execute GitGrep(GetVisual())<CR>
|
||||
|
Loading…
Reference in New Issue
Block a user