I set the F2 hint with map <f2> :w<cr>:! D:\Python34\python %<cr>, when I open the python file in vim and press F2, the python file will be executed. For a simple example, here is my python file and is open in gvim.


python, , , .
:
F2 ( python gvim), python , python python, , , Obj().hello python gvim, , gvim python, , , vim ?
:!D:\Python34\python -i % ,
- ,
1) :!D:\Python34\python -i % , gvim , , vim.
2) python python. Wiondow
, , , , gvim , ?
