Is there a Vim plugin that can handle smart semicolon insertion, like the one in Eclipse?
Example (pipe character is insertion cursor):
foobar(|)
inoremap ; getline('.')[-1:] == ';' ? '\' : ';'
The code above will check if there is ; at the end of the line.
;
If ; not exists, then it will add ; otherwise do nothing.