aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-12-21 14:34:05 +1300
committerTom Ryder <tom@sanctum.geek.nz>2019-12-21 14:34:05 +1300
commit1148b0042b17db0fd7555d156b83798aa1fe43f1 (patch)
tree81f4d0ece89293907aed1e77ee984a54e43b7838
parentSimplify vim/bundle installation commands (diff)
downloaddotfiles-1148b0042b17db0fd7555d156b83798aa1fe43f1.tar.gz
dotfiles-1148b0042b17db0fd7555d156b83798aa1fe43f1.zip
Fix up capitalization patterns for indent autoload
-rw-r--r--vim/after/indent/awk.vim2
-rw-r--r--vim/after/indent/css.vim2
-rw-r--r--vim/after/indent/html.vim2
-rw-r--r--vim/after/indent/javascript.vim2
-rw-r--r--vim/after/indent/mail.vim2
-rw-r--r--vim/after/indent/markdown.vim2
-rw-r--r--vim/after/indent/perl.vim2
-rw-r--r--vim/after/indent/php.vim2
-rw-r--r--vim/after/indent/sh.vim2
-rw-r--r--vim/after/indent/vim.vim2
-rw-r--r--vim/autoload/indent.vim10
11 files changed, 15 insertions, 15 deletions
diff --git a/vim/after/indent/awk.vim b/vim/after/indent/awk.vim
index 61f09a1e..bff1b904 100644
--- a/vim/after/indent/awk.vim
+++ b/vim/after/indent/awk.vim
@@ -1,2 +1,2 @@
" Use four spaces for indentation
-call indent#spaces(4)
+call indent#Spaces(4)
diff --git a/vim/after/indent/css.vim b/vim/after/indent/css.vim
index 61f09a1e..bff1b904 100644
--- a/vim/after/indent/css.vim
+++ b/vim/after/indent/css.vim
@@ -1,2 +1,2 @@
" Use four spaces for indentation
-call indent#spaces(4)
+call indent#Spaces(4)
diff --git a/vim/after/indent/html.vim b/vim/after/indent/html.vim
index c043f620..4cb4a678 100644
--- a/vim/after/indent/html.vim
+++ b/vim/after/indent/html.vim
@@ -1,5 +1,5 @@
" Use four spaces for indentation
-call indent#spaces(4)
+call indent#Spaces(4)
" Clear away the flag we set to indent after paragraphs
unlet html_indent_inctags
diff --git a/vim/after/indent/javascript.vim b/vim/after/indent/javascript.vim
index 61f09a1e..bff1b904 100644
--- a/vim/after/indent/javascript.vim
+++ b/vim/after/indent/javascript.vim
@@ -1,2 +1,2 @@
" Use four spaces for indentation
-call indent#spaces(4)
+call indent#Spaces(4)
diff --git a/vim/after/indent/mail.vim b/vim/after/indent/mail.vim
index 61f09a1e..bff1b904 100644
--- a/vim/after/indent/mail.vim
+++ b/vim/after/indent/mail.vim
@@ -1,2 +1,2 @@
" Use four spaces for indentation
-call indent#spaces(4)
+call indent#Spaces(4)
diff --git a/vim/after/indent/markdown.vim b/vim/after/indent/markdown.vim
index 61f09a1e..bff1b904 100644
--- a/vim/after/indent/markdown.vim
+++ b/vim/after/indent/markdown.vim
@@ -1,2 +1,2 @@
" Use four spaces for indentation
-call indent#spaces(4)
+call indent#Spaces(4)
diff --git a/vim/after/indent/perl.vim b/vim/after/indent/perl.vim
index 61f09a1e..bff1b904 100644
--- a/vim/after/indent/perl.vim
+++ b/vim/after/indent/perl.vim
@@ -1,2 +1,2 @@
" Use four spaces for indentation
-call indent#spaces(4)
+call indent#Spaces(4)
diff --git a/vim/after/indent/php.vim b/vim/after/indent/php.vim
index 61f09a1e..bff1b904 100644
--- a/vim/after/indent/php.vim
+++ b/vim/after/indent/php.vim
@@ -1,2 +1,2 @@
" Use four spaces for indentation
-call indent#spaces(4)
+call indent#Spaces(4)
diff --git a/vim/after/indent/sh.vim b/vim/after/indent/sh.vim
index 61f09a1e..bff1b904 100644
--- a/vim/after/indent/sh.vim
+++ b/vim/after/indent/sh.vim
@@ -1,2 +1,2 @@
" Use four spaces for indentation
-call indent#spaces(4)
+call indent#Spaces(4)
diff --git a/vim/after/indent/vim.vim b/vim/after/indent/vim.vim
index ce99f713..da34eb75 100644
--- a/vim/after/indent/vim.vim
+++ b/vim/after/indent/vim.vim
@@ -1,5 +1,5 @@
" Use two (not four!) spaces for indentation, per convention
-call indent#spaces(2)
+call indent#Spaces(2)
" Remove inapplicable defaults from 'indentkeys'; we should only need to undo
" this if the stock plugin didn't already arrange that (before v7.3.539)
diff --git a/vim/autoload/indent.vim b/vim/autoload/indent.vim
index 77403658..d597653f 100644
--- a/vim/autoload/indent.vim
+++ b/vim/autoload/indent.vim
@@ -1,5 +1,5 @@
" Set the current buffer to space indent
-function! indent#spaces(...) abort
+function! indent#Spaces(...) abort
setlocal expandtab
" If an argument was provided, use that for the number of spaces; otherwise,
@@ -14,19 +14,19 @@ function! indent#spaces(...) abort
\ ? -1
\ : &l:shiftwidth
- call indent#undo()
+ call indent#Undo()
endfunction
" Set the current buffer to tab indent
-function! indent#tabs() abort
+function! indent#Tabs() abort
setlocal noexpandtab
setlocal shiftwidth< softtabstop<
- call indent#undo()
+ call indent#Undo()
endfunction
" Add commands to b:undo_indent to clean up buffer-local indentation changes
" on a change of filetype
-function! indent#undo() abort
+function! indent#Undo() abort
" Check and set a flag so that we only do this once per buffer
if exists('b:undo_indent_type_set')