annotate src/testdir/test74.in @ 4541:80170d61a85c v7.3.1018

updated for version 7.3.1018 Problem: New regexp engine wastes memory. Solution: Allocate prog with actual number of states, not estimated maximum number of sates.
author Bram Moolenaar <bram@vim.org>
date Sat, 25 May 2013 21:18:34 +0200
parents 2f57d93bdbf6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2607
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 " Tests for storing global variables in the .viminfo file vim: set ft=vim:
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 STARTTEST
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 :so small.vim
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 :" Do all test in a separate window to avoid E211 when we recursively
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 :" delete the Xfind directory during cleanup
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 :"
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 :" This will cause a few errors, do it silently.
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 :set visualbell
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 :set nocp viminfo+=!,nviminfo
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 :let MY_GLOBAL_DICT={'foo': 1, 'bar': 0, 'longvarible': 1000}
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 :" store a really long list, so line wrapping will occur in viminfo file
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 :let MY_GLOBAL_LIST=range(1,100)
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 :wv! Xviminfo
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15 :unlet MY_GLOBAL_DICT
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16 :unlet MY_GLOBAL_LIST
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17 :rv! Xviminfo
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18 :call delete('Xviminfo')
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19 :if exists("MY_GLOBAL_DICT")
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20 :redir >> test.out
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 :echo MY_GLOBAL_DICT
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22 :redir end
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23 :endif
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24 :if exists("MY_GLOBAL_LIST")
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
25 :redir >> test.out
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
26 :echo MY_GLOBAL_LIST
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
27 :redir end
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
28 :endif
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
29 :redir >> test.out
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
30 :echo "foobar"
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
31 :redir end
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
32 :endif
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
33 :qa!
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
34 ENDTEST
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
35
2f57d93bdbf6 updated for version 7.3.030
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
36 eof