Mercurial > vim
comparison runtime/doc/cmdline.txt @ 625:81fe2ccc1207 v7.0179
updated for version 7.0179
author | vimboss |
---|---|
date | Thu, 12 Jan 2006 23:22:24 +0000 |
parents | 9e359e5759f6 |
children | 68a196b7504d |
comparison
equal
deleted
inserted
replaced
624:91e7d4a7b3b0 | 625:81fe2ccc1207 |
---|---|
1 *cmdline.txt* For Vim version 7.0aa. Last change: 2005 Dec 27 | 1 *cmdline.txt* For Vim version 7.0aa. Last change: 2005 Dec 30 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
196 Useful functions are |getcmdtype()|, |getcmdline()| and | 196 Useful functions are |getcmdtype()|, |getcmdline()| and |
197 |getcmdpos()|. | 197 |getcmdpos()|. |
198 The cursor position is unchanged, except when the cursor was | 198 The cursor position is unchanged, except when the cursor was |
199 at the end of the line, then it stays at the end. | 199 at the end of the line, then it stays at the end. |
200 |setcmdpos()| can be used to set the cursor position. | 200 |setcmdpos()| can be used to set the cursor position. |
201 The |sandbox| is used for evaluating the expression to avoid | |
202 nasty side effects. | |
201 Example: > | 203 Example: > |
202 :cmap <F7> <C-\>eAppendSome()<CR> | 204 :cmap <F7> <C-\>eAppendSome()<CR> |
203 :func AppendSome() | 205 :func AppendSome() |
204 :let cmd = getcmdline() . " Some()" | 206 :let cmd = getcmdline() . " Some()" |
205 :" place the cursor on the ) | 207 :" place the cursor on the ) |