From f30864aadb81e6635892b6ec6762e766d236c066 Mon Sep 17 00:00:00 2001 From: Frank Villaro-Dixon Date: Thu, 24 Oct 2013 00:01:14 +0200 Subject: [PATCH] vim skels and rfc function --- bashrc | 11 ++++++++++- vim/skeletons/skel.c | 2 +- vim/skeletons/skel.h | 2 +- vim/skeletons/skel.java | 8 ++++---- vim/vimrc | 3 +++ 5 files changed, 19 insertions(+), 7 deletions(-) diff --git a/bashrc b/bashrc index 66e9c9c..5d5ba92 100644 --- a/bashrc +++ b/bashrc @@ -377,7 +377,8 @@ function mutt { #{{{ fi; } #}}} -up2frank() { #{{{ +function up2frank +{ #{{{ if [ ! $# -eq 1 ]; then echo "usage: up2frank FILE" return @@ -388,6 +389,14 @@ up2frank() { #{{{ fi; } #}}} +function rfc +{ #{{{ + + firefox http://www.ietf.org/rfc/rfc$1.txt + +} #}}} + + # }}} SSHAGENT=/usr/bin/ssh-agent diff --git a/vim/skeletons/skel.c b/vim/skeletons/skel.c index 4026b23..9a63433 100644 --- a/vim/skeletons/skel.c +++ b/vim/skeletons/skel.c @@ -1,7 +1,7 @@ /* ** <+FILENAME+> - <+DESC+> ** -** (C) 2013 - Frank Villaro-Dixon +** 2013 - Frank Villaro-Dixon */ #include diff --git a/vim/skeletons/skel.h b/vim/skeletons/skel.h index ec3828a..bc37c31 100644 --- a/vim/skeletons/skel.h +++ b/vim/skeletons/skel.h @@ -1,7 +1,7 @@ /* ** <+FILENAME+> - <+DESC+> ** -** (C) 2013 - Frank Villaro-Dixon +** 2013 - Frank Villaro-Dixon */ #ifndef <+HEADERNAME+> diff --git a/vim/skeletons/skel.java b/vim/skeletons/skel.java index 4fc2ada..9e50590 100644 --- a/vim/skeletons/skel.java +++ b/vim/skeletons/skel.java @@ -3,13 +3,13 @@ ** ** <+DESC+> ** -** (C) 2013 - Frank Villaro-Dixon +** 2013 - Frank Villaro-Dixon */ class <+CLASSNAME+> { - public static void main(String[] argv) { - <+CODE+> - } + public static void main(String[] argv) { + <+CODE+> + } } diff --git a/vim/vimrc b/vim/vimrc index 443e21a..956e271 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -145,3 +145,6 @@ autocmd BufRead,BufNewFile *.latex set tw=80 "Automatic documentation autocmd BufNewFile,BufRead *.py set keywordprg=pydoc autocmd BufNewFile,BufRead *.php set keywordprg=~/.vim/scripts/doc.php.sh + +"JAVA +iabbr syso System.out.println