Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit77cf9ef

Browse files
committed
Merge pull request#2 from twobutts/master
added crunchbang support to ftdetect
2 parentseafcedf +c95dfe6 commit77cf9ef

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎ftdetect/moon.vim‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,11 @@
55
" License: WTFPL
66

77
autocmdBufNewFile,BufRead*.moonsetfiletype=moon
8+
9+
function!s:DetectMoon()
10+
ifgetline(1)=~'^#!.*\<moon\>'
11+
setfiletype=moon
12+
endif
13+
endfunction
14+
15+
autocmdBufNewFile,BufRead*calls:DetectMoon()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp