It's much easier than this.
Code:
yum --disablerepo=whateverisborked install joe
Vim is a really weird editor, because it has these different modes like Adunaic described and you have to type
:wq to save the file.
The only advantage is that it is available on every unix system ;-)