From a46d726da15ad92357acc166f8e8076b2d764800 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Tue, 20 Dec 2011 09:13:15 -0600 Subject: [PATCH] .vimrc: autocmd *.markdown set filetype=octopress --- .vimrc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.vimrc b/.vimrc index 12d4eb4..f7f4b55 100644 --- a/.vimrc +++ b/.vimrc @@ -190,9 +190,6 @@ cnoremap au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | \ exe "normal g'\"" | endif -" don't use cindent for javascript -autocmd FileType javascript setlocal nocindent - " ---------------------------------------------------------------------------- " LookupFile " ---------------------------------------------------------------------------- @@ -245,7 +242,7 @@ let g:is_bash = 1 " --------------------------------------------------------------------------- function! StripWhitespace () - exec ':%s/ \+$//gc' + exec ':%s/ \+$//gc' endfunction map ,s :call StripWhitespace () @@ -254,7 +251,11 @@ map ,s :call StripWhitespace () " --------------------------------------------------------------------------- au Filetype gitcommit set tw=68 spell -"au Filetype html,xml,xsl,rhtml source $HOME/.vim/scripts/closetag.vim +au Filetype html,xml,xsl,rhtml source $HOME/.vim/scripts/closetag.vim +" don't use cindent for javascript +au FileType javascript setlocal nocindent +" Use Octopress syntax-highlighting for *.markdown files +au BufNewFile,BufRead *.markdown set filetype=octopress " -------------------------------------------------------------------------- " ManPageView -- 2.47.1