A Vim plugin for working with the Fossil distributed software configuration management system.
The plugin provides vim commands that execute fossil commands and capture
the output. The following commands are available by default:
:Fossil[!]splits the window and captures thefossiloutput. By default, the window is split horizontally, but this us configurable. If run as:Fossil!, the output is not captured.:SFossil(Split fossil) always splits horizontally.:VFossil(Vertical fossil) always splits vertically.:CFossil(Capture Fossil) merely switches to the temporary buffer.:RFossilreads in the output in the current buffer.
All commands have tab completion based on fossil help -a -v and filenames.
Syntax highlighting is provided that works with fossil commit, status,
timeline, help and to some extent with other commands.
Please see :help fossil for more information.
The plugin is inspired by the vim-fossil plugin by J Knight.
Installation
Vim plugin managers using get can use the GitHub mirror with e.g.
:Plug 'prebeng/vim-fossil-pg'
Using fossil:
- Create directory
~/.vim/pack/simple/start/vim-fossil-pg/, wheresimplecan be any directory name (I use this for simple plugins). - Clone the official repository in a location of your liking.
- In the directory in step 1, use
fossil opento check out the repository. - Run
:helptags ~/.vim/pack/simple/start/vim-fossil-pg/doc.
Manual installation:
- Optionally use a directory as with step 1 for fossil, otherwise use
~/.vim. - Copy the doc, plugin and syntax folders to the directory.