From ed9bf76ea65248e2a80a39e8447e7f2a8a3fd2ab Mon Sep 17 00:00:00 2001 From: Dan Church Date: Sat, 9 May 2015 11:15:16 -0500 Subject: [PATCH] vim: Remove unnecessary : in templates :append ~ append etc. --- vim/.vim/templates/headers/cs.vim | 2 +- vim/.vim/templates/headers/html5.vim | 4 +++- vim/.vim/templates/headers/perl-cgi.vim | 2 +- vim/.vim/templates/headers/perl-pm.vim | 2 +- vim/.vim/templates/headers/perl.vim | 2 +- vim/.vim/templates/headers/sh.vim | 2 +- vim/.vim/templates/headers/xhtml.vim | 2 +- vim/.vim/templates/headers/xml.vim | 2 +- vim/.vim/templates/headers/xsd.vim | 2 +- vim/.vim/templates/headers/xsl.vim | 2 +- vim/.vim/templates/keys/_configure-H.vim | 2 +- vim/.vim/templates/keys/_configure-d.vim | 2 +- vim/.vim/templates/keys/_configure-h.vim | 2 +- vim/.vim/templates/keys/_configure-l.vim | 2 +- vim/.vim/templates/keys/_configure-p.vim | 2 +- vim/.vim/templates/keys/_configure-s.vim | 2 +- vim/.vim/templates/keys/lorem_ipsum.vim | 2 +- vim/.vim/templates/keys/perl-d.vim | 2 +- vim/.vim/templates/keys/perl-g.vim | 2 +- vim/.vim/templates/keys/php-E.vim | 2 +- vim/.vim/templates/keys/php-h.vim | 5 +++++ vim/.vim/templates/keys/sh-getopts.vim | 2 +- vim/.vim/templates/keys/sh-help_message.vim | 2 +- vim/.vim/templates/keys/sh-mktemp.vim | 2 +- vim/.vim/templates/keys/sh-trap-cleanup.vim | 2 +- vim/.vim/templates/keys/xhtml-h.vim | 2 +- vim/.vim/templates/keys/xml-h.vim | 2 +- 27 files changed, 33 insertions(+), 26 deletions(-) create mode 100644 vim/.vim/templates/keys/php-h.vim diff --git a/vim/.vim/templates/headers/cs.vim b/vim/.vim/templates/headers/cs.vim index 9beb6353ec..128aaf30ba 100644 --- a/vim/.vim/templates/headers/cs.vim +++ b/vim/.vim/templates/headers/cs.vim @@ -1,4 +1,4 @@ -:insert +insert /* Copyright (C) 2012 Dan Church. License GPLv3+: GNU GPL version 3 or later (http://gnu.org/licenses/gpl.html). diff --git a/vim/.vim/templates/headers/html5.vim b/vim/.vim/templates/headers/html5.vim index c6adc19495..76cc8dd0fc 100644 --- a/vim/.vim/templates/headers/html5.vim +++ b/vim/.vim/templates/headers/html5.vim @@ -1,4 +1,6 @@ -:insert +" header for html5 + +append diff --git a/vim/.vim/templates/headers/perl-cgi.vim b/vim/.vim/templates/headers/perl-cgi.vim index 35366f594d..a3df9140c5 100644 --- a/vim/.vim/templates/headers/perl-cgi.vim +++ b/vim/.vim/templates/headers/perl-cgi.vim @@ -1,6 +1,6 @@ " header for perl CGI scripts -:append +append #!/usr/bin/perl -w use strict; diff --git a/vim/.vim/templates/headers/perl-pm.vim b/vim/.vim/templates/headers/perl-pm.vim index 119073c950..32a43edaab 100644 --- a/vim/.vim/templates/headers/perl-pm.vim +++ b/vim/.vim/templates/headers/perl-pm.vim @@ -4,7 +4,7 @@ " expand('%:t:r'): basename of current file, one extension removed :0put =printf('package %s::%s;', expand('%:p:h:t'), expand('%:t:r')) -:append +append use strict; use warnings; diff --git a/vim/.vim/templates/headers/perl.vim b/vim/.vim/templates/headers/perl.vim index 11b1f3e57b..823e99104a 100644 --- a/vim/.vim/templates/headers/perl.vim +++ b/vim/.vim/templates/headers/perl.vim @@ -1,6 +1,6 @@ " header for perl scripts -:insert +append #!/usr/bin/perl -w use strict; . diff --git a/vim/.vim/templates/headers/sh.vim b/vim/.vim/templates/headers/sh.vim index 40994612fa..43044f9a6f 100644 --- a/vim/.vim/templates/headers/sh.vim +++ b/vim/.vim/templates/headers/sh.vim @@ -1,5 +1,5 @@ " header for shell scripts -:insert +append #!/bin/sh . diff --git a/vim/.vim/templates/headers/xhtml.vim b/vim/.vim/templates/headers/xhtml.vim index c1a93e1c32..f73bb1ab40 100644 --- a/vim/.vim/templates/headers/xhtml.vim +++ b/vim/.vim/templates/headers/xhtml.vim @@ -1,4 +1,4 @@ -:insert +append diff --git a/vim/.vim/templates/headers/xml.vim b/vim/.vim/templates/headers/xml.vim index f76b955fe7..c0aeca77dc 100644 --- a/vim/.vim/templates/headers/xml.vim +++ b/vim/.vim/templates/headers/xml.vim @@ -1,5 +1,5 @@ " header for xml files -:insert +append . diff --git a/vim/.vim/templates/headers/xsd.vim b/vim/.vim/templates/headers/xsd.vim index b8c1439e61..f2429517c5 100644 --- a/vim/.vim/templates/headers/xsd.vim +++ b/vim/.vim/templates/headers/xsd.vim @@ -1,6 +1,6 @@ " header for XML schema definitions -:insert +append diff --git a/vim/.vim/templates/headers/xsl.vim b/vim/.vim/templates/headers/xsl.vim index e14cb50c28..6fa2a8e167 100644 --- a/vim/.vim/templates/headers/xsl.vim +++ b/vim/.vim/templates/headers/xsl.vim @@ -1,6 +1,6 @@ " header for XSL transforms -:insert +append b/install/slack-desc && # HOW TO EDIT THIS FILE: # The "handy ruler" below makes it easier to edit a package description. Line diff --git a/vim/.vim/templates/keys/lorem_ipsum.vim b/vim/.vim/templates/keys/lorem_ipsum.vim index b39d1cc76a..2a61506b1f 100644 --- a/vim/.vim/templates/keys/lorem_ipsum.vim +++ b/vim/.vim/templates/keys/lorem_ipsum.vim @@ -1,6 +1,6 @@ " insert text -:insert +insert Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec a diam lectus. Sed sit amet ipsum mauris. Maecenas congue ligula ac quam viverra nec consectetur ante hendrerit. Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean ut gravida lorem. Ut turpis felis, pulvinar a semper sed, adipiscing id dolor. Pellentesque auctor nisi id magna consequat sagittis. Curabitur dapibus enim sit amet elit pharetra tincidunt feugiat nisl imperdiet. Ut convallis libero in urna ultrices accumsan. Donec sed odio eros. Donec viverra mi quis quam pulvinar at malesuada arcu rhoncus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. In rutrum accumsan ultricies. Mauris vitae nisi at sem facilisis semper ac in est. Vivamus fermentum semper porta. Nunc diam velit, adipiscing ut tristique vitae, sagittis vel odio. Maecenas convallis ullamcorper ultricies. Curabitur ornare, ligula semper consectetur sagittis, nisi diam iaculis velit, id fringilla sem nunc vel mi. Nam dictum, odio nec pretium volutpat, arcu ante placerat erat, non tristique elit urna et turpis. Quisque mi metus, ornare sit amet fermentum et, tincidunt et orci. Fusce eget orci a orci congue vestibulum. Ut dolor diam, elementum et vestibulum eu, porttitor vel elit. Curabitur venenatis pulvinar tellus gravida ornare. Sed et erat faucibus nunc euismod ultricies ut id justo. Nullam cursus suscipit nisi, et ultrices justo sodales nec. Fusce venenatis facilisis lectus ac semper. Aliquam at massa ipsum. Quisque bibendum purus convallis nulla ultrices ultricies. Nullam aliquam, mi eu aliquam tincidunt, purus velit laoreet tortor, viverra pretium nisi quam vitae mi. Fusce vel volutpat elit. Nam sagittis nisi dui. diff --git a/vim/.vim/templates/keys/perl-d.vim b/vim/.vim/templates/keys/perl-d.vim index f0440ccb26..df09212941 100644 --- a/vim/.vim/templates/keys/perl-d.vim +++ b/vim/.vim/templates/keys/perl-d.vim @@ -1,5 +1,5 @@ " Data::Dumper call for Perl -:append +append {use Data::Dumper; print STDERR Data::Dumper->Dump([]);} . diff --git a/vim/.vim/templates/keys/perl-g.vim b/vim/.vim/templates/keys/perl-g.vim index ba64fa42f1..8cb1d74e0b 100644 --- a/vim/.vim/templates/keys/perl-g.vim +++ b/vim/.vim/templates/keys/perl-g.vim @@ -1,6 +1,6 @@ " Getopt::Std call for Perl -:append +append use Getopt::Std qw/ getopts /; &getopts('', \ my %opts); diff --git a/vim/.vim/templates/keys/php-E.vim b/vim/.vim/templates/keys/php-E.vim index 484b4b4739..076c3747da 100644 --- a/vim/.vim/templates/keys/php-E.vim +++ b/vim/.vim/templates/keys/php-E.vim @@ -1,5 +1,5 @@ " begin new Exception -:insert +insert throw new Exception(" . diff --git a/vim/.vim/templates/keys/php-h.vim b/vim/.vim/templates/keys/php-h.vim new file mode 100644 index 0000000000..f8c0f9a81b --- /dev/null +++ b/vim/.vim/templates/keys/php-h.vim @@ -0,0 +1,5 @@ +" header for php + +insert + . diff --git a/vim/.vim/templates/keys/xml-h.vim b/vim/.vim/templates/keys/xml-h.vim index f76b955fe7..4f1c8929fb 100644 --- a/vim/.vim/templates/keys/xml-h.vim +++ b/vim/.vim/templates/keys/xml-h.vim @@ -1,5 +1,5 @@ " header for xml files -:insert +insert .