dotfiles

configuration files
git clone https://pi.duncano.de/git/dotfiles.git
Log | Files | Refs | README

commit a4216705e0d13e50876700c1d4856f8dbf34f411
parent 427414cbb723195548f2e8b569983394805c44f3
Author: Duncaen <mail@duncano.de>
Date:   Thu,  9 Jul 2015 02:48:00 +0200

sourround.vim django helper

Diffstat:
vim/settings/surround.vim | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/vim/settings/surround.vim 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 %}"