Browse Source

testing

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

+ 2
- 2
plugin/makecols.vim View File

@ -13,13 +13,13 @@ function! s:get_visual_selection()
let lines = getline(lnum1, lnum2) let lines = getline(lnum1, lnum2)
let lines[-1] = lines[-1][: col2 - (&selection == 'inclusive' ? 1 : 2)] let lines[-1] = lines[-1][: col2 - (&selection == 'inclusive' ? 1 : 2)]
let lines[0] = lines[0][col1 - 1:] let lines[0] = lines[0][col1 - 1:]
let @* = join(lines, ", ")
execute lnum1 . "," . lnum2 . "delete" execute lnum1 . "," . lnum2 . "delete"
let @a = join(lines, ", ")
return lines return lines
endfunction endfunction
function! s:replace_selected_text() function! s:replace_selected_text()
normal! \"*p
execute "normal! \"ap"
echo "Just tried to replace the selection with the lines." echo "Just tried to replace the selection with the lines."
return "" return ""
endfunction endfunction

Loading…
Cancel
Save