Mercurial > vim
annotate src/testdir/test_marks.in @ 7999:92ad477c6ab3 v7.4.1294
commit https://github.com/vim/vim/commit/7280140c08799f683ef31a6c1019e283c3dc13aa
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Feb 9 11:37:50 2016 +0100
patch 7.4.1294
Problem: job_stop() only kills the started process.
Solution: Send the signal to the process group. (Olaf Dabrunz)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 09 Feb 2016 11:45:05 +0100 |
parents | 4250ecde6009 |
children |
rev | line source |
---|---|
6622
3c312e259c79
Add missing test files from 7.4.634 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
1 Tests for marks. |
3c312e259c79
Add missing test files from 7.4.634 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
2 |
3c312e259c79
Add missing test files from 7.4.634 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
3 STARTTEST |
3c312e259c79
Add missing test files from 7.4.634 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
4 :so small.vim |
3c312e259c79
Add missing test files from 7.4.634 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
5 :" test that a deleted mark is restored after delete-undo-redo-undo |
3c312e259c79
Add missing test files from 7.4.634 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
6 :/^\t/+1 |
3c312e259c79
Add missing test files from 7.4.634 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
7 :set nocp viminfo+=nviminfo |
3c312e259c79
Add missing test files from 7.4.634 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
8 madduu |
3c312e259c79
Add missing test files from 7.4.634 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
9 :let a = string(getpos("'a")) |
3c312e259c79
Add missing test files from 7.4.634 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
10 :$put ='Mark after delete-undo-redo-undo: '.a |
7570
4250ecde6009
commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Christian Brabandt <cb@256bit.org>
parents:
6622
diff
changeset
|
11 :'' |
6622
3c312e259c79
Add missing test files from 7.4.634 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
12 ENDTEST |
3c312e259c79
Add missing test files from 7.4.634 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
13 |
3c312e259c79
Add missing test files from 7.4.634 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
14 textline A |
3c312e259c79
Add missing test files from 7.4.634 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
15 textline B |
3c312e259c79
Add missing test files from 7.4.634 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
16 textline C |
3c312e259c79
Add missing test files from 7.4.634 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
17 |
7570
4250ecde6009
commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Christian Brabandt <cb@256bit.org>
parents:
6622
diff
changeset
|
18 STARTTEST |
4250ecde6009
commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Christian Brabandt <cb@256bit.org>
parents:
6622
diff
changeset
|
19 :" test that CTRL-A and CTRL-X updates last changed mark '[, ']. |
4250ecde6009
commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Christian Brabandt <cb@256bit.org>
parents:
6622
diff
changeset
|
20 :/^123/ |
4250ecde6009
commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Christian Brabandt <cb@256bit.org>
parents:
6622
diff
changeset
|
21 :execute "normal! \<C-A>`[v`]rAjwvjw\<C-X>`[v`]rX" |
4250ecde6009
commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Christian Brabandt <cb@256bit.org>
parents:
6622
diff
changeset
|
22 ENDTEST |
4250ecde6009
commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Christian Brabandt <cb@256bit.org>
parents:
6622
diff
changeset
|
23 |
4250ecde6009
commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Christian Brabandt <cb@256bit.org>
parents:
6622
diff
changeset
|
24 CTRL-A CTRL-X: |
4250ecde6009
commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Christian Brabandt <cb@256bit.org>
parents:
6622
diff
changeset
|
25 123 123 123 |
4250ecde6009
commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Christian Brabandt <cb@256bit.org>
parents:
6622
diff
changeset
|
26 123 123 123 |
4250ecde6009
commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Christian Brabandt <cb@256bit.org>
parents:
6622
diff
changeset
|
27 123 123 123 |
4250ecde6009
commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Christian Brabandt <cb@256bit.org>
parents:
6622
diff
changeset
|
28 |
4250ecde6009
commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Christian Brabandt <cb@256bit.org>
parents:
6622
diff
changeset
|
29 STARTTEST |
4250ecde6009
commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Christian Brabandt <cb@256bit.org>
parents:
6622
diff
changeset
|
30 :g/^STARTTEST/.,/^ENDTEST/d |
4250ecde6009
commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Christian Brabandt <cb@256bit.org>
parents:
6622
diff
changeset
|
31 :wq! test.out |
4250ecde6009
commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Christian Brabandt <cb@256bit.org>
parents:
6622
diff
changeset
|
32 ENDTEST |
4250ecde6009
commit https://github.com/vim/vim/commit/a52dfaed104183c1fa2a3b6e4430b23d86bcbece
Christian Brabandt <cb@256bit.org>
parents:
6622
diff
changeset
|
33 |
6622
3c312e259c79
Add missing test files from 7.4.634 to the repository.
Bram Moolenaar <bram@vim.org>
parents:
diff
changeset
|
34 Results: |