Mercurial > vim
comparison runtime/doc/eval.txt @ 14422:06316dbd66bc v8.1.0225
patch 8.1.0225: mode() does not indicate using CTRL-O from Insert mode
commit https://github.com/vim/vim/commit/612cc3888b136e80485132d9f997ed457dbc5501
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 29 15:34:26 2018 +0200
patch 8.1.0225: mode() does not indicate using CTRL-O from Insert mode
Problem: Mode() does not indicate using CTRL-O from Insert mode.
Solution: Add "niI", "niR" and "niV" to mode() result. (closes https://github.com/vim/vim/issues/3000)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 29 Jul 2018 15:45:05 +0200 |
parents | 2f7e67dd088c |
children | 5c5908e81e93 |
comparison
equal
deleted
inserted
replaced
14421:2f7e67dd088c | 14422:06316dbd66bc |
---|---|
6222 mode([expr]) Return a string that indicates the current mode. | 6222 mode([expr]) Return a string that indicates the current mode. |
6223 If [expr] is supplied and it evaluates to a non-zero Number or | 6223 If [expr] is supplied and it evaluates to a non-zero Number or |
6224 a non-empty String (|non-zero-arg|), then the full mode is | 6224 a non-empty String (|non-zero-arg|), then the full mode is |
6225 returned, otherwise only the first letter is returned. | 6225 returned, otherwise only the first letter is returned. |
6226 | 6226 |
6227 n Normal, Terminal-Normal | 6227 n Normal, Terminal-Normal |
6228 no Operator-pending | 6228 no Operator-pending |
6229 v Visual by character | 6229 niI Normal using |i_CTRL-O| in |Insert-mode| |
6230 V Visual by line | 6230 niR Normal using |i_CTRL-O| in |Replace-mode| |
6231 CTRL-V Visual blockwise | 6231 niV Normal using |i_CTRL-O| in |Virtual-Replace-mode| |
6232 s Select by character | 6232 v Visual by character |
6233 S Select by line | 6233 V Visual by line |
6234 CTRL-S Select blockwise | 6234 CTRL-V Visual blockwise |
6235 i Insert | 6235 s Select by character |
6236 ic Insert mode completion |compl-generic| | 6236 S Select by line |
6237 ix Insert mode |i_CTRL-X| completion | 6237 CTRL-S Select blockwise |
6238 R Replace |R| | 6238 i Insert |
6239 Rc Replace mode completion |compl-generic| | 6239 ic Insert mode completion |compl-generic| |
6240 Rv Virtual Replace |gR| | 6240 ix Insert mode |i_CTRL-X| completion |
6241 Rx Replace mode |i_CTRL-X| completion | 6241 R Replace |R| |
6242 c Command-line editing | 6242 Rc Replace mode completion |compl-generic| |
6243 cv Vim Ex mode |gQ| | 6243 Rv Virtual Replace |gR| |
6244 ce Normal Ex mode |Q| | 6244 Rx Replace mode |i_CTRL-X| completion |
6245 r Hit-enter prompt | 6245 c Command-line editing |
6246 rm The -- more -- prompt | 6246 cv Vim Ex mode |gQ| |
6247 r? A |:confirm| query of some sort | 6247 ce Normal Ex mode |Q| |
6248 ! Shell or external command is executing | 6248 r Hit-enter prompt |
6249 t Terminal-Job mode: keys go to the job | 6249 rm The -- more -- prompt |
6250 r? A |:confirm| query of some sort | |
6251 ! Shell or external command is executing | |
6252 t Terminal-Job mode: keys go to the job | |
6250 This is useful in the 'statusline' option or when used | 6253 This is useful in the 'statusline' option or when used |
6251 with |remote_expr()| In most other places it always returns | 6254 with |remote_expr()| In most other places it always returns |
6252 "c" or "n". | 6255 "c" or "n". |
6256 Note that in the future more modes and more specific modes may | |
6257 be added. It's better not to compare the whole string but only | |
6258 the leading character(s). | |
6253 Also see |visualmode()|. | 6259 Also see |visualmode()|. |
6254 | 6260 |
6255 mzeval({expr}) *mzeval()* | 6261 mzeval({expr}) *mzeval()* |
6256 Evaluate MzScheme expression {expr} and return its result | 6262 Evaluate MzScheme expression {expr} and return its result |
6257 converted to Vim data structures. | 6263 converted to Vim data structures. |