annotate src/testdir/test56.in @ 1055:ef6b11bee7d0 v7.0.181

updated for version 7.0-181
author vimboss
date Tue, 09 Jan 2007 14:37:01 +0000
parents ea15087a42cd
children b63792dadc23
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
271
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
1 Test for script-local function. vim: set ft=vim :
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
2
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
3 STARTTEST
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
4 :so small.vim
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
5 :"
959
ea15087a42cd updated for version 7.0-085
vimboss
parents: 271
diff changeset
6 :set nocp viminfo+=nviminfo
271
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
7 :/^start:/+1,/^end:/-1w! Xtest.vim
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
8 :source Xtest.vim
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
9 _x
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
10 :$-1,$wq! test.out
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
11 ENDTEST
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
12
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
13 start:
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
14 fun <SID>DoLast()
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
15 call append(line('$'), "last line")
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
16 endfun
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
17 fun s:DoNothing()
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
18 call append(line('$'), "nothing line")
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
19 endfun
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
20 nnoremap <buffer> _x :call <SID>DoNothing()<bar>call <SID>DoLast()<cr>
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
21 end: