update codemirror to 4.x and prepared for vim mode