Enhanced filetype detection in Vim

Ryuichi Hayashida lin90162 at gmail.com
Sun Apr 19 09:21:55 PDT 2015


Hi,

I wrote scripts.vim to detect the 'llvm' filetype even if vim reads
LLVM assembly from STDIN.
For example, you will be able to read an optimized LLVM assembly
output by opt using vim directly as below:

$ opt -S something.ll | vim -R -

All users need is putting scripts.vim into ~/.vim.
This enhanced filetype detection is a Vim's official way. Please see
:help new-filetype-scripts for more detail.

I attached a patch in this email.
Could you review the patch and take into LLVM if it looks good?

Thanks,
Ryuichi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vim-enhanced-filetype-detection.patch
Type: application/octet-stream
Size: 1560 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150420/dd7271f7/attachment.obj>


More information about the llvm-commits mailing list