From aad4a043da693ee423a2e458fdd42d6130f6dc7c Mon Sep 17 00:00:00 2001 From: He4eT Date: Sun, 5 Feb 2023 00:49:25 +0300 Subject: [PATCH] vim: unified copy mapings --- root/.vimrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/root/.vimrc b/root/.vimrc index 677f1c1..9404d99 100644 --- a/root/.vimrc +++ b/root/.vimrc @@ -14,6 +14,9 @@ set tabstop=2 set shiftwidth=2 + let mapleader = ' ' + nnoremap + filetype plugin indent on """ Plugins @@ -65,10 +68,12 @@ let g:airline_section_x = airline#section#create(['%l:%v']) let g:airline_section_y = airline#section#create(['']) let g:airline_section_z = airline#section#create(['%p%%']) + let g:airline#extensions#whitespace#enabled = 1 set laststatus=2 set noshowmode """ Copy'n'paste - nnoremap :call system('xclip -i -selection clipboard', @@) + nnoremap y :call system('xclip -i -selection clipboard', @@) + vnoremap y y:call system('xclip -i -selection clipboard', @@)