Mercurial > vim
comparison runtime/doc/map.txt @ 24278:4ab4ef0c48b1
Update runtime files.
Commit: https://github.com/vim/vim/commit/dad4473f02e1fec86d43a2fc094536a4b27d3b25
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Mar 31 20:07:33 2021 +0200
Update runtime files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 31 Mar 2021 20:15:04 +0200 |
parents | 34acfef7f60c |
children | e3ec2ec8841a |
comparison
equal
deleted
inserted
replaced
24277:1ada4a68ac43 | 24278:4ab4ef0c48b1 |
---|---|
1 *map.txt* For Vim version 8.2. Last change: 2020 Dec 10 | 1 *map.txt* For Vim version 8.2. Last change: 2021 Mar 17 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
269 let g:column = col('.') | 269 let g:column = col('.') |
270 return 'x' | 270 return 'x' |
271 endfunc | 271 endfunc |
272 nnoremap <expr> x StoreColumn() | 272 nnoremap <expr> x StoreColumn() |
273 nmap ! f!x | 273 nmap ! f!x |
274 You will notice that g:column has the value from before executing "fx", | 274 You will notice that g:column has the value from before executing "f!", |
275 because "z" is evaluated before "fx" is executed. | 275 because "x" is evaluated before "f!" is executed. |
276 This can be solved by inserting <Ignore> before the character that is | 276 This can be solved by inserting <Ignore> before the character that is |
277 expression-mapped: > | 277 expression-mapped: > |
278 nmap ! f!<Ignore>x | 278 nmap ! f!<Ignore>x |
279 | 279 |
280 Be very careful about side effects! The expression is evaluated while | 280 Be very careful about side effects! The expression is evaluated while |