Browse Source

Added vim templates

main
Yigit Colakoglu 3 years ago
parent
commit
e64f7a0740
10 changed files with 155 additions and 0 deletions
  1. +14
    -0
      .config/vim/templates/skeleton.c
  2. +14
    -0
      .config/vim/templates/skeleton.cpp
  3. +13
    -0
      .config/vim/templates/skeleton.h
  4. +13
    -0
      .config/vim/templates/skeleton.hpp
  5. +10
    -0
      .config/vim/templates/skeleton.html
  6. +13
    -0
      .config/vim/templates/skeleton.java
  7. +15
    -0
      .config/vim/templates/skeleton.py
  8. +31
    -0
      .config/vim/templates/skeleton.s
  9. +2
    -0
      .config/vim/templates/skeleton.sh
  10. +30
    -0
      .config/vim/templates/skeleton.tex

+ 14
- 0
.config/vim/templates/skeleton.c View File

@ -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 <stdio.h>
int main(int argc, char *argv[]) {
}

+ 14
- 0
.config/vim/templates/skeleton.cpp View File

@ -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 <iostream>
int main(int argc, char *argv[]) {
}

+ 13
- 0
.config/vim/templates/skeleton.h View File

@ -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:] */

+ 13
- 0
.config/vim/templates/skeleton.hpp View File

@ -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:] */

+ 10
- 0
.config/vim/templates/skeleton.html View File

@ -0,0 +1,10 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
</body>
</html>

+ 13
- 0
.config/vim/templates/skeleton.java View File

@ -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) {
}
}

+ 15
- 0
.config/vim/templates/skeleton.py View File

@ -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()

+ 31
- 0
.config/vim/templates/skeleton.s View File

@ -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: <PROGRAM_NAME> *
# * Description: <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

+ 2
- 0
.config/vim/templates/skeleton.sh View File

@ -0,0 +1,2 @@
#!/bin/sh

+ 30
- 0
.config/vim/templates/skeleton.tex View File

@ -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}

Loading…
Cancel
Save