Skip to content

Commit

Permalink
Allow the user to turn off markdown autostyle. refs #527
Browse files Browse the repository at this point in the history
  • Loading branch information
kalbasit committed Apr 2, 2014
1 parent 4634dac commit 2e8acab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -413,6 +413,9 @@ to restrict the portion of the file that gets fixed.
Janus ships with a few additional syntaxes:

* Markdown (bound to \*.markdown, \*.md, and \*.mk)
* Markdown auto styling (disabled by setting
`g:disable_markdown_autostyle` in `~/.vimrc.before` => `let
g:disable_markdown_autostyle = 1`)
* Mustache (bound to \*.mustache)
* Haml (bound to \*.haml)
* Sass (bound to \*.sass)
Expand Down
4 changes: 3 additions & 1 deletion janus/vim/core/before/plugin/filetypes.vim
Expand Up @@ -18,7 +18,9 @@ if has("autocmd")

" Make sure all mardown files have the correct filetype set and setup wrapping
au BufRead,BufNewFile *.{md,markdown,mdown,mkd,mkdn,txt} setf markdown
au FileType markdown setlocal wrap linebreak textwidth=72 nolist
if !exists("g:disable_markdown_autostyle")
au FileType markdown setlocal wrap linebreak textwidth=72 nolist
endif

" Treat JSON files like JavaScript
au BufNewFile,BufRead *.json set ft=javascript
Expand Down

0 comments on commit 2e8acab

Please sign in to comment.