I wanted a simple abbreviation to work as a quick page divider like
2 other requirements: 1) I want to be able to perform serial abbreviations (more than one in a row) and 2) to be able to type text following the divider, then be able to add another divider. So a final divider may look like this:
I tried the following line:
iabbr <silent> >>> ===============<c-r>=Eatchar('\m\s\<bar>/')<cr>
...but it can't perform the above requirements due to subtleties involving the class of preceding characters (see :h full-id, etc). I ended up with the following then:
inoremap >>> ===============<c-r>=Eatchar('\m\s\<bar>/')<cr>
It works, but my feeling was a remap might be overkill when all I really want is a plain string substitution. Is there a better way to do this?