From 6a94a40a94d993cc932a3df10644c01a0bd3c3a7 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Sat, 8 Apr 2017 23:54:44 +0800 Subject: [PATCH] Fix doc for lint on the fly --- autoload/SpaceVim.vim | 6 ++++++ config/plugins_before/neomake.vim | 2 +- doc/SpaceVim.txt | 6 ++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/autoload/SpaceVim.vim b/autoload/SpaceVim.vim index c7f4f0241..0f601af4b 100644 --- a/autoload/SpaceVim.vim +++ b/autoload/SpaceVim.vim @@ -270,6 +270,12 @@ let g:spacevim_enable_powerline_fonts = 1 " < let g:spacevim_lint_on_save = 1 "" +" Enable/Disable lint on the fly feature of SpaceVim's maker. Default is 0. +" > +" let g:spacevim_lint_on_the_fly = 0 +" < +let g:spacevim_lint_on_the_fly = 0 +"" " Enable/Disable vimfiler in the welcome windows. Default is 1. " This will cause vim to start up slowly if there are too many files in the " current directory. diff --git a/config/plugins_before/neomake.vim b/config/plugins_before/neomake.vim index 2573a57bb..bf3510dac 100644 --- a/config/plugins_before/neomake.vim +++ b/config/plugins_before/neomake.vim @@ -8,7 +8,7 @@ if empty(maparg('ck', '',0,1)) nnoremap ck :Neomake endif -if get(g:, 'spacevim_lint_on_the_fly', 0) || 1 +if get(g:, 'spacevim_lint_on_the_fly', 0) let g:neomake_tempfile_enabled = 1 let g:neomake_open_list = 0 augroup Neomake_on_the_fly diff --git a/doc/SpaceVim.txt b/doc/SpaceVim.txt index 2bf9b49f0..de4759ba7 100644 --- a/doc/SpaceVim.txt +++ b/doc/SpaceVim.txt @@ -293,6 +293,12 @@ Enable/Disable lint on save feature of SpaceVim's maker. Default is 1. let g:spacevim_lint_on_save = 0 < + *g:spacevim_lint_on_the_fly* +Enable/Disable lint on the fly feature of SpaceVim's maker. Default is 0. +> + let g:spacevim_lint_on_the_fly = 0 +< + *g:spacevim_enable_vimfiler_welcome* Enable/Disable vimfiler in the welcome windows. Default is 1. This will cause vim to start up slowly if there are too many files in the current directory.