Inside Vimscript, how to open a new split window and insert the contents of a variable?
I am trying to write a script that applies a function to the current buffer and displays the result in a split window.
Thank.
To open a new window, use :split. To insert the contents of a variable, use:call append(0, g:some_var)
:split
:call append(0, g:some_var)
I have never used vimscript (excluding simple mappings and keyboard settings), but here are some links that might help:
Here's how to create a new split window (look at the source):
Here's how you insert characters:
Btw, IBM, :
Source: https://habr.com/ru/post/1774857/More articles:Transparency in Java - javaOData by default and configuring service configuration files in Silverlight application created in MS Visual Studio 2013 - visual-studio-2013PHP preg_match_all fails with long lines - phpAdd text in WPF format - wpfFormatting the amount / amount of data as a string - cHow to draw a transparent NSScroller - objective-cHow do interactive console programs work? - shellSort comments by votes? - sqlSQL: how to select unique rows with duplicate elements - sqlDoes the library have a "Hello, World" project similar to GNU? - cAll Articles