aboutsummaryrefslogtreecommitdiff
path: root/vim/filetype.vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-20 10:19:51 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-20 10:22:49 +1200
commit07e10e0c6cf47e92d92855671f9ea26e9a1ac575 (patch)
tree29ba15593d871d2a4a391f3345b5dc944da356d6 /vim/filetype.vim
parentMerge branch 'release/v6.34.0' into develop (diff)
downloaddotfiles-07e10e0c6cf47e92d92855671f9ea26e9a1ac575.tar.gz
dotfiles-07e10e0c6cf47e92d92855671f9ea26e9a1ac575.zip
Rename vimrc and gvimrc to have .vim suffix
Since they don't need to have the same names when installed, this makes it marginally easier to set filetypes without special paths.
Diffstat (limited to 'vim/filetype.vim')
-rw-r--r--vim/filetype.vim12
1 files changed, 3 insertions, 9 deletions
diff --git a/vim/filetype.vim b/vim/filetype.vim
index 219ec819..a439be3a 100644
--- a/vim/filetype.vim
+++ b/vim/filetype.vim
@@ -397,15 +397,9 @@ augroup filetypedetect
" VimL files
autocmd BufNewFile,BufRead
\ ?*.vim
- \,*.exrc
- \,*.gvimrc
- \,*.vimrc
- \,_exrc
- \,_gvimrc
- \,_vimrc
- \,exrc
- \,gvimrc
- \,vimrc
+ \,.exrc
+ \,[._]gvimrc
+ \,[._]vimrc
\ setfiletype vim
" .viminfo files
autocmd BufNewFile,BufRead