add html/css templates

This commit is contained in:
Ray Elliott 2020-04-25 16:11:44 +01:00
parent 96bc2b0b98
commit c2963b69ad
3 changed files with 49 additions and 7 deletions

View File

@ -439,13 +439,9 @@ iabbrev ct'' content-type: '';
augroup templates augroup templates
autocmd! autocmd!
autocmd BufNewFile *.sh 0read ~/.config/nvim/templates/template.sh | normal G autocmd BufNewFile *.sh 0read ~/.config/nvim/templates/template.sh | normal G
augroup END autocmd BufNewFile *.html 0read ~/.config/nvim/templates/template.html | normal gg
autocmd BufNewFile *.css 0read ~/.config/nvim/templates/template.css | normal G
" }}} autocmd BufNewFile *.scss 0read ~/.config/nvim/templates/template.css | normal G
" template files {{{
augroup templates
autocmd!
autocmd BufNewFile *.sh 0read ~/.config/nvim/templates/template.sh | normal G
augroup END augroup END
" }}} " }}}

15
templates/template.css Normal file
View File

@ -0,0 +1,15 @@
html,
body {
padding: 0;
margin: 0;
}
body {
font-size: 100%;
box-sizing: border-box;
background-color: pink;
}
* {
box-sizing: inherit;
}

31
templates/template.html Normal file
View File

@ -0,0 +1,31 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<title>THE TITLE IS THIS!</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="THE DESCRIPTION IS THIS!">
<meta name="author" content="I AM THE AUTHOR">
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<header>
</header>
<main>
</main>
<footer>
</footer>
<script src="js/scripts.js"></script>
</body>
</html>