|
@ -87,16 +87,15 @@ function! s:convert_selection_vert() |
|
|
let new_string = "" |
|
|
let new_string = "" |
|
|
let row = 0 |
|
|
let row = 0 |
|
|
while row < rows |
|
|
while row < rows |
|
|
|
|
|
echom "ROW: " . row |
|
|
if (row == 0) |
|
|
if (row == 0) |
|
|
let seg = get(old_selection, 0, "blank") |
|
|
|
|
|
let new_string = join([new_string, seg], "") |
|
|
|
|
|
|
|
|
let content = get(old_selection, 0, "blank") |
|
|
|
|
|
let new_string = join([new_string, content], "") |
|
|
endif |
|
|
endif |
|
|
let col = row |
|
|
let col = row |
|
|
echom "Line: " . row |
|
|
|
|
|
echom "R" . row . "C0" |
|
|
|
|
|
while col < cols |
|
|
while col < cols |
|
|
let pos = col + rows |
|
|
let pos = col + rows |
|
|
echom "R" . row . "C" . col |
|
|
|
|
|
|
|
|
echom "ROW: " . row . " COL: " . col . " POS: " . pos |
|
|
let content = get(old_selection, pos, "blank") |
|
|
let content = get(old_selection, pos, "blank") |
|
|
if (col == 0) |
|
|
if (col == 0) |
|
|
let new_string = join([new_string, content], "") |
|
|
let new_string = join([new_string, content], "") |
|
|