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

Commit 16a6eaa

Browse files
authored
Update .vimrc
支持c++11新特性
1 parent 5daff11 commit 16a6eaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎.vimrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ func! CompileRunGcc()
205205
exec "!g++ % -o %<"
206206
exec "!time ./%<"
207207
elseif &filetype == 'cpp'
208-
exec "!g++ % -o %<"
208+
exec "!g++ % -std=c++11 -o %<"
209209
exec "!time ./%<"
210210
elseif &filetype == 'java'
211211
exec "!javac %"
@@ -228,7 +228,7 @@ endfunc
228228
map <F8> :call Rungdb()<CR>
229229
func! Rungdb()
230230
exec "w"
231-
exec "!g++ % -g -o %<"
231+
exec "!g++ % -std=c++11 -g -o %<"
232232
exec "!gdb ./%<"
233233
endfunc
234234

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /