Skip to content

Commit

Permalink
+Templates; +File specific rules: templates; Jade tab=2
Browse files Browse the repository at this point in the history
  • Loading branch information
miripiruni committed Mar 17, 2012
1 parent 8347661 commit 016e6f2
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,17 @@



" File specific
autocmd BufNewFile *.py 0r ~/.vimi/templates/template.py
autocmd BufNewFile *.xml 0r ~/.vimi/templates/template.xml
autocmd BufNewFile *.xsl 0r ~/.vimi/templates/template.xsl
autocmd BufNewFile *.jade 0r ~/.vimi/templates/template.jade
autocmd BufNewFile *.html 0r ~/.vimi/templates/template.html

autocmd FileType jade setlocal expandtab shiftwidth=2 tabstop=2 softtabstop=2



" Плагины

" Solarized
Expand Down
10 changes: 10 additions & 0 deletions templates/template.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>

</body>
</html>
9 changes: 9 additions & 0 deletions templates/template.jade
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
!!! 5
html
head
meta(charset="utf-8")
link(rel="stylesheet", href="css/common.css")
link(rel="shortcut icon", href="/favicon.ico", type="image/x-icon")
title
body

1 change: 1 addition & 0 deletions templates/template.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# -*- coding: utf-8 -*-
1 change: 1 addition & 0 deletions templates/template.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0" encoding="utf-8"?>
6 changes: 6 additions & 0 deletions templates/template.xsl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">

</xsl:stylesheet>

0 comments on commit 016e6f2

Please sign in to comment.