Added vim modelines.
Added terminal functions.