user2384250
user2384250

Reputation: 558

Internal vim command output to external application

Say that I run :set all inside vim in command mode, this command outputs a lot of stuff as expected, how i can redirect this output to an external application capable of reading an incoming buffer, let's say gedit ?

Upvotes: 4

Views: 519

Answers (1)

timss
timss

Reputation: 10250

Using ViM: How to redirect ex command output into current buffer or file?, you could redirect the output directly to a file, and then open it with Gedit or any other editor of choice just like any other file.

:redir >your_file | silent set all | redir END

Edit:
As mentioned by romainl in the comments, you could also copy this directly to your system clipboard if Vim is compiled with +clipboard. Then you could just paste it in another program use ctrlv as usual.

:redir @+ | silent set all | redir END

Upvotes: 4

Related Questions