-
Notifications
You must be signed in to change notification settings - Fork 0
Vim RPN calculator
vim-scripts/RPN
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is a mirror of http://www.vim.org/scripts/script.php?script_id=4781 Examples: echo Rpn#Eval( '2 3 +' ) Or echo Rpn#Eval( 2, 3, '+' ) Suggested command: com! -nargs=+ Rpn echo Rpn#Eval( <f-args> ) Then, Rpn 2 3 + echoes the result. Operators: + - * / % ^ Commands: d: duplicate last entry r: reverse last two entries v: square root the last entry Special: ans: Replaces with the answer from the last entry