" ----------------------------------------------------------- " smartchar inoremap % smartchr#one_of(' % ', '%') inoremap & smartchr#one_of(' & ', ' && ', '&') inoremap , smartchr#one_of(', ', ',') inoremap = smartchr#one_of(' = ', '=', ' == ', ' === ') inoremap ! smartchr#one_of('!', ' != ') inoremap + smartchr#one_of('+', ' + ', '++') inoremap / smartchr#one_of('/', ' / ', '// ', '//') inoremap . smartchr#loop('.', '..', '->', ' => ') inoremap ~ smartchr#loop('~', '=~', ' => ') inoremap > smartchr#loop('>', ' => ')