Skip to content

Commit

Permalink
I guess markdown comes with an ftdetect plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
wycats committed Aug 10, 2010
1 parent 73aff94 commit 4dd1d06
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,14 @@ let NERDTreeIgnore=['\.rbc$', '\~$']
map <Leader>rt :!ctags --extra=+f -R *<CR><CR>
" make and python use real tabs
au FileType make set noexpandtab
au FileType python set noexpandtab
au FileType make set noexpandtab
au FileType python set noexpandtab

" Thorfile, Rakefile and Gemfile are Ruby
au BufRead,BufNewFile {Gemfile,Rakefile,Thorfile} set ft=ruby
au BufRead,BufNewFile {Gemfile,Rakefile,Thorfile} set ft=ruby

" md, markdown, and mk are markdown and define buffer-local preview
au BufRead,BufNewFile *.{md,markdown,mk} set ft=markdown
au BufRead,BufNewFile *.{md,markdown,mk} map <buffer> <Leader>p :Mm <CR>
au BufRead,BufNewFile *.{md,markdown,mdown,mkd,mkdn} map <buffer> <Leader>p :Mm <CR>
" allow backspacing over everything in insert mode
set backspace=indent,eol,start
Expand Down

0 comments on commit 4dd1d06

Please sign in to comment.