diff options
| author | Zhineng Li <im@zhineng.li> | 2026-05-29 09:54:09 +0800 |
|---|---|---|
| committer | Zhineng Li <im@zhineng.li> | 2026-05-29 09:54:09 +0800 |
| commit | a149cad6796939ce1a55c1fe1738e0b5d949a734 (patch) | |
| tree | ce4c150e9ab7d81d3c63082d05030a6dbe5a7d45 | |
| parent | 360a8a772a04d0eff94b58e34b9594b3a68b60e9 (diff) | |
| download | dotfiles-main.tar.gz dotfiles-main.zip | |
| -rw-r--r-- | nvim/init.vim | 10 |
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 " |
