Skip to content

Commit 016e6f2

Browse files
committed
+Templates; +File specific rules: templates; Jade tab=2
1 parent 8347661 commit 016e6f2

File tree

6 files changed

+38
-0
lines changed

6 files changed

+38
-0
lines changed

.vimrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,17 @@
583583

584584

585585

586+
" File specific
587+
autocmd BufNewFile *.py 0r ~/.vimi/templates/template.py
588+
autocmd BufNewFile *.xml 0r ~/.vimi/templates/template.xml
589+
autocmd BufNewFile *.xsl 0r ~/.vimi/templates/template.xsl
590+
autocmd BufNewFile *.jade 0r ~/.vimi/templates/template.jade
591+
autocmd BufNewFile *.html 0r ~/.vimi/templates/template.html
592+
593+
autocmd FileType jade setlocal expandtab shiftwidth=2 tabstop=2 softtabstop=2
594+
595+
596+
586597
" Плагины
587598

588599
" Solarized

templates/template.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE HTML>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title></title>
6+
</head>
7+
<body>
8+
9+
</body>
10+
</html>

templates/template.jade

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
!!! 5
2+
html
3+
head
4+
meta(charset="utf-8")
5+
link(rel="stylesheet", href="css/common.css")
6+
link(rel="shortcut icon", href="/favicon.ico", type="image/x-icon")
7+
title
8+
body
9+

templates/template.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# -*- coding: utf-8 -*-

templates/template.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?xml version="1.0" encoding="utf-8"?>

templates/template.xsl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<xsl:stylesheet
3+
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4+
version="1.0">
5+
6+
</xsl:stylesheet>

0 commit comments

Comments
 (0)