We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7278383 commit 802327dCopy full SHA for 802327d
.vimrc
@@ -139,7 +139,7 @@ func SetTitle()
139
call append(line(".")+4, " ************************************************************************/")
140
call append(line(".")+5, "")
141
endif
142
- if &filetype == 'cpp'
+ if expand("%:e") == 'cpp'
143
call append(line(".")+6, "#include<iostream>")
144
call append(line(".")+7, "using namespace std;")
145
call append(line(".")+8, "")
@@ -148,6 +148,11 @@ func SetTitle()
148
call append(line(".")+6, "#include<stdio.h>")
149
call append(line(".")+7, "")
150
151
+ if expand("%:e")== 'h'
152
+ call append(line(".")+6, "#ifndef _".toupper(expand("%:r"))."_H")
153
+ call append(line(".")+7, "#define _".toupper(expand("%:r"))."_H")
154
+ call append(line(".")+8, "#endif")
155
+ endif
156
if &filetype == 'java'
157
call append(line(".")+6,"public class ".expand("%:r"))
158
call append(line(".")+7,"")
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments