Mercurial > vim
comparison runtime/doc/eval.txt @ 5692:80e5f9584b02
Update runtime files. Add Euphoria syntax files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Mon, 24 Feb 2014 02:51:51 +0100 |
parents | 40f18a1c1592 |
children | 657ade71d395 |
comparison
equal
deleted
inserted
replaced
5691:a073747c2a1e | 5692:80e5f9584b02 |
---|---|
7458 Be careful to correctly escape special characters in | 7458 Be careful to correctly escape special characters in |
7459 file names. The |fnameescape()| function can be used | 7459 file names. The |fnameescape()| function can be used |
7460 for Vim commands, |shellescape()| for |:!| commands. | 7460 for Vim commands, |shellescape()| for |:!| commands. |
7461 Examples: > | 7461 Examples: > |
7462 :execute "e " . fnameescape(filename) | 7462 :execute "e " . fnameescape(filename) |
7463 :execute "!ls " . shellescape(expand('%:h'), 1) | 7463 :execute "!ls " . shellescape(filename, 1) |
7464 < | 7464 < |
7465 Note: The executed string may be any command-line, but | 7465 Note: The executed string may be any command-line, but |
7466 you cannot start or end a "while", "for" or "if" | 7466 you cannot start or end a "while", "for" or "if" |
7467 command. Thus this is illegal: > | 7467 command. Thus this is illegal: > |
7468 :execute 'while i > 5' | 7468 :execute 'while i > 5' |