From 1d54fde5aa390d3dc2a1d1f4f4c6a9fd2622c005 Mon Sep 17 00:00:00 2001 From: claw0ry Date: Tue, 21 Jan 2025 16:00:06 +0100 Subject: vim: keybinding for copying filename --- .vimrc | 3 +++ 1 file changed, 3 insertions(+) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index 72022b6..0730119 100644 --- a/.vimrc +++ b/.vimrc @@ -129,6 +129,9 @@ nnoremap pv :Ex " copy the whole file nnoremap a :%y+ +" copy filename +nnoremap aa :let @+ = expand("%") + " move visual line(s) up and down vnoremap J :m '>+1gv=gv vnoremap K :m '<-2gv=gv -- cgit v1.2.3