From da732648f8d4a67efe7277d928858daf7de97198 Mon Sep 17 00:00:00 2001 From: druckdev Date: Sat, 19 Dec 2020 02:55:23 +0100 Subject: [PATCH] vim: Add terminal related settings --- .config/vim/vimrc | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.config/vim/vimrc b/.config/vim/vimrc index d694300..51649cc 100644 --- a/.config/vim/vimrc +++ b/.config/vim/vimrc @@ -175,6 +175,15 @@ noremap zz noremap zz nmap +" Terminal +if (has('nvim')) + " tnoremap + nmap t :split +terminali + nmap vt :vsplit +terminali +elseif (has('terminal')) + nmap t :terminal +endif + " Aesthetics ################################################################### " Use 24-bit (true-color) mode if (has('termguicolors')) @@ -227,6 +236,12 @@ autocmd InsertLeave * match ExtraWhitespace /\s\+$/ " Clear all matches autocmd BufWinLeave * call clearmatches() +" Terminal +if (has('nvim')) + " Disable spellcheck + autocmd TermOpen * setlocal nospell +endif + " change cursor shape depending on mode if (has('nvim')) " Beam when exiting