aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2015-07-09 02:48:00 +0200
committerDuncaen <mail@duncano.de>2015-07-09 02:48:00 +0200
commita4216705e0d13e50876700c1d4856f8dbf34f411 (patch)
tree3630b99748bf93ccf38cee1b990287c55205af89
parent427414cbb723195548f2e8b569983394805c44f3 (diff)
downloaddotfiles-a4216705e0d13e50876700c1d4856f8dbf34f411.tar.gz
sourround.vim django helper
-rw-r--r--vim/settings/surround.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/vim/settings/surround.vim b/vim/settings/surround.vim
new file mode 100644
index 0000000..323010d
--- /dev/null
+++ b/vim/settings/surround.vim
@@ -0,0 +1,8 @@
+let b:surround_{char2nr("v")} = "{{ \r }}"
+let b:surround_{char2nr("{"})} = "{{ \r }}"
+let b:surround_{char2nr("%")} = "{% \r %}"
+let b:surround_{char2nr("b")} = "{% block \1block name: \1 %}\r{% endblock \1\1 %}"
+let b:surround_{char2nr("i")} = "{% if \1condition: \1 %}\r{% endif %}"
+let b:surround_{char2nr("w")} = "{% with \1with: \1 %}\r{% endwith %}"
+let b:surround_{char2nr("f")} = "{% for \1for loop: \1 %}\r{% endfor %}"
+let b:surround_{char2nr("c")} = "{% comment %}\r{% endcomment %}"