I'm using vim 8 and I set a shortcut to open a terminal in my vim.
nnoremap <F5> :wa<CR> \| :term ++kill=term<CR>
It works except that it opens a terminal vertically as below:
--------------------
| |some file|
|nerdtree|----------
| |terminal |
--------------------
What I need is to put the terminal on the right side:
-----------------------------
| | | |
|nerdtree|some file|terminal|
| | | |
-----------------------------
How can I change the shortcut of <F5>
to achieve this?
:h :vertical