Currently rnvimr support split files in two directions: horizontal and vertical. I want to split the file in four directions: up, down, left, right.
In vim, I achieve it by:
set splitright
set splitbelow
nnoremap s <nop>
nnoremap sk :set nosplitbelow<CR>:split<CR>:set splitbelow<CR>
nnoremap sj :split<CR>
nnoremap sh :set nosplitright<CR>:vsplit<CR>:set splitright<CR>
nnoremap sl :vsplit<CR>
I think in rnvimr, it could be achieved by some configuration like:
let g:rnvimr_action = {
\ '<C-j>': 'NvimEdit split',
\ '<C-k>': 'NvimEdit set nosplitbelow<CR>split<CR>set splitbelow',
\ '<C-l>': 'NvimEdit vsplit',
\ '<C-k>': 'NvimEdit set nosplitright<CR>vsplit<CR>set splitright',
\ }
But it does not work. Please let me know how to achieve that if you know. Thanks!
Currently
rnvimr
support split files in two directions: horizontal and vertical. I want to split the file in four directions: up, down, left, right. In vim, I achieve it by:I think in
rnvimr
, it could be achieved by some configuration like:But it does not work. Please let me know how to achieve that if you know. Thanks!