Advertisement
Guest User

Untitled

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