aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJevgeni Zelenkov <jevgeni.zelenkov@gmail.com>2014-08-22 00:48:18 +0200
committerMathias Bynens <mathias@qiwi.be>2014-08-22 21:53:08 +0200
commitc0b127000f37823c52fa347cc395fde8f2c62ff0 (patch)
treecbf30f5730fc52ec76e8815c4e3369e82e9a8f7d
parentba2f121e8fc458daa5ec0c6eff46a124b831be84 (diff)
downloaddotfiles-c0b127000f37823c52fa347cc395fde8f2c62ff0.tar.gz
dotfiles-c0b127000f37823c52fa347cc395fde8f2c62ff0.tar.bz2
dotfiles-c0b127000f37823c52fa347cc395fde8f2c62ff0.zip
.vimrc: Treat `.md` files as Markdown
`filetype` is set implicitly, without using setfiletype, because `*.md` is already associated with Modula-2 files and `setfiletype` doesn’t allow `filetype` to be set twice. `setlocal` is used to apply a new `filetype` value for each Markdown file as it is being added to the buffer. Fixes #418. Closes #419.
-rw-r--r--.vimrc2
1 files changed, 2 insertions, 0 deletions
diff --git a/.vimrc b/.vimrc
index 669d63f..e4c597c 100644
--- a/.vimrc
+++ b/.vimrc
@@ -100,4 +100,6 @@ if has("autocmd")
filetype on
" Treat .json files as .js
autocmd BufNewFile,BufRead *.json setfiletype json syntax=javascript
+ " Treat .md files as Markdown
+ autocmd BufNewFile,BufRead *.md setlocal filetype=markdown
endif