]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vimrc: Add XPTemplate settings.
authorSimon Ruderich <simon@ruderich.org>
Tue, 8 Jun 2010 20:24:17 +0000 (22:24 +0200)
committerSimon Ruderich <simon@ruderich.org>
Tue, 8 Jun 2010 20:24:17 +0000 (22:24 +0200)
vimrc

diff --git a/vimrc b/vimrc
index 58e50ac5ff51f3911d97be7bbe331c8de2530877..0940c45b58ab203cc364c50d5e949de4898ca355 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -312,6 +312,17 @@ endif
 " Map toggle comment.
 map <Leader><Leader> <plug>NERDCommenterToggle
 
+" XPTemplate settings.
+if has('eval')
+    " Try to maintain snippet rendering even after editing outside of a
+    " snippet.
+    let g:xptemplate_strict = 0
+    " Don't complete any braces automatically.
+    let g:xptemplate_brace_complete = 0
+    " Only highlight the current placeholder.
+    let g:xptemplate_highlight = 'current'
+endif
+
 
 " AUTO COMMANDS