Browse Source

adding features

master
lolson 9 years ago
parent
commit
4ca7761f37
1 changed files with 15 additions and 11 deletions
  1. +15
    -11
      plugin/makecols.vim

+ 15
- 11
plugin/makecols.vim View File

@ -80,18 +80,22 @@ function! s:convert_selection_vert()
let rows = float2nr(ceil(rows))
let @z = ""
while c <= rows
echom "Count: " . c
endwhile
" For Loopage Goes here
let a = rows
for i in old_selection
if (c >= rows)
break
endif
let char1 = get(old_selection, c, "")
let char2 = get(old_selection, a, "")
echo join([char1, char2], "\t")
let a += 1
let c += 1
endfor
" let a = rows
" for i in old_selection
" if (c >= rows)
" break
" endif
" let char1 = get(old_selection, c, "")
" let char2 = get(old_selection, a, "")
" echo join([char1, char2], "\t")
" let a += 1
" let c += 1
" endfor
return join([new_string, ""], "\n")
endfunction

Loading…
Cancel
Save