summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhineng Li <im@zhineng.li>2026-05-29 09:54:09 +0800
committerZhineng Li <im@zhineng.li>2026-05-29 09:54:09 +0800
commita149cad6796939ce1a55c1fe1738e0b5d949a734 (patch)
treece4c150e9ab7d81d3c63082d05030a6dbe5a7d45
parent360a8a772a04d0eff94b58e34b9594b3a68b60e9 (diff)
downloaddotfiles-main.tar.gz
dotfiles-main.zip
open terminal shortcutsHEADmain
-rw-r--r--nvim/init.vim10
1 files changed, 10 insertions, 0 deletions
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 <Esc><Esc> :nohlsearch<CR>
" Leave terminal mode more quickly
tnoremap <Esc><Esc> <C-\><C-n>
+" Open terminal in a vertical split
+nnoremap <leader>tv :vertical terminal<CR>
+
+" Open terminal in a horizontal split
+nnoremap <leader>th :horizontal terminal<CR>
+
"
" Netrw: the built-in file explorer
"