Permalink
Browse files

Normal blockwise pasting

  • Loading branch information...
AndrewRadev committed Nov 24, 2012
1 parent 0411017 commit ad7417ca5ab7df065120f10baf2bde035fb85209
Showing with 7 additions and 0 deletions.
  1. +7 −0 autoload/whitespaste.vim
View
@@ -7,6 +7,8 @@ function! whitespaste#Paste(normal_command, visual)
call whitespaste#PasteLinewise(a:normal_command)
elseif getregtype() == 'v'
call whitespaste#PasteCharwise(a:normal_command)
+ else
+ call whitespaste#PasteBlockwise(a:normal_command)
endif
endfunction
@@ -105,6 +107,11 @@ function! whitespaste#PasteCharwise(normal_command)
exe 'normal! '.a:normal_command
endfunction
+" For now, just works like a normal "paste"
+function! whitespaste#PasteBlockwise(normal_command)
+ exe 'normal! '.a:normal_command
+endfunction
+
function! whitespaste#CompressBlankLines(start, end, line_count)
let [start, end, line_count] = [a:start, a:end, a:line_count]
let existing_line_count = (end - start) - 1

0 comments on commit ad7417c

Please sign in to comment.