From within Vimscript, how does one open a new split window and insert the contents of a variable?
I'm trying to write a script that applies a function to the current buffer and displays the result in a split window.
Thanks.
To open a new window, use :split. To insert the contents of a variable, use :call append(0, g:some_var)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With