From bdb3404ecdc5ff7e46abc0a2b95f396255490cb9 Mon Sep 17 00:00:00 2001 From: claw0ry Date: Mon, 6 Jan 2025 14:05:59 +0100 Subject: vim: keybinding for copying whole file to system clipboard --- .vimrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index fce04da..5434ffa 100644 --- a/.vimrc +++ b/.vimrc @@ -145,8 +145,8 @@ autocmd FocusGained,BufEnter * :checktime " open file explorer nnoremap pv :Ex -" copy the whole file and stay where you are -nnoremap yy ggVGy +" copy the whole file +nnoremap a :%y+ " move visual line(s) up and down vnoremap J :m '>+1gv=gv -- cgit v1.2.3