From ed4b5f69144ee6f93e0c7059b3676c230cbce581 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 19 Nov 2021 22:28:06 +0900 Subject: vim: make vim XDG-Base-Directory-aware --- .vim/my/after/ftplugin/qf.vim | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 .vim/my/after/ftplugin/qf.vim (limited to '.vim/my/after/ftplugin/qf.vim') diff --git a/.vim/my/after/ftplugin/qf.vim b/.vim/my/after/ftplugin/qf.vim deleted file mode 100644 index 364759c..0000000 --- a/.vim/my/after/ftplugin/qf.vim +++ /dev/null @@ -1,40 +0,0 @@ -scriptencoding utf-8 - - -if exists('b:did_ftplugin_qf_after') - finish -endif - - - -nnoremap p zzp -nnoremap dd :call del_entry() -xnoremap d :call del_entry() -nnoremap u :call undo_entry() - - -if exists('*s:undo_entry') - finish -endif - - -function! s:undo_entry() - let history = get(w:, 'qf_history', []) - if !empty(history) - call setqflist(remove(history, -1), 'r') - endif -endfunction - -function! s:del_entry() range - let qf = getqflist() - let history = get(w:, 'qf_history', []) - call add(history, copy(qf)) - let w:qf_history = history - unlet! qf[a:firstline - 1 : a:lastline - 1] - call setqflist(qf, 'r') - execute a:firstline -endfunction - - - -let b:did_ftplugin_qf_after = 1 -- cgit v1.2.3-70-g09d2