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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To open a new window, use
:split. To insert the contents of a variable, use:call append(0, g:some_var)