Reputation: 130
I want set a trigger function for input symbol, but not an ':abbreviate'.
For example, a user wrote:
function a(b)
^----- at this moment I want insert ' (' instead of '('
Upvotes: 0
Views: 101
Reputation: 1332
If you want to add space before (
every time you type (, you can remap it.
Add to your .vimrc
the following line:
inoremap ( (<Left> <Esc>A
Upvotes: 1