When I run git log
, what exactly is the editor git log
is using?
Also:
vim
as my default editor for git log
?git log | grep bla
.The git log
command pipes it's output by default into a pager, not an editor. This pager is usually less
or more
on most systems. You can change the default pager to vim
with the command:
git config --global core.pager 'vim -'
Now you can search using vim
functionality with /
as usual.