Browse Source

adding features

master
lolson 9 years ago
parent
commit
0a9b6464b7
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      plugin/makecols.vim

+ 6
- 3
plugin/makecols.vim View File

@ -76,9 +76,12 @@ function! s:convert_selection_vert()
let selection = s:get_visual_selection()
let old_selection = split(selection, ",")
let lines = len(old_selection)
let rows = (lines / g:makecols_cols) + 0.5
let rows = float2nr(round(rows))
echom "Rows" . rows
let rows = lines / g:makecols_cols
let actual_rows = float2nr(round(rows))
if (actual_rows != rows)
let actual_rows += 1
endif
echo "Rows " . rows
let @z = ""
" For Loopage Goes here

Loading…
Cancel
Save