aboutsummaryrefslogtreecommitdiffstats
path: root/bundle/copy/autoload
diff options
context:
space:
mode:
Diffstat (limited to 'bundle/copy/autoload')
-rw-r--r--bundle/copy/autoload/copy.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/bundle/copy/autoload/copy.vim b/bundle/copy/autoload/copy.vim
new file mode 100644
index 0000000..c71c6d6
--- /dev/null
+++ b/bundle/copy/autoload/copy.vim
@@ -0,0 +1,4 @@
+function! copy#Copy(start_line, end_line)
+ silent execute a:start_line . ',' . a:end_line . 'y'
+ silent call system('pbcopy', getreg('@'))
+endfunction