Advertisement
Guest User

Untitled

a guest
Apr 25th, 2015
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. alias py="/opt/python3.4/bin/python3"
  2.  
  3. map <F9> :call SpecialCompileRun()<CR>
  4. func! SpecialCompileRun()
  5. exec "w"
  6. if &filetype == 'python'
  7. exec '!time py %'
  8. endif
  9. endfunc
  10.  
  11. ...
  12. exec '!time ' . $PY . ' %'
  13. ...
  14.  
  15. sudo ln -s /opt/python3.4/bin/python3 /usr/bin/py
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement