From 94055a095f392f5fb94fcdfd110cba480bf4750d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emmanuel=20Beno=C3=AEt?= Date: Mon, 9 Mar 2015 12:30:48 +0100 Subject: [PATCH] Added syntastic plugin --- bundles-init/syntastic.cfg.vim | 12 ++++++++++++ bundles-init/syntastic.load.vim | 1 + doc/heavim.txt | 3 +++ 3 files changed, 16 insertions(+) create mode 100644 bundles-init/syntastic.cfg.vim create mode 100644 bundles-init/syntastic.load.vim diff --git a/bundles-init/syntastic.cfg.vim b/bundles-init/syntastic.cfg.vim new file mode 100644 index 0000000..e430cfd --- /dev/null +++ b/bundles-init/syntastic.cfg.vim @@ -0,0 +1,12 @@ +let g:syntastic_mode_map = { + \ 'mode': 'passive' + \ } +let g:syntastic_aggregate_errors = 1 +let g:syntastic_check_on_wq = 0 +let g:syntastic_enable_balloons = 1 +let g:syntastic_always_populate_loc_list = 1 +let g:syntastic_auto_loc_list = 1 +let g:syntastic_ignore_files = ['\m^/usr/include/'] + +nnoremap s :SyntasticToggleMode +nnoremap ss :SyntasticCheck diff --git a/bundles-init/syntastic.load.vim b/bundles-init/syntastic.load.vim new file mode 100644 index 0000000..d93a6dc --- /dev/null +++ b/bundles-init/syntastic.load.vim @@ -0,0 +1 @@ +NeoBundle 'scrooloose/syntastic' diff --git a/doc/heavim.txt b/doc/heavim.txt index 63915e2..f313c72 100644 --- a/doc/heavim.txt +++ b/doc/heavim.txt @@ -60,3 +60,6 @@ local leader key. gM Git: rename current buffer gP Git: push gR Git: remove current buffer + + s Toggle syntax checking + ss Check syntax now