From e64f7a07409f5438993c2f07944f76ffea0796ef Mon Sep 17 00:00:00 2001 From: Yigit Colakoglu Date: Fri, 3 Sep 2021 19:41:44 +0200 Subject: [PATCH] Added vim templates --- .config/vim/templates/skeleton.c | 14 +++++++++++++ .config/vim/templates/skeleton.cpp | 14 +++++++++++++ .config/vim/templates/skeleton.h | 13 ++++++++++++ .config/vim/templates/skeleton.hpp | 13 ++++++++++++ .config/vim/templates/skeleton.html | 10 ++++++++++ .config/vim/templates/skeleton.java | 13 ++++++++++++ .config/vim/templates/skeleton.py | 15 ++++++++++++++ .config/vim/templates/skeleton.s | 31 +++++++++++++++++++++++++++++ .config/vim/templates/skeleton.sh | 2 ++ .config/vim/templates/skeleton.tex | 30 ++++++++++++++++++++++++++++ 10 files changed, 155 insertions(+) create mode 100644 .config/vim/templates/skeleton.c create mode 100644 .config/vim/templates/skeleton.cpp create mode 100644 .config/vim/templates/skeleton.h create mode 100644 .config/vim/templates/skeleton.hpp create mode 100644 .config/vim/templates/skeleton.html create mode 100644 .config/vim/templates/skeleton.java create mode 100644 .config/vim/templates/skeleton.py create mode 100644 .config/vim/templates/skeleton.s create mode 100644 .config/vim/templates/skeleton.sh create mode 100644 .config/vim/templates/skeleton.tex diff --git a/.config/vim/templates/skeleton.c b/.config/vim/templates/skeleton.c new file mode 100644 index 00000000..773bdef5 --- /dev/null +++ b/.config/vim/templates/skeleton.c @@ -0,0 +1,14 @@ +/* +* [:VIM_EVAL:]expand('%:t')[:END_EVAL:] +* [:VIM_EVAL:]expand('%:p:h:t')[:END_EVAL:] +* +* Created by Yigit Colakoglu on [:VIM_EVAL:]strftime('%m/%d/%y')[:END_EVAL:]. +* Copyright [:VIM_EVAL:]strftime('%Y')[:END_EVAL:]. Yigit Colakoglu. All rights reserved. +*/ + +#include + +int main(int argc, char *argv[]) { + +} + diff --git a/.config/vim/templates/skeleton.cpp b/.config/vim/templates/skeleton.cpp new file mode 100644 index 00000000..1b7db2f9 --- /dev/null +++ b/.config/vim/templates/skeleton.cpp @@ -0,0 +1,14 @@ +/* +* [:VIM_EVAL:]expand('%:t')[:END_EVAL:] +* [:VIM_EVAL:]expand('%:p:h:t')[:END_EVAL:] +* +* Created by Yigit Colakoglu on [:VIM_EVAL:]strftime('%m/%d/%y')[:END_EVAL:]. +* Copyright [:VIM_EVAL:]strftime('%Y')[:END_EVAL:]. Yigit Colakoglu. All rights reserved. +*/ + +#include + +int main(int argc, char *argv[]) { + +} + diff --git a/.config/vim/templates/skeleton.h b/.config/vim/templates/skeleton.h new file mode 100644 index 00000000..ed6c7f12 --- /dev/null +++ b/.config/vim/templates/skeleton.h @@ -0,0 +1,13 @@ +// +// [:VIM_EVAL:]expand('%:t')[:END_EVAL:] +// [:VIM_EVAL:]expand('%:p:h:t')[:END_EVAL:] +// +// Created by Yigit Colakoglu on [:VIM_EVAL:]strftime('%m/%d/%y')[:END_EVAL:]. +// Copyright [:VIM_EVAL:]strftime('%Y')[:END_EVAL:]. Yigit Colakoglu. All rights reserved. +// + +#ifndef [:VIM_EVAL:]substitute(expand('%:t'),'\.',"_","")[:END_EVAL:] +#define [:VIM_EVAL:]substitute(expand('%:t'),'\.',"_","")[:END_EVAL:] + + +#endif /* [:VIM_EVAL:]substitute(expand('%:t'),'\.',"_","")[:END_EVAL:] */ diff --git a/.config/vim/templates/skeleton.hpp b/.config/vim/templates/skeleton.hpp new file mode 100644 index 00000000..ed6c7f12 --- /dev/null +++ b/.config/vim/templates/skeleton.hpp @@ -0,0 +1,13 @@ +// +// [:VIM_EVAL:]expand('%:t')[:END_EVAL:] +// [:VIM_EVAL:]expand('%:p:h:t')[:END_EVAL:] +// +// Created by Yigit Colakoglu on [:VIM_EVAL:]strftime('%m/%d/%y')[:END_EVAL:]. +// Copyright [:VIM_EVAL:]strftime('%Y')[:END_EVAL:]. Yigit Colakoglu. All rights reserved. +// + +#ifndef [:VIM_EVAL:]substitute(expand('%:t'),'\.',"_","")[:END_EVAL:] +#define [:VIM_EVAL:]substitute(expand('%:t'),'\.',"_","")[:END_EVAL:] + + +#endif /* [:VIM_EVAL:]substitute(expand('%:t'),'\.',"_","")[:END_EVAL:] */ diff --git a/.config/vim/templates/skeleton.html b/.config/vim/templates/skeleton.html new file mode 100644 index 00000000..512346bc --- /dev/null +++ b/.config/vim/templates/skeleton.html @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/.config/vim/templates/skeleton.java b/.config/vim/templates/skeleton.java new file mode 100644 index 00000000..fb916ca4 --- /dev/null +++ b/.config/vim/templates/skeleton.java @@ -0,0 +1,13 @@ +home/home/ +home/home/ [:VIM_EVAL:]expand('%:t')[:END_EVAL:] +home/home/ [:VIM_EVAL:]expand('%:p:h:t')[:END_EVAL:] +home/home/ +home/home/ Created by Yigit Colakoglu on [:VIM_EVAL:]strftime('%mhome/%dhome/%y')[:END_EVAL:]. +home/home/ Copyright [:VIM_EVAL:]strftime('%Y')[:END_EVAL:]. Yigit Colakoglu. All rights reserved. +home/home/ + +class Untitled { + public static void main(String[] args) { + + } +} diff --git a/.config/vim/templates/skeleton.py b/.config/vim/templates/skeleton.py new file mode 100644 index 00000000..168d6bac --- /dev/null +++ b/.config/vim/templates/skeleton.py @@ -0,0 +1,15 @@ +#!/bin/python +# +# [:VIM_EVAL:]expand('%:t')[:END_EVAL:] +# [:VIM_EVAL:]expand('%:p:h:t')[:END_EVAL:] +# +# Created by Yigit Colakoglu on [:VIM_EVAL:]strftime('%m/%d/%y')[:END_EVAL:]. +# Copyright [:VIM_EVAL:]strftime('%Y')[:END_EVAL:]. Yigit Colakoglu. All rights reserved. +# + +def main(): + print("hello world") + + +if __name__ == "__main__": + main() diff --git a/.config/vim/templates/skeleton.s b/.config/vim/templates/skeleton.s new file mode 100644 index 00000000..d6bed713 --- /dev/null +++ b/.config/vim/templates/skeleton.s @@ -0,0 +1,31 @@ +# +# [:VIM_EVAL:]expand('%:t')[:END_EVAL:] +# [:VIM_EVAL:]expand('%:p:h:t')[:END_EVAL:] +# +# Created by Yigit Colakoglu on [:VIM_EVAL:]strftime('%m/%d/%y')[:END_EVAL:]. +# Copyright [:VIM_EVAL:]strftime('%Y')[:END_EVAL:]. Yigit Colakoglu. All rights reserved. +# + +# ************************************************ +# * Program: * +# * Description: * +# ************************************************ + +.text + + +.global main + +main: + # prologue + pushq %rbp + movq %rsp, %rbp + + + # epilogue + movq %rbp, $rsp + popq %rbp + +end: + movq $0, %rdi # Return code 0 + call exit diff --git a/.config/vim/templates/skeleton.sh b/.config/vim/templates/skeleton.sh new file mode 100644 index 00000000..13f47935 --- /dev/null +++ b/.config/vim/templates/skeleton.sh @@ -0,0 +1,2 @@ +#!/bin/sh + diff --git a/.config/vim/templates/skeleton.tex b/.config/vim/templates/skeleton.tex new file mode 100644 index 00000000..89f08da6 --- /dev/null +++ b/.config/vim/templates/skeleton.tex @@ -0,0 +1,30 @@ +% +% [:VIM_EVAL:]expand('%:t')[:END_EVAL:] +% [:VIM_EVAL:]expand('%:p:h:t')[:END_EVAL:] +% +% Created by Yigit Colakoglu on [:VIM_EVAL:]strftime('%m/%d/%y')[:END_EVAL:]. +% Copyright [:VIM_EVAL:]strftime('%Y')[:END_EVAL:]. Yigit Colakoglu. All rights reserved. +% + +\RequirePackage[l2tabu, orthodox]{nag} +\documentclass[12pt]{article} + +\usepackage{amssymb} +\usepackage{amsmath} +\usepackage{verbatim} +\usepackage{graphicx} +\usepackage{microtype} +\usepackage{upquote} +\usepackage{units} +\usepackage{booktabs} +\usepackage{siunitx} +\usepackage{xcolor} + +\title{} +\date{\today} +\author{Yigit Colakoglu} + +\begin{document} +\maketitle + +\end{document}