~gpanders/dotfiles

cd4a63bff65173ab61aa22386daa0577c2bb6b2f — Greg Anders 2 years ago e56f68b
Add vimwiki
4 files changed, 11 insertions(+), 1 deletions(-)

M vim/.gitignore
M vim/.vim/plugin/minpac.vim
A vim/.vim/plugin/vimwiki.vim
M vim/.vim/vimrc
M vim/.gitignore => vim/.gitignore +1 -1
@@ 1,5 1,5 @@
.vim/.netrwhist
.vim/plug
.vim/wiki
.vim/session
.vim/pack/*
!.vim/pack/minpac/opt/minpac

M vim/.vim/plugin/minpac.vim => vim/.vim/plugin/minpac.vim +1 -0
@@ 22,6 22,7 @@ function! s:PackInit()
    call minpac#add('ludovicchabant/vim-gutentags')
    call minpac#add('mhinz/vim-startify')
    call minpac#add('jpalardy/vim-slime')
    call minpac#add('vimwiki/vimwiki')
    " call minpac#add('davidhalter/jedi-vim')
    call minpac#add('romainl/vim-qf')


A vim/.vim/plugin/vimwiki.vim => vim/.vim/plugin/vimwiki.vim +6 -0
@@ 0,0 1,6 @@
let g:vimwiki_map_prefix = '<Bslash>w'
if g:os ==# 'Windows'
  let g:vimwiki_path = $HOME . '\vimfiles\wiki\'
else
  let g:vimwiki_path = $HOME . '/.vim/wiki/'
endif

M vim/.vim/vimrc => vim/.vim/vimrc +3 -0
@@ 402,6 402,8 @@ if exists(':tmap')
endif
" }}}

" Grep {{{

" Use ripgrep or ag as grepprg if available
if executable('rg')
  " Use rg over grep


@@ 415,6 417,7 @@ endif
" Define a custom command to wrap :grep with :silent, :copen, and :redraw
command! -nargs=+ -complete=file -bar -bang Grep silent! botright grep<bang> <args>|cwindow|redraw!
nnoremap <C-K> :Grep!<space>
" }}}

" Pushing built-in commands beyond their limits {{{
" https://gist.github.com/Konfekt/d8ce5626a48f4e56ecab31a89449f1f0