From 716dc8693c959278f848780334764abc2d6c7bd5 Mon Sep 17 00:00:00 2001 From: Kevin Date: Thu, 3 Apr 2014 23:00:34 -0400 Subject: [PATCH] Added a toggle for the spellcheck list to F8 --- .gitmodules | 3 + vim/config/keyboard.vim | 326 ++++++++++++++++++++-------------------- 2 files changed, 169 insertions(+), 160 deletions(-) diff --git a/.gitmodules b/.gitmodules index 925addd..67f7311 100644 --- a/.gitmodules +++ b/.gitmodules @@ -58,3 +58,6 @@ [submodule "vim/bundle/ReplaceWithRegister"] path = vim/bundle/ReplaceWithRegister url = https://github.com/vim-scripts/ReplaceWithRegister.git +[submodule "vim/bundle/SpellCheck"] + path = vim/bundle/SpellCheck + url = https://github.com/vim-scripts/SpellCheck.git diff --git a/vim/config/keyboard.vim b/vim/config/keyboard.vim index 81b908f..4383f98 100644 --- a/vim/config/keyboard.vim +++ b/vim/config/keyboard.vim @@ -40,6 +40,7 @@ " | (A) -> toggle all folds " | (A) -> toggle spell check " | (A) -> toggle syntax checking +" | (A) -> enable spellcheck + toggle list of spelling errors " | (A) -> toggle the gundo undo history sidebar " | (A) -> toggle the tagbar sidebar " | (A) -> toggle the location/error list @@ -131,199 +132,204 @@ " "MAPPINGS: GENERAL KEYBINDINGS AND REBINDINGS {{{ - "MOUSE:{ - "hold shift to enable middle-click paste - noremap - noremap! + "MOUSE:{ + "hold shift to enable middle-click paste + noremap + noremap! - "hold ctrl to scroll left/right instead of up/down - noremap 3zl - noremap 3zh - inoremap 3zl - inoremap 3zh - "} + "hold ctrl to scroll left/right instead of up/down + noremap 3zl + noremap 3zh + inoremap 3zl + inoremap 3zh + "} - "TABS:{ - nnoremap ':tabnext' - nnoremap ':tabprev' - nnoremap ':tabnew' - nnoremap ` ':VimFiler -tab -project' - "} + "TABS:{ + nnoremap ':tabnext' + nnoremap ':tabprev' + nnoremap ':tabnew' + nnoremap ` ':VimFiler -tab -project' + "} - "TOGGLES:{ - "bindings to trigger vimfiler - nnoremap `` ':VimFilerExplorer -direction=topleft -winwidth=45' - nnoremap ~~ ':VimFilerExplorer -direction=botright -winwidth=45' + "TOGGLES:{ + "bindings to trigger vimfiler + nnoremap `` ':VimFilerExplorer -direction=topleft -winwidth=45' + nnoremap ~~ ':VimFilerExplorer -direction=botright -winwidth=45' - "toggle folded code at foldpoints - nnoremap za + "toggle folded code at foldpoints + nnoremap za - "unmap F1 from help then map it to toggle the display of line numbers - nnoremap ':set number!:echo "Line numbers toggled"' - xnoremap ':set number!v' - inoremap ':set number!' + "unmap F1 from help then map it to toggle the display of line numbers + nnoremap ':set number!:echo "Line numbers toggled"' + xnoremap ':set number!v' + inoremap ':set number!' - "toggle the cursor line and column - nnoremap ':set cursorline! cursorcolumn!:echo "Cursor crosshair toggled"' - xnoremap ':set cursorline! cursorcolumn!v' - inoremap ':set cursorline! cursorcolumn!' + "toggle the cursor line and column + nnoremap ':set cursorline! cursorcolumn!:echo "Cursor crosshair toggled"' + xnoremap ':set cursorline! cursorcolumn!v' + inoremap ':set cursorline! cursorcolumn!' - "toggle line wrapping (and bottom bar if using the gui) - nnoremap ':echo "Line wrapping toggled":set wrap!' - xnoremap ':set wrap!v' - inoremap ':set wrap!' + "toggle line wrapping (and bottom bar if using the gui) + nnoremap ':echo "Line wrapping toggled":set wrap!' + xnoremap ':set wrap!v' + inoremap ':set wrap!' - "toggle all folds - nnoremap zi:echo "Code Folding Toggled" - xnoremap ziv - inoremap zi + "toggle all folds + nnoremap zi:echo "Code Folding Toggled" + xnoremap ziv + inoremap zi - "toggle spellcheck - nnoremap ':set spell!:echo "Spell checking toggled"' - xnoremap ':set spell!v' - inoremap ':set spell!' + "toggle spellcheck + nnoremap ':set spell!:echo "Spell checking toggled"' + xnoremap ':set spell!v' + inoremap ':set spell!' - "toggle syntax checking - nnoremap ':SyntasticToggleMode' - xnoremap ':SyntasticToggleModev' - inoremap ':SyntasticToggleMode' + "toggle syntax checking + nnoremap ':SyntasticToggleMode' + xnoremap ':SyntasticToggleModev' + inoremap ':SyntasticToggleMode' - "bindings to trigger the gundo undo history - nnoremap ':GundoToggle:echo "Undo history sidebar toggled"' - xnoremap ':GundoTogglev' - inoremap ':GundoToggle' + "bindings to trigger spellcheck + nnoremap ':UpdateAndSpellCheck:call ToggleQuickfixList()' + xnoremap ':UpdateAndSpellCheck:call ToggleQuickfixList()' + inoremap ':UpdateAndSpellCheck:call ToggleQuickfixList()' - "bindings to trigger the tagbar list of tags - nnoremap ':TagbarToggle:echo "Code tagbar toggled"' - xnoremap ':TagbarTogglev' - inoremap ':TagbarToggle' + "bindings to trigger the gundo undo history + nnoremap ':GundoToggle:echo "Undo history sidebar toggled"' + xnoremap ':GundoTogglev' + inoremap ':GundoToggle' - "bindings to trigger the tagbar list of errors - nmap