diff --git a/vim/.vim/plugin/yank.vim b/vim/.vim/plugin/yank.vim new file mode 100644 index 0000000..523c4be --- /dev/null +++ b/vim/.vim/plugin/yank.vim @@ -0,0 +1,12 @@ +" function Osc52Yank() +" let buffer=system('base64', @0) +" let buffer=substitute(buffer, "\n", "", "") +" let buffer='\e]52;c;'.buffer.'\e\' +" silent execute "!echo -ne".shellescape(buffer). +" \ " > ".shellescape('/dev/tty') +" endfunction + +" augroup Yank +" autocmd! +" autocmd TextYankPost * if v:event.operator ==# 'y' | call Osc52Yank() | endif +" augroup END diff --git a/vim/.vimrc b/vim/.vimrc index 1f59eb7..309818c 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -7,6 +7,7 @@ filetype plugin on set tabstop=4 shiftwidth=4 autoindent smartindent expandtab set mouse=v set ttymouse=xterm +let mapleader="," """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " @@ -309,4 +310,30 @@ silent! helptags vim-gitgutter/doc """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" set rtp+=$HOME/.fzf +nnoremap b :Buffers nnoremap :Files +nnoremap f :Rg +nnoremap / :BLines +nnoremap ' :Marks +nnoremap g :Commits +nnoremap H :Helptags +nnoremap hh :History +nnoremap h: :History: +nnoremap h/ :History/ + +" Customize fzf colors to match your color scheme +" - fzf#wrap translates this to a set of `--color` options +let g:fzf_colors = +\ { 'fg': ['fg', 'Normal'], + \ 'bg': ['bg', 'Normal'], + \ 'hl': ['fg', 'Comment'], + \ 'fg+': ['fg', 'CursorLine', 'CursorColumn', 'Normal'], + \ 'bg+': ['bg', 'CursorLine', 'CursorColumn'], + \ 'hl+': ['fg', 'Statement'], + \ 'info': ['fg', 'PreProc'], + \ 'border': ['fg', 'Ignore'], + \ 'prompt': ['fg', 'Conditional'], + \ 'pointer': ['fg', 'Exception'], + \ 'marker': ['fg', 'Keyword'], + \ 'spinner': ['fg', 'Label'], + \ 'header': ['fg', 'Comment'] }