Permalink
Browse files

Move markdown config from .vimrc to ftplugin

  • Loading branch information...
1 parent 85d64db commit e905f85cc5e8eb6027888bb544c1bd478772263f @nelstrom committed Jan 21, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −0 vim/ftplugin/markdown.vim
  2. +0 −1 vimrc
@@ -1,3 +1,5 @@
+setlocal wrap linebreak nolist
+
function! NestedMarkdownFolds()
if match(getline(v:lnum), "^#\\{6}") >= 0
return ">6"
View
1 vimrc
@@ -91,7 +91,6 @@ if has("autocmd")
autocmd FileType html,css,scss,ruby,pml,yaml,coffee,vim setlocal ts=2 sts=2 sw=2 expandtab
autocmd FileType javascript setlocal ts=4 sts=4 sw=4 noexpandtab
autocmd BufNewFile,BufRead ~/projects/sencha/**/*.js setlocal ts=4 sts=4 sw=4 et
- autocmd FileType markdown setlocal wrap linebreak nolist
autocmd BufNewFile,BufRead *.rss setfiletype xml
autocmd BufNewFile,BufRead Rakefile,Capfile,Gemfile,Termfile,Vagrantfile,config.ru setfiletype ruby
autocmd FileType ruby :Abolish -buffer initialise initialize

0 comments on commit e905f85

Please sign in to comment.