希望大家帮忙想想!还有就是,我用终端打开gvim时,会出现:** (gvim:6234): CRITICAL **: gtk_form_set_static_gravity: assertion `static_gravity_supported' failed
不知道是不是这个的问题...

代码: 全选
1 syntax enable
2 colorscheme desert
3 inoremap <Nul> <C-x><C-o>
4 set shiftwidth=4
5 set softtabstop=4
6 set nu!
7 set ai!
8 set cin!
9 set foldmethod=indent
10 syntax on
11
12 " C编译
13 map <F5> :call CompileRunGcc()<CR>
14 func! CompileRunGcc()
15 exec "w"
16 exec "!gcc -Wall -g % -o %<"
17 exec "! ./%<"
18 endfunc
19
20 let &termencoding=&encoding
21 set fileencodings=utf-8,gbk,ucs-bom,cp936