I have a shared library (in binary form; I have the source) that I use to invert/cycle between symbols in source files in Visual Studio.
I would like to be able to use the same functionality in vi and/or Vim.
Specifically, what I'd like to do is the following scenario:
- the cursor is on a word
- I press a key-sequence, e.g. CTRL-I
- vi/Vim works out the whole of the word I'm on
- vi/Vim invokes my shared library, passing the word, and receiving the invert/cycle replacement
- vi/Wim replaces the original word with the new word
I don't have any clue if/how to get vi/Vim to do this, and I'm not having any luck searching.
Any advice gratefully received ...