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