Config window layout when opening R terminal

24 views
Skip to first unread message

dr.g....@googlemail.com

unread,
Jul 24, 2018, 6:06:54 AM7/24/18
to Nvim-R
Hi,

Just installed version 0.9.11 from https://www.vim.org/scripts/script.php?script_id=2628 on a macbook/Sierra.

By default, when I open an R file with vim then <leader>rf to open the R console, the console is opened in a horizontal split below the R file.

This occurs also when running vim inside Tmux.

I would *much* prefer the default to be a vertical split.

How do I set the default to vertical?

I have tried modifying vimrplugin_screenvsplit and messing with the function StarR_TmuxSplit in the file R/tmux_split.vim

however, these functions seem not to be called (:echom does not send a message to :messages)

Help appreciated in config\in an excellent plugin!

Jakson Alves de Aquino

unread,
Jul 24, 2018, 10:44:09 AM7/24/18
to Nvim-R
You could decrease the minimum editor width in your vimrc. Example:

let R_min_editor_width = 77

For more options, please, do:

   :h R_min_editor_width

dr.g....@googlemail.com

unread,
Jul 24, 2018, 10:53:34 AM7/24/18
to Nvim-R
Yes, that resolves it. Thank you.
Reply all
Reply to author
Forward
0 new messages