diff options
| author | Syndamia <kamen@syndamia.com> | 2024-01-28 16:05:38 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2024-01-28 16:07:18 +0200 |
| commit | f3ea7c8003c7a65de29c2f4e0e1bf0d592dd0ad8 (patch) | |
| tree | bd5953791d769f96f6cb660e74a73b9043db16e5 /.vim/miniplugins/spell_check_mode.vim | |
| parent | 999bb0cb0e771505ea13cba702474bd27b9d9930 (diff) | |
| download | dotfiles-f3ea7c8003c7a65de29c2f4e0e1bf0d592dd0ad8.tar dotfiles-f3ea7c8003c7a65de29c2f4e0e1bf0d592dd0ad8.tar.gz dotfiles-f3ea7c8003c7a65de29c2f4e0e1bf0d592dd0ad8.zip | |
[.vimrc] Reworked entire vimrc
Diffstat (limited to '.vim/miniplugins/spell_check_mode.vim')
| -rw-r--r-- | .vim/miniplugins/spell_check_mode.vim | 33 |
1 files changed, 0 insertions, 33 deletions
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 <F6> :call SpellCheckModeToggle()<CR> - -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 <silent> <ScrollWheelUp> <c-w>:call EnterNormalMode()<CR> - -function! ExitNormalMode() - unmap <buffer> <silent> <RightMouse> - call feedkeys("a") -endfunction - -function! EnterNormalMode() - if @% == '!lazygit' - tunmap <silent> <ScrollWheelUp> - elseif &buftype == 'terminal' && mode('') == 't' - call feedkeys("\<c-w>N") - call feedkeys("\<c-y>") - map <buffer> <silent> <RightMouse> :call ExitNormalMode()<CR> - endif -endfunction |
