From d7873996b43339f6d272ffa8e3616a4e5793dc26 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Mon, 16 Sep 2013 16:53:38 +0200 Subject: [PATCH] Concat ftdetect scripts and mention startup cost in the README --- README.md | 2 +- build | 7 +++ ftdetect/arduino.vim | 1 - ftdetect/clojure.vim | 1 - ftdetect/coffee.vim | 17 ------ ftdetect/csv.vim | 3 - ftdetect/cucumber.vim | 2 - ftdetect/elixir.vim | 2 - ftdetect/git.vim | 20 ------- ftdetect/gofiletype.vim | 23 -------- ftdetect/haml.vim | 3 - ftdetect/handlebars.vim | 3 - ftdetect/jade.vim | 2 - ftdetect/javascript.vim | 11 ---- ftdetect/json.vim | 8 --- ftdetect/jst.vim | 3 - ftdetect/less.vim | 1 - ftdetect/markdown.vim | 6 -- ftdetect/nginx.vim | 1 - ftdetect/polyglot.vim | 121 ++++++++++++++++++++++++++++++++++++++++ ftdetect/proto.vim | 1 - ftdetect/puppet.vim | 2 - ftdetect/ruby.vim | 62 -------------------- ftdetect/sbt.vim | 6 -- ftdetect/scala.vim | 8 --- ftdetect/slim.vim | 1 - ftdetect/stylus.vim | 3 - ftdetect/textile.vim | 8 --- ftdetect/tmux.vim | 1 - ftdetect/twig.vim | 5 -- 30 files changed, 129 insertions(+), 205 deletions(-) delete mode 100644 ftdetect/arduino.vim delete mode 100644 ftdetect/clojure.vim delete mode 100644 ftdetect/coffee.vim delete mode 100644 ftdetect/csv.vim delete mode 100644 ftdetect/cucumber.vim delete mode 100644 ftdetect/elixir.vim delete mode 100644 ftdetect/git.vim delete mode 100644 ftdetect/gofiletype.vim delete mode 100644 ftdetect/haml.vim delete mode 100644 ftdetect/handlebars.vim delete mode 100644 ftdetect/jade.vim delete mode 100644 ftdetect/javascript.vim delete mode 100644 ftdetect/json.vim delete mode 100644 ftdetect/jst.vim delete mode 100644 ftdetect/less.vim delete mode 100644 ftdetect/markdown.vim delete mode 100644 ftdetect/nginx.vim create mode 100644 ftdetect/polyglot.vim delete mode 100644 ftdetect/proto.vim delete mode 100644 ftdetect/puppet.vim delete mode 100644 ftdetect/ruby.vim delete mode 100644 ftdetect/sbt.vim delete mode 100644 ftdetect/scala.vim delete mode 100644 ftdetect/slim.vim delete mode 100644 ftdetect/stylus.vim delete mode 100644 ftdetect/textile.vim delete mode 100644 ftdetect/tmux.vim delete mode 100644 ftdetect/twig.vim diff --git a/README.md b/README.md index 88de5db..ae792d3 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ A collection of language packs for Vim. One to rule them all, one to find them, one to bring them all and in the darkness bind them. -- It **won't affect your startup time**, as all files are loaded only on demand. +- It **won't affect your startup time**, as scripts are loaded on demand (except 3ms for `ftdetect`). - It **installs 40x faster** (unparallelized), as language packs are not submoduled, but merged. - It clones even faster as all unnecessary files are ignored (like enormous documentation from php support). - Best syntax and indentation support. If someone releases better language pack, it will be replaced here. diff --git a/build b/build index f70d071..5b449ad 100755 --- a/build +++ b/build @@ -50,6 +50,12 @@ copy_dir() { done } +concat_ftdetect() { + cat ftdetect/* | grep -E '^[^"]' > tmp/polyglot.vim + rm -f ftdetect/* + mv tmp/polyglot.vim ftdetect/ +} + PACKS=" arduino:sudar/vim-arduino-syntax bundler:tpope/vim-bundler @@ -103,5 +109,6 @@ mkdir -p tmp printf "Downloading packs..." download "$PACKS" extract "$PACKS" +concat_ftdetect rm -rf tmp diff --git a/ftdetect/arduino.vim b/ftdetect/arduino.vim deleted file mode 100644 index 59bf48c..0000000 --- a/ftdetect/arduino.vim +++ /dev/null @@ -1 +0,0 @@ -au BufRead,BufNewFile *.ino,*.pde set filetype=arduino diff --git a/ftdetect/clojure.vim b/ftdetect/clojure.vim deleted file mode 100644 index 346308d..0000000 --- a/ftdetect/clojure.vim +++ /dev/null @@ -1 +0,0 @@ -au BufNewFile,BufRead *.clj,*.cljs,*.edn setf clojure diff --git a/ftdetect/coffee.vim b/ftdetect/coffee.vim deleted file mode 100644 index 5056929..0000000 --- a/ftdetect/coffee.vim +++ /dev/null @@ -1,17 +0,0 @@ -" Language: CoffeeScript -" Maintainer: Mick Koch -" URL: http://github.com/kchmck/vim-coffee-script -" License: WTFPL - -autocmd BufNewFile,BufRead *.coffee set filetype=coffee -autocmd BufNewFile,BufRead *Cakefile set filetype=coffee -autocmd BufNewFile,BufRead *.coffeekup,*.ck set filetype=coffee -autocmd BufNewFile,BufRead *._coffee set filetype=coffee - -function! s:DetectCoffee() - if getline(1) =~ '^#!.*\' - set filetype=coffee - endif -endfunction - -autocmd BufNewFile,BufRead * call s:DetectCoffee() diff --git a/ftdetect/csv.vim b/ftdetect/csv.vim deleted file mode 100644 index 4a8b0cc..0000000 --- a/ftdetect/csv.vim +++ /dev/null @@ -1,3 +0,0 @@ -" Install Filetype detection for CSV files -au BufRead,BufNewFile *.csv,*.dat,*.tsv,*.tab set filetype=csv - diff --git a/ftdetect/cucumber.vim b/ftdetect/cucumber.vim deleted file mode 100644 index f00f9e2..0000000 --- a/ftdetect/cucumber.vim +++ /dev/null @@ -1,2 +0,0 @@ -" Cucumber -autocmd BufNewFile,BufReadPost *.feature,*.story set filetype=cucumber diff --git a/ftdetect/elixir.vim b/ftdetect/elixir.vim deleted file mode 100644 index df413e1..0000000 --- a/ftdetect/elixir.vim +++ /dev/null @@ -1,2 +0,0 @@ -au BufRead,BufNewFile *.ex,*.exs set filetype=elixir -au FileType elixir setl sw=2 sts=2 et iskeyword+=!,? diff --git a/ftdetect/git.vim b/ftdetect/git.vim deleted file mode 100644 index b1b14e0..0000000 --- a/ftdetect/git.vim +++ /dev/null @@ -1,20 +0,0 @@ -" Git -autocmd BufNewFile,BufRead *.git/{,modules/**/}{COMMIT_EDIT,MERGE_}MSG set ft=gitcommit -autocmd BufNewFile,BufRead *.git/config,.gitconfig,.gitmodules set ft=gitconfig -autocmd BufNewFile,BufRead */.config/git/config set ft=gitconfig -autocmd BufNewFile,BufRead *.git/modules/**/config set ft=gitconfig -autocmd BufNewFile,BufRead git-rebase-todo set ft=gitrebase -autocmd BufNewFile,BufRead .msg.[0-9]* - \ if getline(1) =~ '^From.*# This line is ignored.$' | - \ set ft=gitsendemail | - \ endif -autocmd BufNewFile,BufRead *.git/** - \ if getline(1) =~ '^\x\{40\}\>\|^ref: ' | - \ set ft=git | - \ endif - -" This logic really belongs in scripts.vim -autocmd BufNewFile,BufRead,StdinReadPost * - \ if getline(1) =~ '^\(commit\|tree\|object\) \x\{40\}\>\|^tag \S\+$' | - \ set ft=git | - \ endif diff --git a/ftdetect/gofiletype.vim b/ftdetect/gofiletype.vim deleted file mode 100644 index b658f6b..0000000 --- a/ftdetect/gofiletype.vim +++ /dev/null @@ -1,23 +0,0 @@ -" We take care to preserve the user's fileencodings and fileformats, -" because those settings are global (not buffer local), yet we want -" to override them for loading Go files, which are defined to be UTF-8. -let s:current_fileformats = '' -let s:current_fileencodings = '' - -" define fileencodings to open as utf-8 encoding even if it's ascii. -function! s:gofiletype_pre() - let s:current_fileformats = &g:fileformats - let s:current_fileencodings = &g:fileencodings - set fileencodings=utf-8 fileformats=unix - setlocal filetype=go -endfunction - -" restore fileencodings as others -function! s:gofiletype_post() - let &g:fileformats = s:current_fileformats - let &g:fileencodings = s:current_fileencodings -endfunction - -au BufNewFile *.go setlocal filetype=go fileencoding=utf-8 fileformat=unix -au BufRead *.go call s:gofiletype_pre() -au BufReadPost *.go call s:gofiletype_post() diff --git a/ftdetect/haml.vim b/ftdetect/haml.vim deleted file mode 100644 index bf1de75..0000000 --- a/ftdetect/haml.vim +++ /dev/null @@ -1,3 +0,0 @@ -autocmd BufNewFile,BufRead *.haml,*.hamlbars setf haml -autocmd BufNewFile,BufRead *.sass setf sass -autocmd BufNewFile,BufRead *.scss setf scss diff --git a/ftdetect/handlebars.vim b/ftdetect/handlebars.vim deleted file mode 100644 index 45198d6..0000000 --- a/ftdetect/handlebars.vim +++ /dev/null @@ -1,3 +0,0 @@ -if has("autocmd") - au BufNewFile,BufRead *.{handlebars,hb,hbs,hbt}{,.erb} set ft=html syntax=handlebars | runtime! ftplugin/handlebars.vim ftplugin/handlebars*.vim ftplugin/handlebars/*.vim -endif diff --git a/ftdetect/jade.vim b/ftdetect/jade.vim deleted file mode 100644 index c21dcff..0000000 --- a/ftdetect/jade.vim +++ /dev/null @@ -1,2 +0,0 @@ -" Jade -autocmd BufNewFile,BufReadPost *.jade set filetype=jade diff --git a/ftdetect/javascript.vim b/ftdetect/javascript.vim deleted file mode 100644 index 805e197..0000000 --- a/ftdetect/javascript.vim +++ /dev/null @@ -1,11 +0,0 @@ -au BufNewFile,BufRead *.js setf javascript -au BufNewFile,BufRead *.jsm setf javascript -au BufNewFile,BufRead *.json setf javascript -au BufNewFile,BufRead Jakefile setf javascript - -fun! s:SelectJavascript() - if getline(1) =~# '^#!.*/bin/env\s\+node\>' - set ft=javascript - endif -endfun -au BufNewFile,BufRead * call s:SelectJavascript() diff --git a/ftdetect/json.vim b/ftdetect/json.vim deleted file mode 100644 index 5f6757d..0000000 --- a/ftdetect/json.vim +++ /dev/null @@ -1,8 +0,0 @@ -autocmd BufNewFile,BufRead *.json set filetype=json - -augroup json_autocmd - autocmd! - autocmd FileType json setlocal autoindent - autocmd FileType json setlocal formatoptions=tcq2l - autocmd FileType json setlocal foldmethod=syntax -augroup END diff --git a/ftdetect/jst.vim b/ftdetect/jst.vim deleted file mode 100644 index 2ec5936..0000000 --- a/ftdetect/jst.vim +++ /dev/null @@ -1,3 +0,0 @@ -au BufNewFile,BufRead *.ejs set filetype=jst -au BufNewFile,BufRead *.jst set filetype=jst -au BufNewFile,BufRead *.hamljs set filetype=jst diff --git a/ftdetect/less.vim b/ftdetect/less.vim deleted file mode 100644 index f1cb1d7..0000000 --- a/ftdetect/less.vim +++ /dev/null @@ -1 +0,0 @@ -autocmd BufNewFile,BufRead *.less setf less diff --git a/ftdetect/markdown.vim b/ftdetect/markdown.vim deleted file mode 100644 index 1c5a36a..0000000 --- a/ftdetect/markdown.vim +++ /dev/null @@ -1,6 +0,0 @@ -autocmd BufNewFile,BufRead *.markdown,*.md,*.mdown,*.mkd,*.mkdn - \ if &ft =~# '^\%(conf\|modula2\)$' | - \ set ft=markdown | - \ else | - \ setf markdown | - \ endif diff --git a/ftdetect/nginx.vim b/ftdetect/nginx.vim deleted file mode 100644 index 45bb1c1..0000000 --- a/ftdetect/nginx.vim +++ /dev/null @@ -1 +0,0 @@ -au BufRead,BufNewFile /etc/nginx/*,/usr/local/nginx/*,*/nginx/vhosts.d/*,nginx.conf if &ft == '' | setfiletype nginx | endif diff --git a/ftdetect/polyglot.vim b/ftdetect/polyglot.vim new file mode 100644 index 0000000..7ca5abb --- /dev/null +++ b/ftdetect/polyglot.vim @@ -0,0 +1,121 @@ +au BufRead,BufNewFile *.ino,*.pde set filetype=arduino +au BufNewFile,BufRead *.clj,*.cljs,*.edn setf clojure +autocmd BufNewFile,BufRead *.coffee set filetype=coffee +autocmd BufNewFile,BufRead *Cakefile set filetype=coffee +autocmd BufNewFile,BufRead *.coffeekup,*.ck set filetype=coffee +autocmd BufNewFile,BufRead *._coffee set filetype=coffee +function! s:DetectCoffee() + if getline(1) =~ '^#!.*\' + set filetype=coffee + endif +endfunction +autocmd BufNewFile,BufRead * call s:DetectCoffee() +au BufRead,BufNewFile *.csv,*.dat,*.tsv,*.tab set filetype=csv +autocmd BufNewFile,BufReadPost *.feature,*.story set filetype=cucumber +au BufRead,BufNewFile *.ex,*.exs set filetype=elixir +au FileType elixir setl sw=2 sts=2 et iskeyword+=!,? +autocmd BufNewFile,BufRead *.git/{,modules/**/}{COMMIT_EDIT,MERGE_}MSG set ft=gitcommit +autocmd BufNewFile,BufRead *.git/config,.gitconfig,.gitmodules set ft=gitconfig +autocmd BufNewFile,BufRead */.config/git/config set ft=gitconfig +autocmd BufNewFile,BufRead *.git/modules/**/config set ft=gitconfig +autocmd BufNewFile,BufRead git-rebase-todo set ft=gitrebase +autocmd BufNewFile,BufRead .msg.[0-9]* + \ if getline(1) =~ '^From.*# This line is ignored.$' | + \ set ft=gitsendemail | + \ endif +autocmd BufNewFile,BufRead *.git/** + \ if getline(1) =~ '^\x\{40\}\>\|^ref: ' | + \ set ft=git | + \ endif +autocmd BufNewFile,BufRead,StdinReadPost * + \ if getline(1) =~ '^\(commit\|tree\|object\) \x\{40\}\>\|^tag \S\+$' | + \ set ft=git | + \ endif +let s:current_fileformats = '' +let s:current_fileencodings = '' +function! s:gofiletype_pre() + let s:current_fileformats = &g:fileformats + let s:current_fileencodings = &g:fileencodings + set fileencodings=utf-8 fileformats=unix + setlocal filetype=go +endfunction +function! s:gofiletype_post() + let &g:fileformats = s:current_fileformats + let &g:fileencodings = s:current_fileencodings +endfunction +au BufNewFile *.go setlocal filetype=go fileencoding=utf-8 fileformat=unix +au BufRead *.go call s:gofiletype_pre() +au BufReadPost *.go call s:gofiletype_post() +autocmd BufNewFile,BufRead *.haml,*.hamlbars setf haml +autocmd BufNewFile,BufRead *.sass setf sass +autocmd BufNewFile,BufRead *.scss setf scss +if has("autocmd") + au BufNewFile,BufRead *.{handlebars,hb,hbs,hbt}{,.erb} set ft=html syntax=handlebars | runtime! ftplugin/handlebars.vim ftplugin/handlebars*.vim ftplugin/handlebars/*.vim +endif +autocmd BufNewFile,BufReadPost *.jade set filetype=jade +au BufNewFile,BufRead *.js setf javascript +au BufNewFile,BufRead *.jsm setf javascript +au BufNewFile,BufRead *.json setf javascript +au BufNewFile,BufRead Jakefile setf javascript +fun! s:SelectJavascript() + if getline(1) =~# '^#!.*/bin/env\s\+node\>' + set ft=javascript + endif +endfun +au BufNewFile,BufRead * call s:SelectJavascript() +autocmd BufNewFile,BufRead *.json set filetype=json +augroup json_autocmd + autocmd! + autocmd FileType json setlocal autoindent + autocmd FileType json setlocal formatoptions=tcq2l + autocmd FileType json setlocal foldmethod=syntax +augroup END +au BufNewFile,BufRead *.ejs set filetype=jst +au BufNewFile,BufRead *.jst set filetype=jst +au BufNewFile,BufRead *.hamljs set filetype=jst +autocmd BufNewFile,BufRead *.less setf less +autocmd BufNewFile,BufRead *.markdown,*.md,*.mdown,*.mkd,*.mkdn + \ if &ft =~# '^\%(conf\|modula2\)$' | + \ set ft=markdown | + \ else | + \ setf markdown | + \ endif +au BufRead,BufNewFile /etc/nginx/*,/usr/local/nginx/*,*/nginx/vhosts.d/*,nginx.conf if &ft == '' | setfiletype nginx | endif +autocmd BufNewFile,BufRead *.proto setfiletype proto +au BufRead,BufNewFile *.pp set filetype=puppet +au BufNewFile,BufRead *.rb,*.rbw,*.gemspec set filetype=ruby +au BufNewFile,BufRead *.builder,*.rxml,*.rjs set filetype=ruby +au BufNewFile,BufRead [rR]akefile,*.rake set filetype=ruby +au BufNewFile,BufRead [rR]antfile,*.rant set filetype=ruby +au BufNewFile,BufRead .irbrc,irbrc set filetype=ruby +au BufNewFile,BufRead .pryrc set filetype=ruby +au BufNewFile,BufRead *.ru set filetype=ruby +au BufNewFile,BufRead Capfile set filetype=ruby +au BufNewFile,BufRead Gemfile set filetype=ruby +au BufNewFile,BufRead Guardfile,.Guardfile set filetype=ruby +au BufNewFile,BufRead Cheffile set filetype=ruby +au BufNewFile,BufRead Berksfile set filetype=ruby +au BufNewFile,BufRead [vV]agrantfile set filetype=ruby +au BufNewFile,BufRead .autotest set filetype=ruby +au BufNewFile,BufRead *.erb,*.rhtml set filetype=eruby +au BufNewFile,BufRead [tT]horfile,*.thor set filetype=ruby +au BufNewFile,BufRead *.rabl set filetype=ruby +au BufNewFile,BufRead *.jbuilder set filetype=ruby +au BufNewFile,BufRead Puppetfile set filetype=ruby +au BufNewFile,BufRead [Bb]uildfile set filetype=ruby +au BufNewFile,BufRead Appraisals set filetype=ruby +au BufRead,BufNewFile *.sbt set filetype=sbt +fun! s:DetectScala() + if getline(1) == '#!/usr/bin/env scala' + set filetype=scala + endif +endfun +au BufRead,BufNewFile *.scala,*.sbt set filetype=scala +au BufRead,BufNewFile * call s:DetectScala() +autocmd BufNewFile,BufRead *.slim setf slim +autocmd BufNewFile,BufReadPost *.styl set filetype=stylus +autocmd BufNewFile,BufReadPost *.stylus set filetype=stylus +au BufRead,BufNewFile *.textile set filetype=textile +autocmd BufNewFile,BufRead .tmux.conf*,tmux.conf* setf tmux +autocmd BufNewFile,BufRead *.twig set filetype=twig +autocmd BufNewFile,BufRead *.html.twig set filetype=html.twig diff --git a/ftdetect/proto.vim b/ftdetect/proto.vim deleted file mode 100644 index 3974660..0000000 --- a/ftdetect/proto.vim +++ /dev/null @@ -1 +0,0 @@ -autocmd BufNewFile,BufRead *.proto setfiletype proto diff --git a/ftdetect/puppet.vim b/ftdetect/puppet.vim deleted file mode 100644 index c9d15ea..0000000 --- a/ftdetect/puppet.vim +++ /dev/null @@ -1,2 +0,0 @@ -" detect puppet filetype -au BufRead,BufNewFile *.pp set filetype=puppet diff --git a/ftdetect/ruby.vim b/ftdetect/ruby.vim deleted file mode 100644 index a4e9a6d..0000000 --- a/ftdetect/ruby.vim +++ /dev/null @@ -1,62 +0,0 @@ -" Ruby -au BufNewFile,BufRead *.rb,*.rbw,*.gemspec set filetype=ruby - -" Ruby on Rails -au BufNewFile,BufRead *.builder,*.rxml,*.rjs set filetype=ruby - -" Rakefile -au BufNewFile,BufRead [rR]akefile,*.rake set filetype=ruby - -" Rantfile -au BufNewFile,BufRead [rR]antfile,*.rant set filetype=ruby - -" IRB config -au BufNewFile,BufRead .irbrc,irbrc set filetype=ruby - -" Pry config -au BufNewFile,BufRead .pryrc set filetype=ruby - -" Rackup -au BufNewFile,BufRead *.ru set filetype=ruby - -" Capistrano -au BufNewFile,BufRead Capfile set filetype=ruby - -" Bundler -au BufNewFile,BufRead Gemfile set filetype=ruby - -" Guard -au BufNewFile,BufRead Guardfile,.Guardfile set filetype=ruby - -" Chef -au BufNewFile,BufRead Cheffile set filetype=ruby -au BufNewFile,BufRead Berksfile set filetype=ruby - -" Vagrant -au BufNewFile,BufRead [vV]agrantfile set filetype=ruby - -" Autotest -au BufNewFile,BufRead .autotest set filetype=ruby - -" eRuby -au BufNewFile,BufRead *.erb,*.rhtml set filetype=eruby - -" Thor -au BufNewFile,BufRead [tT]horfile,*.thor set filetype=ruby - -" Rabl -au BufNewFile,BufRead *.rabl set filetype=ruby - -" Jbuilder -au BufNewFile,BufRead *.jbuilder set filetype=ruby - -" Puppet librarian -au BufNewFile,BufRead Puppetfile set filetype=ruby -" -" Buildr Buildfile -au BufNewFile,BufRead [Bb]uildfile set filetype=ruby - -" Appraisal -au BufNewFile,BufRead Appraisals set filetype=ruby - -" vim: nowrap sw=2 sts=2 ts=8 noet: diff --git a/ftdetect/sbt.vim b/ftdetect/sbt.vim deleted file mode 100644 index a508530..0000000 --- a/ftdetect/sbt.vim +++ /dev/null @@ -1,6 +0,0 @@ -" Vim detect file -" Language: sbt -" Maintainer: Derek Wyatt -" Last Change: 2012 Jan 19 - -au BufRead,BufNewFile *.sbt set filetype=sbt diff --git a/ftdetect/scala.vim b/ftdetect/scala.vim deleted file mode 100644 index 997a701..0000000 --- a/ftdetect/scala.vim +++ /dev/null @@ -1,8 +0,0 @@ -fun! s:DetectScala() - if getline(1) == '#!/usr/bin/env scala' - set filetype=scala - endif -endfun - -au BufRead,BufNewFile *.scala,*.sbt set filetype=scala -au BufRead,BufNewFile * call s:DetectScala() diff --git a/ftdetect/slim.vim b/ftdetect/slim.vim deleted file mode 100644 index b3415ce..0000000 --- a/ftdetect/slim.vim +++ /dev/null @@ -1 +0,0 @@ -autocmd BufNewFile,BufRead *.slim setf slim diff --git a/ftdetect/stylus.vim b/ftdetect/stylus.vim deleted file mode 100644 index 49e04ec..0000000 --- a/ftdetect/stylus.vim +++ /dev/null @@ -1,3 +0,0 @@ -" Stylus -autocmd BufNewFile,BufReadPost *.styl set filetype=stylus -autocmd BufNewFile,BufReadPost *.stylus set filetype=stylus diff --git a/ftdetect/textile.vim b/ftdetect/textile.vim deleted file mode 100644 index d02f942..0000000 --- a/ftdetect/textile.vim +++ /dev/null @@ -1,8 +0,0 @@ -" textile.vim -" -" Tim Harper (tim.theenchanter.com) - -" Force filetype to be textile even if already set -" This will override the system ftplugin/changelog -" set on some distros -au BufRead,BufNewFile *.textile set filetype=textile diff --git a/ftdetect/tmux.vim b/ftdetect/tmux.vim deleted file mode 100644 index 62cad9d..0000000 --- a/ftdetect/tmux.vim +++ /dev/null @@ -1 +0,0 @@ -autocmd BufNewFile,BufRead .tmux.conf*,tmux.conf* setf tmux diff --git a/ftdetect/twig.vim b/ftdetect/twig.vim deleted file mode 100644 index 06b70e2..0000000 --- a/ftdetect/twig.vim +++ /dev/null @@ -1,5 +0,0 @@ -" Twig -autocmd BufNewFile,BufRead *.twig set filetype=twig - -" HTML Twig -autocmd BufNewFile,BufRead *.html.twig set filetype=html.twig