blob: 3a12dbe4fa59006833b22e6f64e8f4aeca779d65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
vimrc.after_ftplugin('qf', function(conf)
vim.cmd([=[
nnoremap <buffer> p <CR>zz<C-w>p
nnoremap <silent> <buffer> dd :call Qf_del_entry()<CR>
xnoremap <silent> <buffer> d :call Qf_del_entry()<CR>
function! Qf_del_entry() range
let qf = getqflist()
unlet! qf[a:firstline - 1 : a:lastline - 1]
call setqflist(qf, 'r')
execute a:firstline
endfunction
]=])
end)
|