Love Tig? Me too!
Love Vim? OMG we're totes the same!
So here's a simple plugin to make calling tig in vim easy peasy.
Neovim. This plugin uses Neovim's built in terminal; therefore it will crash and burn on classic Vim. Classic support may be added if either
- enough people want it
- I go back to classic Vim
- someone else does it :)
Use your favourite plugin manager.
Simply run :Tig
or bind a key to it, e.g.:
map <C-G> :Tig<Cr>
Pass tig commands:
:Tig show
Show commit log of current file:
:Tig!
Tig executable: let g:tig_executable = 'tig'
Tig command to run: let g:tig_default_command = 'status'
Vim command to run on tig exit: let g:tig_on_exit = 'bw!'
Vim command before opening terminal: let g:tig_open_command = 'enew'
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Additional thanks to Mizuchi for vim-ranger which was used as a reference.