diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2020-05-30 01:32:33 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2020-05-30 01:32:33 +1200 |
commit | c93eace50b2a959af38641da66375982876c7262 (patch) | |
tree | f3276edd8aae645b71195f5763ff85033bac95ad /vim | |
parent | Make properties of detect_indent.vim configgable (diff) | |
download | dotfiles-c93eace50b2a959af38641da66375982876c7262.tar.gz dotfiles-c93eace50b2a959af38641da66375982876c7262.zip |
Use :function! and `abort` in autoload
Diffstat (limited to 'vim')
-rw-r--r-- | vim/autoload/detect_indent.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vim/autoload/detect_indent.vim b/vim/autoload/detect_indent.vim index 28d379c3..71a43e87 100644 --- a/vim/autoload/detect_indent.vim +++ b/vim/autoload/detect_indent.vim @@ -1,10 +1,10 @@ " Numeric comparison function to sort in a Vim v7.0 compatible way -function s:CompareNumeric(a, b) +function! s:CompareNumeric(a, b) abort return a:a > a:b ? 1 : -1 endfunction " Entry point for plugin -function detect_indent#() abort +function! detect_indent#() abort " For spaces, we count both the total space-indented lines, and also the " count of lines indexed by space count, so that if we need to, we can |