summaryrefslogtreecommitdiff
path: root/plugin/ale.vim
diff options
context:
space:
mode:
authorAdriaan Zonnenberg <amz@adriaan.xyz>2017-03-29 00:04:58 +0200
committerAdriaan Zonnenberg <amz@adriaan.xyz>2017-03-29 00:04:58 +0200
commit6a5d8ba5d02a3d0cc051a94e7ca327755b1fdc37 (patch)
treec6c1f0b5d22abbaae61be5a3d553961f71f49f22 /plugin/ale.vim
parent094eeb267397acdc7eb35498f06088aec1eb339a (diff)
downloadale-6a5d8ba5d02a3d0cc051a94e7ca327755b1fdc37.zip
Add :ALEEnable and :ALEDisable commands
Diffstat (limited to 'plugin/ale.vim')
-rw-r--r--plugin/ale.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugin/ale.vim b/plugin/ale.vim
index 42c6f28c..d728854c 100644
--- a/plugin/ale.vim
+++ b/plugin/ale.vim
@@ -233,8 +233,11 @@ command! -bar ALENextWrap :call ale#loclist_jumping#Jump('after', 1)
" A command for showing error details.
command! -bar ALEDetail :call ale#cursor#ShowCursorDetail()
-" A command for turning ALE on or off.
+" Define commands for turning ALE on or off.
command! -bar ALEToggle :call s:ALEToggle()
+command! -bar ALEEnable :if !g:ale_enabled | ALEToggle | endif
+command! -bar ALEDisable :if g:ale_enabled | ALEToggle | endif
+
" A command for linting manually.
command! -bar ALELint :call ale#Queue(0, 'lint_file')