From 619229b8e162d5f1beced7e37999a77a9128851a Mon Sep 17 00:00:00 2001 From: lolson Date: Fri, 10 Jul 2015 13:03:20 -0500 Subject: [PATCH] testing --- plugin/makecols.vim | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/plugin/makecols.vim b/plugin/makecols.vim index c1ea5d9..b1cf572 100644 --- a/plugin/makecols.vim +++ b/plugin/makecols.vim @@ -10,17 +10,18 @@ endfunction function! s:get_visual_selection() let [lnum1, col1] = getpos("'<")[1:2] let [lnum2, col2] = getpos("'>")[1:2] - let no_of_lines = lnum2 - lnum1 - let no_of_cols = 6 + " let no_of_lines = lnum2 - lnum1 let lines = getline(lnum1, lnum2) - let lines[-1] = lines[-1][: col2 - (&selection == 'inclusive' ? 1 : 2)] - let lines[0] = lines[0][col1 - 1:] execute lnum1 . "," . lnum2 . "delete" + " let lines[-1] = lines[-1][: col2 - (&selection == 'inclusive' ? 1 : 2)] + " let lines[0] = lines[0][col1 - 1:] - let new_string = "" let c = 0 - for i in no_of_lines + let no_of_cols = 6 + let new_string = "" + + for i in lines " start combining if (c == 0) let new_string = lines[i]