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
|
" Fix shift-semicolon to write
|
||||||
noremap ; :
|
noremap ; :
|
||||||
|
|
||||||
|
" Make it easier to use registers
|
||||||
|
nnoremap ' "
|
||||||
|
|
||||||
" I should map these to something useful
|
" I should map these to something useful
|
||||||
inoremap <up> <nop>
|
inoremap <up> <nop>
|
||||||
inoremap <down> <nop>
|
inoremap <down> <nop>
|
||||||
|
@ -131,9 +134,6 @@ noremap <right> <nop>
|
||||||
nnoremap <leader>u viwU
|
nnoremap <leader>u viwU
|
||||||
nnoremap <leader>l viwu
|
nnoremap <leader>l viwu
|
||||||
|
|
||||||
" Pretend ex mode doesn't exist
|
|
||||||
nnoremap Q <nop>
|
|
||||||
|
|
||||||
" Moving lines around
|
" Moving lines around
|
||||||
nnoremap - ddp==
|
nnoremap - ddp==
|
||||||
nnoremap _ :-1d<cr>pk==
|
nnoremap _ :-1d<cr>pk==
|
||||||
|
@ -161,6 +161,18 @@ nnoremap <leader>g :RG<cr>
|
||||||
let g:fzf_vim = {}
|
let g:fzf_vim = {}
|
||||||
let g:fzf_vim.preview_window = []
|
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
|
augroup FZF
|
||||||
autocmd!
|
autocmd!
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue