summaryrefslogtreecommitdiff
path: root/.vim/feat/spell_check_mode.vim
diff options
context:
space:
mode:
Diffstat (limited to '.vim/feat/spell_check_mode.vim')
-rw-r--r--.vim/feat/spell_check_mode.vim11
1 files changed, 11 insertions, 0 deletions
diff --git a/.vim/feat/spell_check_mode.vim b/.vim/feat/spell_check_mode.vim
new file mode 100644
index 0000000..4b35add
--- /dev/null
+++ b/.vim/feat/spell_check_mode.vim
@@ -0,0 +1,11 @@
+nnoremap <F6> :call SpellCheckModeToggle()<CR>
+
+function! SpellCheckModeToggle()
+ if g:colors_name == 'gruvbox'
+ set spell
+ colorscheme darkblue
+ else
+ set nospell
+ colorscheme gruvbox
+ endif
+endfunction