summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTharre <tharre3@gmail.com>2019-03-03 17:53:34 +0100
committerTharre <tharre3@gmail.com>2019-03-03 17:53:34 +0100
commit9e44aaa91f6b04380c747396968812f6a794576d (patch)
tree270e3b317e3f4b368a60cffaa1d66b5050c78282
parentd4cdb8c3cd0ca0c179a5646bed1a3ee85bbd47b9 (diff)
downloaddotfiles-9e44aaa91f6b04380c747396968812f6a794576d.tar.gz
dotfiles-9e44aaa91f6b04380c747396968812f6a794576d.tar.xz
dotfiles-9e44aaa91f6b04380c747396968812f6a794576d.zip
vim: fix bug when both md and other files are open
-rw-r--r--.vimrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/.vimrc b/.vimrc
index 4654c6a..a332db5 100644
--- a/.vimrc
+++ b/.vimrc
@@ -121,7 +121,7 @@ nnoremap <leader><space> :nohlsearch<CR>
" filetype specific {{{
" Markdown
-autocmd BufRead,BufNew *.md set filetype=markdown
+autocmd BufRead,BufNewFile *.md set filetype=markdown
" java
au BufNewFile,BufRead *.java set tabstop=4 softtabstop=4 shiftwidth=4 cc=121