document the clipboard mapping and set the leader to ',' (backslash unreachable on spanish keyboards)

Generated by Mistral Vibe.
This commit is contained in:
hugogogo
2026-10-30 20:25:03 +01:00
parent efab1898d4
commit 5fb900f1c3
+12 -1
View File
@@ -36,6 +36,10 @@ set mouse=
" turns on syntax hilighting " turns on syntax hilighting
syntax on syntax on
" the '<leader>' key used in the mappings below (default '\', but '\'
" needs AltGr on spanish keyboards and does not always reach vim)
let mapleader = ","
" --------------------------------------------------------------------- " ---------------------------------------------------------------------
" colors " colors
" --------------------------------------------------------------------- " ---------------------------------------------------------------------
@@ -59,7 +63,14 @@ highlight nonText ctermbg=NONE
" copy to clipboard " 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
" '<leader>y' ('<leader>' 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 <leader>y :w !wl-copy<CR><CR> vnoremap <leader>y :w !wl-copy<CR><CR>
" --------------------------------------------------------------------- " ---------------------------------------------------------------------