comparison runtime/doc/eval.txt @ 634:1c586ee8dd45 v7.0183

updated for version 7.0183
author vimboss
date Fri, 20 Jan 2006 23:10:18 +0000
parents 732c7ae5743e
children e4fa26ce8769
comparison
equal deleted inserted replaced
633:7437be625546 634:1c586ee8dd45
1 *eval.txt* For Vim version 7.0aa. Last change: 2006 Jan 13 1 *eval.txt* For Vim version 7.0aa. Last change: 2006 Jan 20
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
26 7. Commands |expression-commands| 26 7. Commands |expression-commands|
27 8. Exception handling |exception-handling| 27 8. Exception handling |exception-handling|
28 9. Examples |eval-examples| 28 9. Examples |eval-examples|
29 10. No +eval feature |no-eval-feature| 29 10. No +eval feature |no-eval-feature|
30 11. The sandbox |eval-sandbox| 30 11. The sandbox |eval-sandbox|
31 12. Textlock |textlock|
31 32
32 {Vi does not have any of these commands} 33 {Vi does not have any of these commands}
33 34
34 ============================================================================== 35 ==============================================================================
35 1. Variables *variables* 36 1. Variables *variables*
6828 *:san* *:sandbox* 6829 *:san* *:sandbox*
6829 :san[dbox] {cmd} Execute {cmd} in the sandbox. Useful to evaluate an 6830 :san[dbox] {cmd} Execute {cmd} in the sandbox. Useful to evaluate an
6830 option that may have been set from a modeline, e.g. 6831 option that may have been set from a modeline, e.g.
6831 'foldexpr'. 6832 'foldexpr'.
6832 6833
6834 *sandbox-option*
6835 A few options contain an expression. When this expression is evaluated it may
6836 have to be done in the sandbox to avoid trouble. But the sandbox is
6837 restrictive, thus this only happens when the option was set from an insecure
6838 location. Insecure in this context are:
6839 - sourcing a .vimrc or .exrc in the current directlry
6840 - while executing in the sandbox
6841 - value coming from a modeline
6842
6843 Note that when in the sandbox and saving an option value and restoring it, the
6844 option will still be marked as it was set in the sandbox.
6845
6846 ==============================================================================
6847 12. Textlock *textlock*
6848
6849 In a few situations it is not allowed to change the text in the buffer, jump
6850 to another window and some other things that might confuse or break what Vim
6851 is currently doing. This mostly applies to things that happen when Vim is
6852 actually doing something else. For example, evaluating the 'balloonexpr' may
6853 happen any moment the mouse cursor is resting at some position.
6854
6855 This is not allowed when the textlock is active:
6856 - changing the buffer text
6857 - jumping to another buffer or window
6858 - editing another file
6859 - closing a window or quitting Vim
6860 - etc.
6861
6833 6862
6834 vim:tw=78:ts=8:ft=help:norl: 6863 vim:tw=78:ts=8:ft=help:norl: