diff options
Diffstat (limited to 'bundle/whitespace-method-chain/plugin')
-rw-r--r-- | bundle/whitespace-method-chain/plugin/whitespace_method_chain.vim | 12 |
1 files changed, 0 insertions, 12 deletions
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 |