summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaoaki Ueda <uedan@solutionware.jp>2020-04-01 11:11:26 +0900
committerNaoaki Ueda <uedan@solutionware.jp>2020-04-01 11:11:26 +0900
commitf1647125f1880e5f86296908818f0ae5b19c7c39 (patch)
tree10d48fd21ffd6a5317070f45da98343375c72657
parent81e5fedd10c989ef70673547c329d149fa7baaec (diff)
downloadvimrc-f1647125f1880e5f86296908818f0ae5b19c7c39.tar.gz
vimrc-f1647125f1880e5f86296908818f0ae5b19c7c39.tar.bz2
vimrc-f1647125f1880e5f86296908818f0ae5b19c7c39.zip
Fix some config for grep.
-rw-r--r--_config/001-grep.vim4
-rw-r--r--_config/400-memolist.vim2
2 files changed, 5 insertions, 1 deletions
diff --git a/_config/001-grep.vim b/_config/001-grep.vim
new file mode 100644
index 0000000..c4bf687
--- /dev/null
+++ b/_config/001-grep.vim
@@ -0,0 +1,4 @@
+if executable('rg')
+ set grepprg=rg\ --vimgrep\ --no-heading
+ set grepformat=%f:%l:%c:%m,%f:%l:%m
+endif
diff --git a/_config/400-memolist.vim b/_config/400-memolist.vim
index 2f97e16..ca51c96 100644
--- a/_config/400-memolist.vim
+++ b/_config/400-memolist.vim
@@ -10,6 +10,6 @@ nnoremap <Leader>mg :MemoGrep<CR>
let g:memolist_memo_suffix = "md"
let g:memolist_memo_date = "%Y-%m-%d %H:%M"
-let g:memolist_qfixgrep = 1
+let g:memolist_qfixgrep = 0
let g:memolist_fzf = 1
let g:memolist_template_dir_path = $HOME . '/.config/memo/template'