Skip to content

Instantly share code, notes, and snippets.

@ktopolski
Last active October 24, 2015 22:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save ktopolski/b14aaf2de8ba9e7914ab to your computer and use it in GitHub Desktop.
Save ktopolski/b14aaf2de8ba9e7914ab to your computer and use it in GitHub Desktop.
Povray command for VIM
" compile POVRay script being currently edited, clear output and open the resulting .png ONLY when povray compilation succeeds.
command Povray !povray % && clear && feh %<.png
" delete the generated .png when exiting from .pov file of the same name.
autocmd BufWinLeave *.pov :!rm %<.png
@ktopolski
Copy link
Author

it requires povray and feh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment