We use quickfix and registers now. I\'m a real vim expert
This commit is contained in:
parent
8c5c98d853
commit
4c429d254e
1 changed files with 15 additions and 3 deletions
|
@ -117,6 +117,9 @@ nnoremap <leader><leader> <c-^>
|
|||
" Fix shift-semicolon to write
|
||||
noremap ; :
|
||||
|
||||
" Make it easier to use registers
|
||||
nnoremap ' "
|
||||
|
||||
" I should map these to something useful
|
||||
inoremap <up> <nop>
|
||||
inoremap <down> <nop>
|
||||
|
@ -131,9 +134,6 @@ noremap <right> <nop>
|
|||
nnoremap <leader>u viwU
|
||||
nnoremap <leader>l viwu
|
||||
|
||||
" Pretend ex mode doesn't exist
|
||||
nnoremap Q <nop>
|
||||
|
||||
" Moving lines around
|
||||
nnoremap - ddp==
|
||||
nnoremap _ :-1d<cr>pk==
|
||||
|
@ -161,6 +161,18 @@ nnoremap <leader>g :RG<cr>
|
|||
let g:fzf_vim = {}
|
||||
let g:fzf_vim.preview_window = []
|
||||
|
||||
function! s:build_quickfix_list(lines)
|
||||
call setqflist(map(copy(a:lines), '{ "filename": v:val, "lnum": 1 }'))
|
||||
copen
|
||||
cc
|
||||
endfunction
|
||||
|
||||
let g:fzf_action = {
|
||||
\ 'ctrl-q': function('s:build_quickfix_list'),
|
||||
\ 'ctrl-t': 'tab split',
|
||||
\ 'ctrl-x': 'split',
|
||||
\ 'ctrl-v': 'vsplit' }
|
||||
|
||||
augroup FZF
|
||||
autocmd!
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue