This commit is contained in:
Christian Nieves
2022-06-10 20:29:24 +00:00
parent d971bdd35c
commit 6dcdafa889
5 changed files with 49 additions and 35 deletions

View File

@ -83,18 +83,14 @@ nnoremap <leader><space> :nohlsearch<CR>
" --------- CLIPBOARD MAPPINGS ---------
" Paste from OS clipboard
map <leader>v i<ESC> :r!xclip -o<CR>
vmap <leader>v c<ESC> :r!xclip -o<CR>
imap <leader>v <ESC> :r!xclip -o<CR>
" map <leader>v i<ESC>"+pa<ESC>
" vmap <leader>v c<ESC>"+p<ESC>
" imap <leader>v <ESC>"+pa
"
map <leader>v i<ESC>"+pa<ESC>
vmap <leader>v c<ESC>"+p<ESC>
imap <leader>v <ESC>"+pa
" Copy to OS clipboard
vnoremap <silent><Leader>y "yy <Bar> :call system('xclip', @y)<CR>
" map <leader>y !xclip -selection clipboard
" vmap <leader>y !xclip -selection clipboard<cr>
" vnoremap <silent><Leader>y "yy <Bar> :call system('xclip', @y)<CR>
map <leader>y !xclip -selection clipboard
vmap <leader>y !xclip -selection clipboard<cr>
" map <leader>y "+Y
" vmap <leader>y "+y

View File

@ -20,6 +20,7 @@ Plug 'junegunn/fzf.vim'
Plug 'vim-airline/vim-airline' " ...
Plug 'nathanaelkane/vim-indent-guides'
Plug 'Konfekt/vim-scratchpad'
Plug 'guns/xterm-color-table.vim'
" Plug 'kyazdani42/nvim-web-devicons'
" Plug 'ryanoasis/vim-devicons'

View File

@ -61,7 +61,18 @@ set scrolloff=3 " Minumum lines to keep above and below cursor
" makes sure that when opening, files are normal, i.e. not folded.
set nofoldenable
" set clipboard=unnamed
let g:clipboard = #{
\ name: 'xsel',
\ copy: {
\ '+': ['xclip', '--nodetach', '-i', '-b'],
\ '*': ['xclip', '--nodetach', '-i', '-p'],
\ },
\ paste: {
\ '+': ['xclip', '-o', '-b'],
\ '*': ['xclip', '-o', '-p'],
\ },
\ cache_enabled: 1,
\ }
set shortmess=A
set updatetime=100