Browse Source

testing

master
lolson 9 years ago
parent
commit
005cffdf15
1 changed files with 7 additions and 3 deletions
  1. +7
    -3
      plugin/makecols.vim

+ 7
- 3
plugin/makecols.vim View File

@ -21,10 +21,14 @@ function! s:get_visual_selection()
for i in lines
" start combining
if (i % no_of_cols)
let new_string = join([new_string, lines[i]], "\t")
if (i == 0)
let new_string = lines[0]
else
let new_string = join([new_string, "\n"])
if (i % no_of_cols)
let new_string = join([new_string, lines[i]], "\t")
else
let new_string = join([new_string, lines[i]], "\n")
endif
endif
endfor

Loading…
Cancel
Save