Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " 拡張子が .conf のINIファイル。
- " ファイルタイプが未決定で、拡張子が .conf、かつファイル先頭から300行以内に
- " [セクション] 行があるファイルをINIファイルと見做す。
- autocmd BufNewFile,BufRead *.conf
- \ if !did_filetype() && search('^\s*\[.\+\]\s*$', 'nw', 300) |
- \ set filetype=dosini |
- \ endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement