aboutsummaryrefslogtreecommitdiff
path: root/vim/filetype.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/filetype.vim')
-rw-r--r--vim/filetype.vim36
1 files changed, 23 insertions, 13 deletions
diff --git a/vim/filetype.vim b/vim/filetype.vim
index accbe20b..eea7f1f5 100644
--- a/vim/filetype.vim
+++ b/vim/filetype.vim
@@ -73,6 +73,7 @@ augroup filetypedetect
\ sources.list
\,*/etc/apt/sources.list.d/*.list
\ setfiletype debsources
+ " Desktop files
autocmd BufNewFile,BufRead
\ ?*.desktop
\,?*.directory
@@ -94,6 +95,10 @@ augroup filetypedetect
autocmd BufNewFile,BufRead
\ ?*.dot
\ setfiletype dot
+ " NFS exports
+ autocmd BufNewFile,BufRead
+ \ exports
+ \ setfiletype exports
" Forth
autocmd BufNewFile,BufRead
\ ?*.fs,?*.ft
@@ -151,8 +156,8 @@ augroup filetypedetect
\ setfiletype group
" GTK settings files
autocmd BufNewFile,BufRead
- \ .gktrc*
- \,gktrc*
+ \ .gtkrc*
+ \,gtkrc*
\ setfiletype gtkrc
" Vim help files
autocmd BufNewFile,BufRead
@@ -363,6 +368,10 @@ augroup filetypedetect
autocmd BufNewFile,BufRead
\ ?*.rb
\ setfiletype ruby
+ " Rust
+ autocmd BufNewFile,BufRead
+ \ ?*.rs
+ \ setfiletype rust
" Samba config
autocmd BufNewFile,BufRead
\ smb.conf
@@ -412,6 +421,7 @@ augroup filetypedetect
\,.shinit
\,.shrc
\,.xinitrc
+ \,.xprofile
\,.xsession
\,.xsessionrc
\,*/etc/default/*
@@ -420,6 +430,7 @@ augroup filetypedetect
\,shinit
\,shrc
\,xinitrc
+ \,xprofile
\,xsession
\,xsessionrc
\,*/etc/X11/xinit
@@ -432,18 +443,23 @@ augroup filetypedetect
\ ?*.sql
\ setfiletype sql
" OpenSSH configuration
+ "" client
autocmd BufNewFile,BufRead
- \ ssh_config,*/.ssh/config
+ \ ssh_config
+ \,*/ssh_config.d/*.conf
+ \,*/.ssh/config,
+ \,*/.ssh/config.d/*.conf
\ setfiletype sshconfig
+ "" server
+ autocmd BufNewFile,BufRead
+ \ sshd_config
+ \,*/sshd_config.d/*.conf
+ \ setfiletype sshdconfig
" sudoers(5)
autocmd BufNewFile,BufRead
\ sudoers
\,sudoers.tmp
\ setfiletype sudoers
- " OpenSSH server configuration
- autocmd BufNewFile,BufRead
- \ sshd_config
- \ setfiletype sshdconfig
" Subversion commit
autocmd BufNewFile,BufRead
\ svn-commit*.tmp
@@ -465,10 +481,6 @@ augroup filetypedetect
autocmd BufNewFile,BufRead
\ ?*.ti
\ setfiletype terminfo
- " TextEditorAnywhere text field
- autocmd BufNewFile,BufRead
- \ TextEditorAnywhere_??_??_??.txt
- \ setfiletype textarea
" Tidy config
autocmd BufNewFile,BufRead
\ .tidyrc
@@ -511,9 +523,7 @@ augroup filetypedetect
" Add automatic commands to find .Xresources subfiles
autocmd BufNewFile,BufRead
\ .Xresources
- \,*/.Xresources.d/*
\,Xresources
- \,*/Xresources.d/*
\ setfiletype xdefaults
" XHTML files
autocmd BufNewFile,BufRead