This project adds egs templating system support to the vim editor.
Since this plugin has rolling versions based on git commits, using unbundle and
git is the preferred way to install. The plugin ends up contained in its own
directory and updates are just a git pull
away.
-
Git clone sunaku's unbundle into
~/.vim/bundle/
and add this line to yourvimrc
:runtime bundle/vim-unbundle/unbundle.vim
To get the all the features of this plugin, make sure you also have a
filetype plugin indent on
line in there.
- Make sure you installed vim-gorilla-script first.
-
Create and change into
~/.vim/ftbundle/egs
:$ mkdir -p ~/.vim/ftbundle/egs $ cd ~/.vim/ftbundle/egs
-
Make a clone of the
vim-egs
repository:$ git clone https://github.com/unc0/vim-egs.git
-
Link or copy
vim-gorilla-script
toftbundle/egs
$ cd ~/.vim/ftbundle/egs $ ln -s ~/.vim/ftbundle/gorilla/vim-gorilla-script
-
Change into
~/.vim/ftbundle/egs/vim-egs/
:$ cd ~/.vim/ftbundle/egs/vim-egs
-
Pull in the latest changes:
$ git pull
vim-egs uses subtype to highlight the targeting filetype's code.
You may specify the subtype in two way:
-
Using special annotation in first 5 lines or the last line in your egs file.
<%= title %> ========== <%= desc %> <!-- egs_subtype=markdown -->
-
Using two extension name in your egs filename.
package.json.egs config.xml.egs readme.md.egs
index.egs will using html as subtype.