Comment by kamranjon
17 days ago
I read the release but didn't quite understand the difference between a next-edit model and a FIM model - does anyone have a clear explanation of when to use one over the other? I'd love if there was a sublime plugin to utilize this model and try it out, might see if I can figure that out.
I was curious as well and wanted to try how this work, so I asked claude to create a plugin for that. This utilizes built-in autocomplete behavior. If you want to give it a try then feel free to have a look here https://github.com/lumnn/AItoComplete (did not push it to packagecontrol yet)
I’m going to speculate a bit here, FIM may stand for something-in-the-middle?
I know there are the original autocomplete models that simply complete the endings. Then there are Cursor like models capable of editing/filling text between blocks of code. In essence, they look at both the text before the insertion point and after it - then find the best fitting completion in the middle. My guess is FIM is the latter.
As you said. Fill-in-the-middle.
We have an explanation here: https://blog.sweep.dev/posts/next-edit-jetbrains#next-edit-a...
But basically suggesting changes away from your cursor position