Initial commit
This commit is contained in:
commit
662fe0334c
37 changed files with 1614 additions and 0 deletions
2
vim/ftdetect/brainfuck.vim
Normal file
2
vim/ftdetect/brainfuck.vim
Normal file
|
@ -0,0 +1,2 @@
|
|||
au BufNewFile,BufRead *.bf set filetype=brainfuck
|
||||
au BufNewFile,BufRead *.b set filetype=brainfuck
|
18
vim/ftdetect/git.vim
Normal file
18
vim/ftdetect/git.vim
Normal file
|
@ -0,0 +1,18 @@
|
|||
" Git
|
||||
autocmd BufNewFile,BufRead *.git/COMMIT_EDITMSG set ft=gitcommit
|
||||
autocmd BufNewFile,BufRead *.git/config,.gitconfig,.gitmodules 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
|
1
vim/ftdetect/ledger.vim
Normal file
1
vim/ftdetect/ledger.vim
Normal file
|
@ -0,0 +1 @@
|
|||
au BufRead,BufNewFile *.ledger set filetype=ledger
|
Loading…
Add table
Add a link
Reference in a new issue