Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/codeindulgence/vim-tig
Do a tig in your vim
https://github.com/codeindulgence/vim-tig
Last synced: 2 months ago
JSON representation
Do a tig in your vim
- Host: GitHub
- URL: https://github.com/codeindulgence/vim-tig
- Owner: codeindulgence
- License: mit
- Created: 2016-03-10T08:40:10.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-04-26T07:35:23.000Z (over 2 years ago)
- Last Synced: 2024-08-01T13:37:42.627Z (5 months ago)
- Language: Vim script
- Homepage:
- Size: 11.7 KB
- Stars: 37
- Watchers: 2
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ccamel - codeindulgence/vim-tig - Do a tig in your vim (Vim Script)
README
Vim Tig
=======
Love [Tig](https://github.com/jonas/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.Requirements
------------
Neovim. This plugin uses Neovim's built in terminal; therefore it will crash
and burn on classic Vim. Classic support may be added if either1. enough people want it
2. I go back to classic Vim
3. someone else does it :)Installation
------------
Use your favourite plugin manager.Usage
-----
Simply run `:Tig`
or bind a key to it, e.g.:
```
map :Tig
```Pass tig commands:
```
:Tig show
```Show commit log of current file:
```
:Tig!
```Configuration
-------------
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'`Contributing
------------
1. Fork it!
2. Create your feature branch: `git checkout -b my-new-feature`
3. Commit your changes: `git commit -am 'Add some feature'`
4. Push to the branch: `git push origin my-new-feature`
5. Submit a pull request :DCredits
-------
[Nick Butler](https://www.codeindulgence.com)Additional thanks to [Mizuchi](https://github.com/Mizuchi) for [vim-ranger](https://github.com/Mizuchi/vim-ranger/) which was used as a reference.