" Tests for maparg(), mapcheck() and mapset(). " Also test utf8 map with a 0x80 byte. " Also test mapcheck() func s:SID() return str2nr(matchstr(expand(''), '\zs\d\+\ze_SID$')) endfunc func Test_maparg() new set cpo-=< set encoding=utf8 " Test maparg() with a string result let sid = s:SID() let lnum = expand('') map foo isfoo vnoremap