Created
September 8, 2012 16:36
-
-
Save zhaocai/3676890 to your computer and use it in GitHub Desktop.
vim` quick eval current selected lines with vimshell interactive shell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
command! -range Ieval :<line1>,<line2>call EvalScriptRegion() | |
vnoremap <silent> <CR> :Ieval<CR> | |
function! EvalScriptRegion() range | |
if has_key(g:vimshell_interactive_interpreter_commands, &ft) | |
exec a:firstline.','a:lastline.'VimShellSendString' | |
else | |
exec a:firstline.','a:lastline.'QuickRun' | |
endif | |
endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://github.com/thinca/vim-quickrun
https://github.com/Shougo/vimshell.vim.git