Timeline for How to use value under cursor in the shell command?
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 13 at 20:21 | comment | added | Terry Brown |
expand() is works in a "command line" context like this: :cexpr(system("find somedir -name \\*.py | xargs grep -nsi '" . expand('<cword>') . "'"))
|
|
Jun 17, 2022 at 13:23 | history | edited | Vivian De Smedt | CC BY-SA 4.0 |
deleted 13 characters in body
|
Jun 17, 2022 at 13:11 | comment | added | l00p |
Yes, using <C-r>_<C-w> solves it. Using expand() is not possible in command line mode as far as I see.
|
|
Jun 17, 2022 at 13:10 | vote | accept | l00p | ||
Jun 17, 2022 at 12:59 | history | edited | Vivian De Smedt | CC BY-SA 4.0 |
added 120 characters in body
|
Jun 17, 2022 at 12:51 | history | answered | Vivian De Smedt | CC BY-SA 4.0 |