diff options
| author | nsfisis <nsfisis@gmail.com> | 2021-11-27 22:36:31 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2021-11-27 22:38:54 +0900 |
| commit | 74b4e5aac83250759a6246216c2c361bab653a5b (patch) | |
| tree | efacb5bd25b228935f757587df9ef8ed07477c0a /.config/nvim/my/after/ftplugin/qf.vim | |
| parent | 4a5ce361a1f435ae6e9b7cacb1e70a9da1bb80e2 (diff) | |
| download | dotfiles-74b4e5aac83250759a6246216c2c361bab653a5b.tar.gz dotfiles-74b4e5aac83250759a6246216c2c361bab653a5b.tar.zst dotfiles-74b4e5aac83250759a6246216c2c361bab653a5b.zip | |
neovim: move my plugin directories
Diffstat (limited to '.config/nvim/my/after/ftplugin/qf.vim')
| -rw-r--r-- | .config/nvim/my/after/ftplugin/qf.vim | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/.config/nvim/my/after/ftplugin/qf.vim b/.config/nvim/my/after/ftplugin/qf.vim deleted file mode 100644 index 364759c..0000000 --- a/.config/nvim/my/after/ftplugin/qf.vim +++ /dev/null @@ -1,40 +0,0 @@ -scriptencoding utf-8 - - -if exists('b:did_ftplugin_qf_after') - finish -endif - - - -nnoremap <buffer> p <Return>zz<C-w>p -nnoremap <silent> <buffer> dd :call <SID>del_entry()<Return> -xnoremap <silent> <buffer> d :call <SID>del_entry()<Return> -nnoremap <silent> <buffer> u :<C-u>call <SID>undo_entry()<Return> - - -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 |
