Is there a Vim plugin that can handle smart semicolon insertion, like the one in Eclipse?
Example (pipe character is insertion cursor):
foobar(|)
I want to do the same thing, I works on it whole night, tons of code, but at last, I got a simple solution.
inoremap ; ;
and if I am in a brace, I want to add a semicolon or a dot at the end, like this
foo({ | })
I press ;; or .. to do this
;;
..
inoremap ; ; inoremap . . inoremap ;; ; inoremap .. .