aboutsummaryrefslogtreecommitdiff
path: root/.vim
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-04-13 10:38:22 +0800
committerGuangxiong Lin <[email protected]>2022-04-13 10:38:22 +0800
commitb258258e84d3111248f7bff311660192b766119a (patch)
tree5c3f14a99eb3a8357eb7cf202ea999143631c698 /.vim
parentb8f377c303c04acdd793eb4f13777c0347146f72 (diff)
downloaddotfiles-b258258e84d3111248f7bff311660192b766119a.tar.gz
dotfiles-b258258e84d3111248f7bff311660192b766119a.tar.bz2
dotfiles-b258258e84d3111248f7bff311660192b766119a.zip
Add quickfix plugin in vim
Diffstat (limited to '.vim')
-rw-r--r--.vim/after/ftplugin/qf.vim2
-rw-r--r--.vim/after/plugin/minpac.vim1
-rw-r--r--.vim/after/plugin/qf.vim3
3 files changed, 6 insertions, 0 deletions
diff --git a/.vim/after/ftplugin/qf.vim b/.vim/after/ftplugin/qf.vim
new file mode 100644
index 0000000..85be735
--- /dev/null
+++ b/.vim/after/ftplugin/qf.vim
@@ -0,0 +1,2 @@
+nmap <buffer> [[ <Plug>(qf_older)
+nmap <buffer> ]] <Plug>(qf_newer)
diff --git a/.vim/after/plugin/minpac.vim b/.vim/after/plugin/minpac.vim
index 54487e5..b82814b 100644
--- a/.vim/after/plugin/minpac.vim
+++ b/.vim/after/plugin/minpac.vim
@@ -32,6 +32,7 @@ function! InitMinpac() abort
call minpac#add('https://github.com/editorconfig/editorconfig-vim.git')
call minpac#add('https://github.com/dhruvasagar/vim-table-mode.git')
call minpac#add('https://github.com/junegunn/vim-easy-align')
+ call minpac#add('https://github.com/romainl/vim-qf.git')
call minpac#add('https://github.com/tpope/vim-commentary')
call minpac#add('https://github.com/tpope/vim-eunuch.git')
diff --git a/.vim/after/plugin/qf.vim b/.vim/after/plugin/qf.vim
new file mode 100644
index 0000000..dbe2700
--- /dev/null
+++ b/.vim/after/plugin/qf.vim
@@ -0,0 +1,3 @@
+let g:qf_mapping_ack_style = 1
+let g:qf_auto_open_quickfix= 1
+let g:qf_auto_open_loclist = 1