From 24e46e563d3ea4abe476f7e30f23ad8c87e04858 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miros=C5=82aw=20Prag=C5=82owski?= Date: Fri, 9 May 2014 22:29:33 +0200 Subject: [PATCH] added autoreload of vimrc, custom filetypes, support for markdown, cucumber & haml --- my_configs.vim | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/my_configs.vim b/my_configs.vim index 97f7303b..774da4d9 100644 --- a/my_configs.vim +++ b/my_configs.vim @@ -9,3 +9,32 @@ augroup VimCSS3Syntax autocmd! autocmd FileType css setlocal iskeyword+=- augroup END + +" autoreload .vimrc +augroup reload_vimrc " { + autocmd! + autocmd BufWritePost $MYVIMRC source $MYVIMRC +augroup END " } + +"""""""""""""""""""""""""""""" +" => my custom filetypes +""""""""""""""""""""""""""""""" + +" ruby +au FileType ruby,eruby setl ofu=rubycomplete#Complete +au FileType html,xhtml setl ofu=htmlcomplete#CompleteTags +au FileType css setl ofu=csscomplete#CompleteCSS + +" markdown +augroup markdown + au! BufRead,BufNewFile *.mkd setfiletype mkd + au! BufRead,BufNewFile *.markdown setfiletype mkd +augroup END + +" Cucumber +autocmd BufNewFile,BufReadPost *.feature,*.story set filetype=cucumber + +" haml +autocmd BufNewFile,BufRead *.haml setf haml +autocmd BufNewFile,BufRead *.sass setf sass +autocmd BufNewFile,BufRead *.scss setf scss