From a149cad6796939ce1a55c1fe1738e0b5d949a734 Mon Sep 17 00:00:00 2001 From: Zhineng Li Date: Fri, 29 May 2026 09:54:09 +0800 Subject: open terminal shortcuts --- nvim/init.vim | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'nvim/init.vim') diff --git a/nvim/init.vim b/nvim/init.vim index fe50fd8..0071fa6 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -20,6 +20,10 @@ set shiftwidth=4 set exrc set secure +" Open splits to the right and below +set splitright +set splitbelow + " Customize the prefix key let mapleader = "," @@ -29,6 +33,12 @@ nnoremap :nohlsearch " Leave terminal mode more quickly tnoremap +" Open terminal in a vertical split +nnoremap tv :vertical terminal + +" Open terminal in a horizontal split +nnoremap th :horizontal terminal + " " Netrw: the built-in file explorer " -- cgit v1.2.3