]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - vim/ftplugin/perl/perl.xpt.vim
vim/ftplugin/*/*.xpt.vim: Prevent errors if XPTemplate is not installed.
[config/dotfiles.git] / vim / ftplugin / perl / perl.xpt.vim
index d2ec9fb571aeebe2681cc2765c866da594e0ccd3..672d2c582f8ef36097dbb2ce1127ecb7d41b3b53 100644 (file)
 " You should have received a copy of the GNU General Public License
 " along with this file.  If not, see <http://www.gnu.org/licenses/>.
 
+
+" Prevent errors if XPTemplate is not installed.
+if !exists('g:XPT#ver')
+    finish
+endif
+
 XPTemplate priority=personal
 
 
 XPT perl
+XSET year|def=strftime("%Y")
 #!/usr/bin/perl
 
 # `description^