From 050224c177b0b8d9637ce17f2b971f4f295be346 Mon Sep 17 00:00:00 2001 From: Benjamin Kyd Date: Tue, 23 May 2023 18:44:33 +0100 Subject: [PATCH] thats cool --- common/.vimrc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/common/.vimrc b/common/.vimrc index 1c010a4..08b2bad 100644 --- a/common/.vimrc +++ b/common/.vimrc @@ -60,6 +60,20 @@ set splitright set completeopt=menu,menuone,preview,noinsert,noselect set guicursor=a:block,i:ver20,v-r:hor20 +" The epico quickfix list +packadd cfilter +function! RemoveQFItem() + let curqfidx = line('.') - 1 + let qfall = getqflist() + call remove(qfall, curqfidx) + call setqflist(qfall, 'r') + execute curqfidx + 1 . "cfirst" + :copen +endfunction +:command! RemoveQFItem :call RemoveQFItem() +" Use map to only map dd in the quickfix window. Requires +localmap +autocmd FileType qf map dd :RemoveQFItem + " The holy leader key let g:mapleader="," map