" Tests for maparg(), mapcheck(), mapset(), maplist() " Also test utf8 map with a 0x80 byte. 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