1 2 3 4
function! copy#Copy(start_line, end_line) silent execute a:start_line . ',' . a:end_line . 'y' silent call system('pbcopy', getreg('@')) endfunction