Browse Source

adding features

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

+ 13
- 14
plugin/makecols.vim View File

@ -82,23 +82,22 @@ function! s:convert_selection_vert()
let r = 1 let r = 1
" For Loopage Goes here " For Loopage Goes here
for i in old_selection for i in old_selection
if (c == 0)
" If first selected line
" let new_string = join([new_string, i], "")
let new_string = i
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 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
" If regular column
let new_string = join([new_string, i], "\t")
endif endif
let c += 1
let r += 1
endif endif
let c += 1
endfor endfor
return join([new_string, ""], "\n") return join([new_string, ""], "\n")

Loading…
Cancel
Save