From 1c2a58930e368b101e5aae39f469aea0a0f9920d Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 4 May 2017 22:17:38 +0200 Subject: whitespace-method-chain: Move function to autoload Don't force the function to load on startup. --- .../plugin/whitespace_method_chain.vim | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 bundle/whitespace-method-chain/plugin/whitespace_method_chain.vim (limited to 'bundle/whitespace-method-chain/plugin/whitespace_method_chain.vim') diff --git a/bundle/whitespace-method-chain/plugin/whitespace_method_chain.vim b/bundle/whitespace-method-chain/plugin/whitespace_method_chain.vim deleted file mode 100644 index 5ba523d..0000000 --- a/bundle/whitespace-method-chain/plugin/whitespace_method_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 -- cgit v1.2.3