Permalink
Browse files

Added new section to minimize conflicts with django

  • Loading branch information...
1 parent c1df8a6 commit 6fb1b9fb7b41e3be9ff6b6b1a0803c20d52a7155 @chrisburnor committed Feb 28, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 plugin/ragtag.vim
View
7 plugin/ragtag.vim
@@ -82,6 +82,13 @@ function! s:Init()
if !exists("b:surround_101")
let b:surround_101 = "[% \r %]\n[% END %]"
endif
+ elseif &ft == "mustache"
+ inoremap <buffer> <SID>ragtagOopen {{<Space>
+ inoremap <buffer> <SID>ragtagOclose <Space>}}<Left><Left>
+ inoremap <buffer> <C-X><Lt> {{
+ inoremap <buffer> <C-X>> }}
+ let b:surround_45 = "{{ \r }}"
+ let b:surround_61 = "{{ \r }}"
elseif &ft =~ "django" || &ft == "liquid" || &ft == 'htmljinja'
inoremap <buffer> <SID>ragtagOopen {{<Space>
inoremap <buffer> <SID>ragtagOclose <Space>}}<Left><Left>

0 comments on commit 6fb1b9f

Please sign in to comment.