Browse Source

adding features

master
lolson 9 years ago
parent
commit
b87f42190e
1 changed files with 1 additions and 17 deletions
  1. +1
    -17
      plugin/makecols.vim

+ 1
- 17
plugin/makecols.vim View File

@ -80,25 +80,9 @@ function! s:convert_selection_vert()
let rows = float2nr(ceil(rows))
let @z = ""
let r = 1
" For Loopage Goes here
for i in old_selection
if (c == 0)
" If first selected line
" let new_string = join([new_string, i], "")
let new_string = i
else
if (r == rows)
" If end of row
let new_string = join([new_string, i], "\n")
let r = 0
else
" If regular column
let new_string = join([new_string, i], "\t")
endif
let r += 1
endif
let c += 1
echom i
endfor
return join([new_string, ""], "\n")

Loading…
Cancel
Save