From 94b65ec3766c03358722ab747ea9605b3f956c6a Mon Sep 17 00:00:00 2001 From: Kevin Date: Wed, 2 Apr 2014 18:12:48 -0400 Subject: [PATCH] Syntax can now be toggled on/off, and the filetype association was commented out to use as an example. --- vim/config/keyboard.vim | 26 ++++++++++++++++---------- vim/config/plugins.vim | 9 ++++----- 2 files changed, 20 insertions(+), 15 deletions(-) diff --git a/vim/config/keyboard.vim b/vim/config/keyboard.vim index 149474e..321a712 100644 --- a/vim/config/keyboard.vim +++ b/vim/config/keyboard.vim @@ -29,8 +29,9 @@ " | (A) -> toggle line numbers " | (A) -> toggle row/column highlighting " | (A) -> toggle line wrapping -" | (A) -> toggle spell check -" | (A) -> toggle all folds +" | (A) -> toggle all folds +" | (A) -> toggle spell check +" | (A) -> toggle syntax checking " | (A) -> toggle the gundo undo history sidebar " | (A) -> toggle the tagbar sidebar " | (A) -> toggle the error list @@ -149,15 +150,20 @@ vnoremap ':set wrap! go'.'-+'[&wrap]."=b\rv" inoremap ':set wrap! go'.'-+'[&wrap]."=b\r" - "toggle spellcheck - nnoremap ':set spell!' - vnoremap ':set spell!v' - inoremap ':set spell!' - "toggle all folds - nnoremap zi - vnoremap ziv - inoremap zi + nnoremap zi + vnoremap ziv + inoremap zi + + "toggle spellcheck + nnoremap ':set spell!' + vnoremap ':set spell!v' + inoremap ':set spell!' + + "toggle syntax checking + nnoremap ':SyntasticToggleMode' + vnoremap ':SyntasticToggleModev' + inoremap ':SyntasticToggleMode' "bindings to trigger the gundo undo history nnoremap ':GundoToggle' diff --git a/vim/config/plugins.vim b/vim/config/plugins.vim index 3e75ce3..68b5c0a 100644 --- a/vim/config/plugins.vim +++ b/vim/config/plugins.vim @@ -163,11 +163,10 @@ "open automatically if vim was run without any files autocmd VimEnter * if !argc() | VimFiler -project | endif - "file associations - if has('unix') - call vimfiler#set_execute_file('mp4','xdg-open') - call vimfiler#set_execute_file('mp3','xdg-open') - endif + "filetype associations (just a sample to show how it can work) + "if has('unix') + "call vimfiler#set_execute_file('mp4','xdg-open') + "endif "}}} "NEOCOMPLCACHE AUTOCOMPLETION PLUGIN: ENABLE AND CONFIGURE BEHAVIOUR {{{