" Tests for maparg(). " Also test utf8 map with a 0x80 byte. function s:SID() return str2nr(matchstr(expand(''), '\zs\d\+\ze_SID$')) endfun function 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