document the clipboard mapping and set the leader to ',' (backslash unreachable on spanish keyboards)
Generated by Mistral Vibe.
This commit is contained in:
+12
-1
@@ -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>
|
||||||
|
|
||||||
" ---------------------------------------------------------------------
|
" ---------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user