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 {{{