I've defined mappings in my
vimrc to automatically enter close parentheses and braces when I enter opening ones with
inoremap ( ()<esc>i.
I'd like to do the same for
', but only when the cursor currently isn't inside a string - as inside a string
' is probably an apostrophe rather than a string delimiter. How can I do this?