aboutsummaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorChris Toomey2014-02-17 14:26:23 -0500
committerChris Toomey2014-02-17 14:26:23 -0500
commitb72b05e853322297f6ecda523fef55c5d3899595 (patch)
treea5019a806ed150582da3d163b1526f295ec4e623 /plugin
parent37e585fc59f174706817ebf2e821c5080716cf24 (diff)
downloadvim-system-copy-b72b05e853322297f6ecda523fef55c5d3899595.tar.bz2
Add SystemCopyLine support
Diffstat (limited to 'plugin')
-rw-r--r--plugin/system_copy.vim1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin/system_copy.vim b/plugin/system_copy.vim
index 98b7d0b..11beee6 100644
--- a/plugin/system_copy.vim
+++ b/plugin/system_copy.vim
@@ -38,6 +38,7 @@ endfunction
xnoremap <silent> <Plug>SystemCopy :<C-U>call <SID>system_copy(visualmode(),visualmode() ==# 'V' ? 1 : 0)<CR>
nnoremap <silent> <Plug>SystemCopy :<C-U>set opfunc=<SID>system_copy<CR>g@
+nnoremap <silent> <Plug>SystemCopyLine :<C-U>set opfunc=<SID>system_copy<Bar>exe 'norm! 'v:count1.'g@_'<CR>
if !hasmapto('<Plug>SystemCopy') || maparg('cp','n') ==# ''
xmap cp <Plug>SystemCopy