I want to try writing a few simple VIM plugins. What I have in mind to would involve taking the current visual selection, processing that string then replacing the selection with the result. Later I'd like to try extend this to work with text objects and ranges.
Specifically I'd like to know how to:
- Get a string from the current character-wise selection
- Delete the selection
- Insert my new string