Skip to content

Short script with functions to insert python expressions into a Vim buffer

License

Notifications You must be signed in to change notification settings

rongil/Vim-PySolve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

PySolve.vim - Python expression solver with insertion!

Credit to https://vim.wikia.com/wiki/Scientific_calculator for the idea.

Usage:

Note: There are no default mappings.

Normal Mode:

:PySolve <args> - Insert solved python expresion, args, into buffer; don't store.
:PySolveSave <args> - Save solved python expresion, args, into a register.
:PySolveView <args> - Print solved python expression, args, as a message; dont't store.

Insert Mode:

PySolve → <YOUR_KEY> <C-\><C-O>:call PySolve(0)<CR>
PySolveSave → <YOUR_KEY> <C-\><C-O>:call PySolve(1)<CR>
PySolveView → <YOUR_KEY> <C-\><C-O>:call PySolveView<CR>

About

Short script with functions to insert python expressions into a Vim buffer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published