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
" copy these lines to your ~/.vimrc | |
" Scientifc Calculator using python3 --> :Calc sin(30) | |
" :Calc sum([x^2 for x in range(100)]) | |
command! -nargs=+ Calc :py print(<args>) | |
py from math import * | |
" you can also create a bash or zsh alias like: | |
" alias calc='python3 -ic "from math import *; import cmath"' | |
" the alias tip came from: | |
" https://www.reddit.com/r/linux/comments/3ly2zl/lpt_use_python_interpreter_as_an_advanced/ |
Maybe it will be improvements, I hope so.