annotate src/testdir/test56.in @ 8663:b2a48aabe21f v7.4.1621

commit https://github.com/vim/vim/commit/a63cdb5ed685181c377ee89f1d1de6a97dfeb151 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 20 18:24:45 2016 +0100 patch 7.4.1621 Problem: Channel test doesn't work with Python 2.6. Solution: Add number in formatting placeholder. (Wiredool)
author Christian Brabandt <cb@256bit.org>
date Sun, 20 Mar 2016 18:30:05 +0100
parents b63792dadc23
children
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
1405
b63792dadc23 updated for version 7.1-120
vimboss
parents: 959
diff changeset
20 nnoremap <buffer> _x :call <SID>DoNothing()<bar>call <SID>DoLast()<bar>delfunc <SID>DoNothing<bar>delfunc <SID>DoLast<cr>
271
8d34af900bae updated for version 7.0072
vimboss
parents:
diff changeset
21 end: