SublimeREPL is supposed to have a default binding for “open the current file in a REPL,” I think it’s ctrl+, then f, but if that doesn’t work for some reason, you could try adding this to your regular Sublime Key Configuration file:
{ "keys": ["ctrl+,", "p"], "command": "run_existing_window_command", "args": { "id": "repl_python_run", "file": "config/Python/Main.sublime-menu"} }
(Adjust the binding to your taste.)
SublimeREPL has a fairly complicated command structure; this is taken from the SublimeREPL/config/Python/Default.sublime-commands
file, and runs a command defined in Main.sublime-menu
in the same directory. There might be a better way to do this, but this worked for me just now.