1Test for script-local function.     vim: set ft=vim :
2
3STARTTEST
4:so small.vim
5:"
6:set nocp viminfo+=nviminfo
7:/^start:/+1,/^end:/-1w! Xtest.vim
8:source Xtest.vim
9_x
10:$-1,$wq! test.out
11ENDTEST
12
13start:
14fun <SID>DoLast()
15  call append(line('$'), "last line")
16endfun
17fun s:DoNothing()
18  call append(line('$'), "nothing line")
19endfun
20nnoremap <buffer> _x	:call <SID>DoNothing()<bar>call <SID>DoLast()<bar>delfunc <SID>DoNothing<bar>delfunc <SID>DoLast<cr>
21end:
22