aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-05-30 01:32:33 +1200
committerTom Ryder <tom@sanctum.geek.nz>2020-05-30 01:32:33 +1200
commitc93eace50b2a959af38641da66375982876c7262 (patch)
treef3276edd8aae645b71195f5763ff85033bac95ad /vim
parentMake properties of detect_indent.vim configgable (diff)
downloaddotfiles-c93eace50b2a959af38641da66375982876c7262.tar.gz
dotfiles-c93eace50b2a959af38641da66375982876c7262.zip
Use :function! and `abort` in autoload
Diffstat (limited to 'vim')
-rw-r--r--vim/autoload/detect_indent.vim4
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