code_junkie

Advice regarding IPython + MacVim Workflow

Nov 13th, 2011
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. ipython -e "open -a MacVim"
  2.  
  3. In [4]: %run foo #This also "imports" foo anew
  4. hello world
  5.  
  6. In [5]: edit foo
  7. Editing... done. Executing edited code... #This happens immediately
  8. hello world
  9.  
  10. In [6]: %run foo
  11. hello SO World
  12.  
  13. $ screen -S ipython
  14. $ ipython
  15.  
  16. autocmd FileType python map F5 :w<CR>:!screen -x ipython -X stuff $'%run %:p:hn'<CR><CR>
  17.  
  18. autocmd FileType python map <F5> :w<CR>:!screen -x ipython -X stuff $'%resetnyn%cd %:p:hn%run %:tn'<CR><CR>
  19.  
  20. editor 0
  21.  
  22. editor mvim --remote-tab-wait-silent
Add Comment
Please, Sign In to add comment