diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-17 17:14:25 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-17 17:36:40 -0400 |
commit | 3d71366af1287f356a812a38f2c0b22230fe409c (patch) | |
tree | 81b03f32dac9257ab411c247c8e2b3e6a93bc0dc /runtime | |
parent | f53c95e7a8cbeb6fb523d179ae166a3ace87dbcd (diff) | |
download | rneovim-3d71366af1287f356a812a38f2c0b22230fe409c.tar.gz rneovim-3d71366af1287f356a812a38f2c0b22230fe409c.tar.bz2 rneovim-3d71366af1287f356a812a38f2c0b22230fe409c.zip |
vim-patch:8.0.1090: cannot get the text under the cursor like v:beval_text
Problem: cannot get the text under the cursor like v:beval_text
Solution: Add <cexpr>.
https://github.com/vim/vim/commit/65f084749b260746d7f186af4f080298be2df55b
Diffstat (limited to 'runtime')
-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 f4bc2972bc..6e0c3269ab 100644 --- a/runtime/doc/cmdline.txt +++ b/runtime/doc/cmdline.txt @@ -788,6 +788,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 |