See PAWS.
Configuration:
export EDITOR=vim
Usage:
pwb.py editarticle
Warning: Do not paste from external sources. It will crash the terminal editor.