Vim function test