annotate src/testdir/test_goto.vim @ 8925:f0d7dfb136bc

commit https://github.com/vim/vim/commit/f9660b59b2bdaa3ec2e7b31ab52186ad8b99f047 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 16 22:19:15 2016 +0200 Add missing test file.
author Christian Brabandt <cb@256bit.org>
date Sat, 16 Apr 2016 22:30:05 +0200
parents
children 1b4946fa3777
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
8925
f0d7dfb136bc commit https://github.com/vim/vim/commit/f9660b59b2bdaa3ec2e7b31ab52186ad8b99f047
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
1 " Test commands that jump somewhere.
f0d7dfb136bc commit https://github.com/vim/vim/commit/f9660b59b2bdaa3ec2e7b31ab52186ad8b99f047
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
2
f0d7dfb136bc commit https://github.com/vim/vim/commit/f9660b59b2bdaa3ec2e7b31ab52186ad8b99f047
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
3 func Test_geedee()
f0d7dfb136bc commit https://github.com/vim/vim/commit/f9660b59b2bdaa3ec2e7b31ab52186ad8b99f047
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
4 new
f0d7dfb136bc commit https://github.com/vim/vim/commit/f9660b59b2bdaa3ec2e7b31ab52186ad8b99f047
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
5 call setline(1, ["Filename x;", "", "int Filename", "int func() {", "Filename y;"])
f0d7dfb136bc commit https://github.com/vim/vim/commit/f9660b59b2bdaa3ec2e7b31ab52186ad8b99f047
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
6 /y;/
f0d7dfb136bc commit https://github.com/vim/vim/commit/f9660b59b2bdaa3ec2e7b31ab52186ad8b99f047
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
7 normal gD
f0d7dfb136bc commit https://github.com/vim/vim/commit/f9660b59b2bdaa3ec2e7b31ab52186ad8b99f047
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
8 call assert_equal(1, line('.'))
f0d7dfb136bc commit https://github.com/vim/vim/commit/f9660b59b2bdaa3ec2e7b31ab52186ad8b99f047
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
9 quit!
f0d7dfb136bc commit https://github.com/vim/vim/commit/f9660b59b2bdaa3ec2e7b31ab52186ad8b99f047
Christian Brabandt <cb@256bit.org>
parents:
diff changeset
10 endfunc