Skip to content
This repository has been archived by the owner on Nov 29, 2022. It is now read-only.

Commit

Permalink
vim: Remove unnecessary : in templates
Browse files Browse the repository at this point in the history
:append ~ append etc.
  • Loading branch information
h3xx committed Aug 30, 2021
1 parent 4057ca4 commit ed9bf76
Show file tree
Hide file tree
Showing 27 changed files with 33 additions and 26 deletions.
2 changes: 1 addition & 1 deletion 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).
Expand Down
4 changes: 3 additions & 1 deletion vim/.vim/templates/headers/html5.vim
@@ -1,4 +1,6 @@
:insert
" header for html5

append
<!DOCTYPE html>
<html>
<head>
Expand Down
2 changes: 1 addition & 1 deletion vim/.vim/templates/headers/perl-cgi.vim
@@ -1,6 +1,6 @@
" header for perl CGI scripts

:append
append
#!/usr/bin/perl -w
use strict;

Expand Down
2 changes: 1 addition & 1 deletion vim/.vim/templates/headers/perl-pm.vim
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion vim/.vim/templates/headers/perl.vim
@@ -1,6 +1,6 @@
" header for perl scripts

:insert
append
#!/usr/bin/perl -w
use strict;
.
2 changes: 1 addition & 1 deletion vim/.vim/templates/headers/sh.vim
@@ -1,5 +1,5 @@
" header for shell scripts

:insert
append
#!/bin/sh
.
2 changes: 1 addition & 1 deletion vim/.vim/templates/headers/xhtml.vim
@@ -1,4 +1,4 @@
:insert
append
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xml:lang="en">
<head>
Expand Down
2 changes: 1 addition & 1 deletion vim/.vim/templates/headers/xml.vim
@@ -1,5 +1,5 @@
" header for xml files

:insert
append
<?xml version="1.0" encoding="utf-8"?>
.
2 changes: 1 addition & 1 deletion vim/.vim/templates/headers/xsd.vim
@@ -1,6 +1,6 @@
" header for XML schema definitions

:insert
append
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
Expand Down
2 changes: 1 addition & 1 deletion vim/.vim/templates/headers/xsl.vim
@@ -1,6 +1,6 @@
" header for XSL transforms

:insert
append
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet
version="1.0"
Expand Down
2 changes: 1 addition & 1 deletion vim/.vim/templates/keys/_configure-H.vim
@@ -1,5 +1,5 @@
" more advanced header for build scripts
:append
append
(build_script="$(readlink -f -- "$BASH_SOURCE")"
conf_script="${build_script%-build}"
[ "$build_script" == "$conf_script" -o ! -f "$conf_script" ] ||
Expand Down
2 changes: 1 addition & 1 deletion vim/.vim/templates/keys/_configure-d.vim
@@ -1,5 +1,5 @@
" insert docfile installing meme
:append
append
find . \
-type f \
-maxdepth 1 \
Expand Down
2 changes: 1 addition & 1 deletion vim/.vim/templates/keys/_configure-h.vim
@@ -1,5 +1,5 @@
" simple header for build scripts
:append
append
(build_script="$(readlink -f -- "$BASH_SOURCE")"
conf_script="${build_script%-build}"
[ "$build_script" == "$conf_script" -o ! -f "$conf_script" ] ||
Expand Down
2 changes: 1 addition & 1 deletion vim/.vim/templates/keys/_configure-l.vim
@@ -1,4 +1,4 @@
" add dynamic libdir
:append
append
"/usr/lib$([ "_${ARCH:-$(uname -m)}" == '_x86_64' ] && echo '64')"
.
2 changes: 1 addition & 1 deletion vim/.vim/templates/keys/_configure-p.vim
@@ -1,5 +1,5 @@
" apply patches
:append
append
(for patch in ~/downloads/build/_sources/celestia-*.patch ; do
rejfile="$(mktemp -t 'patch.XXXXXX')"
patch -p1 -N -r "$rejfile" <"$patch" |cat
Expand Down
2 changes: 1 addition & 1 deletion vim/.vim/templates/keys/_configure-s.vim
@@ -1,5 +1,5 @@
" slack-desc heredoc start
:insert
insert
cat <<EOF >b/install/slack-desc &&
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
Expand Down
2 changes: 1 addition & 1 deletion 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.
Expand Down
2 changes: 1 addition & 1 deletion 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([]);}
.
2 changes: 1 addition & 1 deletion 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);
Expand Down
2 changes: 1 addition & 1 deletion vim/.vim/templates/keys/php-E.vim
@@ -1,5 +1,5 @@
" begin new Exception

:insert
insert
throw new Exception("
.
5 changes: 5 additions & 0 deletions vim/.vim/templates/keys/php-h.vim
@@ -0,0 +1,5 @@
" header for php

insert
<?php
.
2 changes: 1 addition & 1 deletion vim/.vim/templates/keys/sh-getopts.vim
@@ -1,6 +1,6 @@
" getopts structure for shell scripts

:append
append
while getopts 'h' flag; do
case "$flag" in
'h')
Expand Down
2 changes: 1 addition & 1 deletion vim/.vim/templates/keys/sh-help_message.vim
@@ -1,6 +1,6 @@
" HELP_MESSAGE semi-standard function for shell scripts

:append
append
HELP_MESSAGE() {
local EXIT_CODE="${1:-0}"
cat <<EOF
Expand Down
2 changes: 1 addition & 1 deletion vim/.vim/templates/keys/sh-mktemp.vim
@@ -1,5 +1,5 @@
" mktemp invocation for shell scripts

:append
append
="$(mktemp -t "$(basename -- "$0").XXXXXX")"
.
2 changes: 1 addition & 1 deletion vim/.vim/templates/keys/sh-trap-cleanup.vim
@@ -1,6 +1,6 @@
" exit cleanup process for shell scripts

:append
append
TEMP_FILES=()

cleanup() {
Expand Down
2 changes: 1 addition & 1 deletion vim/.vim/templates/keys/xhtml-h.vim
@@ -1,6 +1,6 @@
" header for xhtml

:insert
insert
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
.
2 changes: 1 addition & 1 deletion vim/.vim/templates/keys/xml-h.vim
@@ -1,5 +1,5 @@
" header for xml files

:insert
insert
<?xml version="1.0" encoding="utf-8"?>
.

0 comments on commit ed9bf76

Please sign in to comment.