summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiederick de Vries <diederick@diederickdevries.net>2020-05-05 14:21:08 +0200
committerDiederick de Vries <diederick@diederickdevries.net>2020-05-05 14:21:08 +0200
commitcf48f9e45bf7af189b705c8d915bbb7fecbab9f5 (patch)
treeb6a7a98799cf4f85b6dac453b38dc99713068947
parent86752c8cb396e4bdc6fa0947d51c79c0f6cd9e32 (diff)
downloadvimrc-cf48f9e45bf7af189b705c8d915bbb7fecbab9f5.tar.gz
vimrc-cf48f9e45bf7af189b705c8d915bbb7fecbab9f5.tar.bz2
vimrc-cf48f9e45bf7af189b705c8d915bbb7fecbab9f5.zip
feature:add snippets
-rw-r--r--skeletons/skeleton.html13
-rw-r--r--vimrc.d/snippets.vim3
2 files changed, 16 insertions, 0 deletions
diff --git a/skeletons/skeleton.html b/skeletons/skeleton.html
new file mode 100644
index 0000000..510d749
--- /dev/null
+++ b/skeletons/skeleton.html
@@ -0,0 +1,13 @@
1<html>
2 <head>
3 <title></title>
4 <link rel="stylesheet" type="text/css" href="document.css" />
5 <meta name="viewport" content="width=device-width, initial-scale=0.8" />
6 <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
7 </head>
8 <body>
9 <h1></h1>
10 <p></p>
11 </body>
12</html>
13
diff --git a/vimrc.d/snippets.vim b/vimrc.d/snippets.vim
new file mode 100644
index 0000000..193ac13
--- /dev/null
+++ b/vimrc.d/snippets.vim
@@ -0,0 +1,3 @@
1" Snippets
2
3nnoremap ,html :-1read $HOME/.vim/skeletons/skeleton.html<CR>2jwf>a