diff options
author | Jevgeni Zelenkov <jevgeni.zelenkov@gmail.com> | 2014-08-22 00:48:18 +0200 |
---|---|---|
committer | Mathias Bynens <mathias@qiwi.be> | 2014-08-22 21:53:08 +0200 |
commit | c0b127000f37823c52fa347cc395fde8f2c62ff0 (patch) | |
tree | cbf30f5730fc52ec76e8815c4e3369e82e9a8f7d | |
parent | ba2f121e8fc458daa5ec0c6eff46a124b831be84 (diff) | |
download | dotfiles-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-- | .vimrc | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |