From 1148b0042b17db0fd7555d156b83798aa1fe43f1 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 21 Dec 2019 14:34:05 +1300 Subject: Fix up capitalization patterns for indent autoload --- vim/after/indent/awk.vim | 2 +- vim/after/indent/css.vim | 2 +- vim/after/indent/html.vim | 2 +- vim/after/indent/javascript.vim | 2 +- vim/after/indent/mail.vim | 2 +- vim/after/indent/markdown.vim | 2 +- vim/after/indent/perl.vim | 2 +- vim/after/indent/php.vim | 2 +- vim/after/indent/sh.vim | 2 +- vim/after/indent/vim.vim | 2 +- vim/autoload/indent.vim | 10 +++++----- 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') -- cgit v1.2.3