diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-09-10 18:16:20 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-09-10 18:16:20 +0200 |
commit | 65f084749b260746d7f186af4f080298be2df55b (patch) | |
tree | bff55e0c1924c835001e7dc92857e3e09e5433e1 /runtime/doc/cmdline.txt | |
parent | c168bd4bd3a9b856fc410fc4515dcca1d10d7461 (diff) | |
download | vim-git-65f084749b260746d7f186af4f080298be2df55b.tar.gz |
patch 8.0.1090: cannot get the text under the cursor like v:beval_textv8.0.1090
Problem: cannot get the text under the cursor like v:beval_text
Solution: Add <cexpr>.
Diffstat (limited to 'runtime/doc/cmdline.txt')
-rw-r--r-- | runtime/doc/cmdline.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/doc/cmdline.txt b/runtime/doc/cmdline.txt index cd38e90e9..989bd25fb 100644 --- a/runtime/doc/cmdline.txt +++ b/runtime/doc/cmdline.txt @@ -830,6 +830,11 @@ Also see |`=|. Note: these are typed literally, they are not special keys! <cword> is replaced with the word under the cursor (like |star|) <cWORD> is replaced with the WORD under the cursor (see |WORD|) + <cexpr> is replaced with the word under the cursor, including more + to form a C expression. E.g., when the cursor is on "arg" + of "ptr->arg" then the result is "ptr->arg"; when the + cursor is on "]" of "list[idx]" then the result is + "list[idx]". This is used for |v:beval_text|. <cfile> is replaced with the path name under the cursor (like what |gf| uses) <afile> When executing autocommands, is replaced with the file name |