added shortcuts for fzf
This commit is contained in:
parent
9d09644b38
commit
f2ce40fa9a
|
@ -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
|
27
vim/.vimrc
27
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 <silent> <Leader>b :Buffers<CR>
|
||||
nnoremap <silent> <C-f> :Files<CR>
|
||||
nnoremap <silent> <Leader>f :Rg<CR>
|
||||
nnoremap <silent> <Leader>/ :BLines<CR>
|
||||
nnoremap <silent> <Leader>' :Marks<CR>
|
||||
nnoremap <silent> <Leader>g :Commits<CR>
|
||||
nnoremap <silent> <Leader>H :Helptags<CR>
|
||||
nnoremap <silent> <Leader>hh :History<CR>
|
||||
nnoremap <silent> <Leader>h: :History:<CR>
|
||||
nnoremap <silent> <Leader>h/ :History/<CR>
|
||||
|
||||
" 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'] }
|
||||
|
|
Loading…
Reference in New Issue