added autoreload of vimrc, custom filetypes, support for markdown, cucumber & haml
This commit is contained in:
parent
ddb4f9d42b
commit
24e46e563d
1 changed files with 29 additions and 0 deletions
|
@ -9,3 +9,32 @@ augroup VimCSS3Syntax
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd FileType css setlocal iskeyword+=-
|
autocmd FileType css setlocal iskeyword+=-
|
||||||
augroup END
|
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
|
||||||
|
|
Loading…
Reference in a new issue