Browse Source

adding features

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

+ 1
- 2
plugin/makecols.vim View File

@ -33,7 +33,6 @@ function! s:convert_selection(selection)
let c = 0 let c = 0
let selection = a:selection let selection = a:selection
let old_selection = split(selection, ",") let old_selection = split(selection, ",")
let no_of_cols = 6
let new_string = "" let new_string = ""
let @z = "" let @z = ""
@ -47,7 +46,7 @@ function! s:convert_selection(selection)
" If first selected line " If first selected line
let new_string = join([new_string, i], "") let new_string = join([new_string, i], "")
else else
if (c % no_of_cols)
if (c % g:makecols_cols)
" If regular column " If regular column
let new_string = join([new_string, i], "\t") let new_string = join([new_string, i], "\t")
else else

Loading…
Cancel
Save