: Is there a way to pass the contents of the register instead of the buffer when using w!command?
vim
You can configure the second argument of system() to pass standard input to the command.
:call system("my-command",@/)
In this example, the contents of the search register are written to the standard input of the command my-command.
© 2024 OneMinuteCode. All rights reserved.