Refactoring methods in XVimSourceView.
Mainly move methods to a category for NSTextStorage
Fix issue #413