diff --git a/.gitmodules b/.gitmodules index 124a010..9c1213a 100644 --- a/.gitmodules +++ b/.gitmodules @@ -25,3 +25,6 @@ [submodule "pack/plugins/start/i3config.vim"] path = pack/plugins/start/i3config.vim url = https://github.com/mboughaba/i3config.vim.git +[submodule "pack/plugins/start/vim-grepper"] + path = pack/plugins/start/vim-grepper + url = https://github.com/mhinz/vim-grepper.git diff --git a/init.vim b/init.vim index 7e9cf48..7ec8c70 100644 --- a/init.vim +++ b/init.vim @@ -67,6 +67,9 @@ noremap :let @/ = "" " Use "," as leader let mapleader = "," +" Git grep with Leader g +nnoremap g :Grepper -tool git + " Switch between Windows with: Leader w nnoremap w diff --git a/pack/plugins/start/vim-grepper b/pack/plugins/start/vim-grepper new file mode 160000 index 0000000..9b62e6b --- /dev/null +++ b/pack/plugins/start/vim-grepper @@ -0,0 +1 @@ +Subproject commit 9b62e6bdd9de9fe027363bbde68e9e32d937cfa0