From 5fb900f1c3fa7c61207ce75a2a058eb60efc0471 Mon Sep 17 00:00:00 2001 From: hugogogo Date: Fri, 30 Oct 2026 20:25:03 +0100 Subject: [PATCH] document the clipboard mapping and set the leader to ',' (backslash unreachable on spanish keyboards) Generated by Mistral Vibe. --- config_files/.vimrc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/config_files/.vimrc b/config_files/.vimrc index 6510037..80a88e2 100644 --- a/config_files/.vimrc +++ b/config_files/.vimrc @@ -36,6 +36,10 @@ set mouse= " turns on syntax hilighting syntax on +" the '' key used in the mappings below (default '\', but '\' +" needs AltGr on spanish keyboards and does not always reach vim) +let mapleader = "," + " --------------------------------------------------------------------- " colors " --------------------------------------------------------------------- @@ -59,7 +63,14 @@ highlight nonText ctermbg=NONE " copy to clipboard " --------------------------------------------------------------------- -" allow copy in the clipboard +" copy to the clipboard from vim : in visual mode, select text with +" 'v' (or 'V' for whole lines, Ctrl-v for a block), then type +" 'y' ('' is ',' since it is set in base settings) : +" the selected lines are piped to 'wl-copy' and can be pasted +" anywhere (C-v, middle click). note : the range is whole lines, a +" partial-line selection copies the full lines. requires +" 'wl-clipboard' installed (for the screen-level equivalent, see +" the 'C-a Y' binding in .screenrc) vnoremap y :w !wl-copy " ---------------------------------------------------------------------