In a question about jVi and its capability to parse .vimrc, the author gives an example of a complex vim binding that he asserts jVi would not be able to handle:
inoremap hh <c-o>?\%<c-r>=line('.')<Return>l\({}\\|\[]\\|<>\\|><\\|()\\|""\\|''\\|><lt>\)?s+1<Return>
I wonder what (mostly how) it does. So far I get:
- <c-o> : execute one command in normal mode and return to insert mode
- ?/%n : look backwards for a character with the specified dec / hex code
- what is the point of inserting the line number here?
- the last part looks for a specific combination of brackets and places the cursor there
- I don't understand how
lcan be used like that
- I don't understand how
Care to clarify?