Mac OS X – VIM Templates
Posted Dec 24th, 2009 by Conor in in Linux, UNIXI have always wondered if it was possible to use a template system with VIM. Whenever I used large editors it was usually because of the default template schemes they allow. I have always preferred using VIM because it’s so practical, and it’s useful to be able to execute commands in-between editing files.
Well anyway here are a few commands to configure a vim template system on UNIX (It should work on both OSX and Linux):
- Download the template system:
curl -C - -O http://www.vim.org/scripts/download_script.php?src_id=3747
- Open VIM:
sudo vim
- Source the file you have downloaded from within VIM by typing:
:source ./download_script.php\?src_id=3747
- Now the VIM template system has been configured. The previous command should output the template directory so that you can create new templates, it differs depending on your OS.
That’s it if you need more info on how the system works you can visit the project homepage here.
No responses yet