Mercurial > vim
comparison runtime/doc/map.txt @ 1088:c3ba2dcc4cf4 v7.0.214
updated for version 7.0-214
author | vimboss |
---|---|
date | Thu, 08 Mar 2007 17:12:08 +0000 |
parents | 4bac29d27e2f |
children | 857a5e3e1d34 |
comparison
equal
deleted
inserted
replaced
1087:c94bbf85eb16 | 1088:c3ba2dcc4cf4 |
---|---|
1 *map.txt* For Vim version 7.0. Last change: 2006 May 03 | 1 *map.txt* For Vim version 7.0. Last change: 2007 Mar 08 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
1301 *<q-args>* | 1301 *<q-args>* |
1302 If the first two characters of an escape sequence are "q-" (for example, | 1302 If the first two characters of an escape sequence are "q-" (for example, |
1303 <q-args>) then the value is quoted in such a way as to make it a valid value | 1303 <q-args>) then the value is quoted in such a way as to make it a valid value |
1304 for use in an expression. This uses the argument as one single value. | 1304 for use in an expression. This uses the argument as one single value. |
1305 When there is no argument <q-args> is an empty string. | 1305 When there is no argument <q-args> is an empty string. |
1306 | 1306 *<f-args>* |
1307 To allow commands to pass their arguments on to a user-defined function, there | 1307 To allow commands to pass their arguments on to a user-defined function, there |
1308 is a special form <f-args> ("function args"). This splits the command | 1308 is a special form <f-args> ("function args"). This splits the command |
1309 arguments at spaces and Tabs, quotes each argument individually, and the | 1309 arguments at spaces and Tabs, quotes each argument individually, and the |
1310 <f-args> sequence is replaced by the comma-separated list of quoted arguments. | 1310 <f-args> sequence is replaced by the comma-separated list of quoted arguments. |
1311 See the Mycmd example below. If no arguments are given <f-args> is removed. | 1311 See the Mycmd example below. If no arguments are given <f-args> is removed. |
1312 To embed whitespace into an argument of <f-args>, prepend a backslash. | |
1313 <f-args> replaces every pair of backslashes (\\) with one backslash. A | |
1314 backslash followed by a character other than white space or a backslash | |
1315 remains unmodified. Overview: | |
1316 | |
1317 command <f-args> ~ | |
1318 XX ab 'ab' | |
1319 XX a\b 'a\b' | |
1320 XX a\ b 'a b' | |
1321 XX a\ b 'a ', 'b' | |
1322 XX a\\b 'a\b' | |
1323 XX a\\ b 'a\', 'b' | |
1324 XX a\\\b 'a\\b' | |
1325 XX a\\\ b 'a\ b' | |
1326 XX a\\\\b 'a\\b' | |
1327 XX a\\\\ b 'a\\', 'b' | |
1312 | 1328 |
1313 Examples > | 1329 Examples > |
1314 | 1330 |
1315 " Delete everything after here to the end | 1331 " Delete everything after here to the end |
1316 :com Ddel +,$d | 1332 :com Ddel +,$d |