Commit e98d567

mo khan <mo@mokhan.ca>
2013-08-06 20:12:39
move snippets to correct filenames
1 parent 01b9409
snippets/eruby.snippets
@@ -0,0 +1,5 @@
+# hscript
+snippet hscript
+	<script type="text/x-handlebars" data-template-name="${1}">
+		${2}
+	</script>
snippets/handlebars.snippets
@@ -0,0 +1,6 @@
+# if
+snippet if
+	{{#if ${1}}}
+		${2}
+	{{/if}}
+
snippets/javascript-mine.snippets → snippets/javascript.snippets
File renamed without changes
snippets/ruby-mine.snippets → snippets/ruby.snippets
File renamed without changes
vimrc
@@ -104,6 +104,7 @@ if has("autocmd")
   " make Python follow PEP8 for whitespace ( http://www.python.org/dev/peps/pep-0008/ )
   au FileType python setlocal softtabstop=4 tabstop=4 shiftwidth=4
 
+  au BufRead,BufNewFile {*.handlebars,*.hbs} set ft=handlebars syntax=handlebars
   " Remember last location in file, but not for commit messages.
   " see :help last-position-jump
   au BufReadPost * if &filetype !~ '^git\c' && line("'\"") > 0 && line("'\"") <= line("$")
@@ -385,7 +386,7 @@ autocmd FileType html       nnoremap <buffer> <localleader>c I<!--<esc>A--><esc>
 " turn on spell checker
 autocmd FileType markdown   nnoremap setlocal spell
 
-autocmd FileType html :iabbrev <buffer> ' &rsquo;
+autocmd FileType html :iabbrev <buffer> r' &rsquo;
 
 "let g:ctrlp_map = '<leader>t'
 "let g:ctrlp_match_window_bottom = 0