Open randomizedthinking opened 8 years ago
The VimPipe() command that
vnoremap <silent> <LocalLeader>r : call VimPipe()<CR>
I have certain SQL files with common commands that I want to run individually, not all at once, without having to comment out the rest. For those, I also override the range for the usual VimPipe() command:
nnoremap <silent> <LocalLeader>r :. call VimPipe()<CR>
(uses "." as the range, i.e. the current line, rather than "%" which is the whole buffer.)
@krisajenkins would you be interested in PRs for the following?
g:vimpipe_selection = 1
exec "nnoremap <silent> " . g:vimpipe_invoke_map . " :" . g:vimpipe_invoke_range . "call VimPipe()<CR>"
, with g:vimpipe_invoke_range
having a default value of %
Then a user has to either open a new file or comment out other lines when working on different piece of codes. It becomes so inconvenient especially when working with a large file. I wonder it possible to add a keymap which will submit selected lines? Thanks!