Added omnicompletion and fixed undo dir.