From f3ea7c8003c7a65de29c2f4e0e1bf0d592dd0ad8 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 28 Jan 2024 16:05:38 +0200 Subject: [.vimrc] Reworked entire vimrc --- .vim/miniplugins/spell_check_mode.vim | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 .vim/miniplugins/spell_check_mode.vim (limited to '.vim/miniplugins/spell_check_mode.vim') diff --git a/.vim/miniplugins/spell_check_mode.vim b/.vim/miniplugins/spell_check_mode.vim deleted file mode 100644 index cfdd46a..0000000 --- a/.vim/miniplugins/spell_check_mode.vim +++ /dev/null @@ -1,33 +0,0 @@ -" When you press F6 it will toggle a "spell check mode", -" spell is activated and the colour scheme is changed -nmap :call SpellCheckModeToggle() - -function! SpellCheckModeToggle() - if g:colors_name == 'gruvbox' - set spell - colorscheme darkblue - else - set nospell - colorscheme gruvbox - endif -endfunction - -" Scrolling (shows history) in terminal (except in lazygit) -" Scroll up to activate it, and press a to deactivate it -" Slightly modified version of: https://github.com/vim/vim/issues/2490#issuecomment-393973253 -tmap :call EnterNormalMode() - -function! ExitNormalMode() - unmap - call feedkeys("a") -endfunction - -function! EnterNormalMode() - if @% == '!lazygit' - tunmap - elseif &buftype == 'terminal' && mode('') == 't' - call feedkeys("\N") - call feedkeys("\") - map :call ExitNormalMode() - endif -endfunction -- cgit v1.2.3