Made conque and gitgrep play nice with each other by killing each other's windows to prevent sizing problems
This commit is contained in:
Submodule vim/bundle/skwp-vim-ruby-conque updated: ff1e84bf89...b1fdf8c456
@@ -1,5 +1,6 @@
|
|||||||
"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('"')
|
||||||
@@ -13,7 +14,7 @@ function! GetVisual()
|
|||||||
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>
|
||||||
|
|||||||
Reference in New Issue
Block a user