From 10a7bb10faec636f8aa5c06ea086ddbad01665d3 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 4 May 2017 22:14:47 +0200 Subject: Rename 'whitespace-chain' to 'whitespace-method-chain' Give the plugin a clearer name. --- bundle/whitespace-chain/plugin/whitespace_chain.vim | 12 ------------ .../plugin/whitespace_method_chain.vim | 12 ++++++++++++ 2 files changed, 12 insertions(+), 12 deletions(-) delete mode 100644 bundle/whitespace-chain/plugin/whitespace_chain.vim create mode 100644 bundle/whitespace-method-chain/plugin/whitespace_method_chain.vim (limited to 'bundle') diff --git a/bundle/whitespace-chain/plugin/whitespace_chain.vim b/bundle/whitespace-chain/plugin/whitespace_chain.vim deleted file mode 100644 index 5ba523d..0000000 --- a/bundle/whitespace-chain/plugin/whitespace_chain.vim +++ /dev/null @@ -1,12 +0,0 @@ -function! SplitMethodChainToMultipleLines() - normal! m` - - let line = getline('.') - let indent = matchstr(line, '\v^\s+') - - " Replace '.' with newlines and the correct amount of indentation - substitute/\V./\=' ' . indent . '.'/g - - " Indent new lines - '`+1,.> -endfunction diff --git a/bundle/whitespace-method-chain/plugin/whitespace_method_chain.vim b/bundle/whitespace-method-chain/plugin/whitespace_method_chain.vim new file mode 100644 index 0000000..5ba523d --- /dev/null +++ b/bundle/whitespace-method-chain/plugin/whitespace_method_chain.vim @@ -0,0 +1,12 @@ +function! SplitMethodChainToMultipleLines() + normal! m` + + let line = getline('.') + let indent = matchstr(line, '\v^\s+') + + " Replace '.' with newlines and the correct amount of indentation + substitute/\V./\=' ' . indent . '.'/g + + " Indent new lines + '`+1,.> +endfunction -- cgit v1.2.3