Browse Source

testing

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

+ 4
- 4
plugin/makecols.vim View File

@ -13,9 +13,9 @@ function! s:get_visual_selection()
let [lnum2, col2] = getpos("'>")[1:2]
execute lnum1 . "," . lnum2 . "delete"
let lines = getline(lnum1, lnum2)
let lines[-1] = lines[-1][: col2 - (&selection == 'inclusive' ? 1 : 2)]
let lines[0] = lines[0][col1 - 1:]
return join(lines, "\n")
" let lines[-1] = lines[-1][: col2 - (&selection == 'inclusive' ? 1 : 2)]
" let lines[0] = lines[0][col1 - 1:]
return join(lines, ",")
endfunction
@ -23,7 +23,7 @@ function! s:convert_selection(selection)
let c = 0
let no_of_cols = 6
let new_string = ""
let old_selection = split(selection, "\n")
let old_selection = split(selection, ",")
echom "Old Selection: "
echom join(old_selection, ", ")
let @z = ""

Loading…
Cancel
Save