I'm trying to write a plugin:
I have a variable with some text. I want to:
- create a new buffer
- place the contents of that variable in the new buffer
- open a new split that displays the new buffer
- keep focus on the current window (not the new one)
I'm having a really hard time googling for 2 and 3 and I'm not 100% sure I'm doing 1 correctly either. I'm assuming 4 isn't hard.