QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2970|回复: 2

请问如何设置gvim的背景色?

[复制链接]
发表于 2004-9-20 11:50:42 | 显示全部楼层 |阅读模式
在kde3.3下使用gvim6.3, 设置/etc/vim/gvimrc
set background=dark

没有用,现在只能在菜单里面设置背景色,
但是每次都要设置很麻烦。请问,在gvim
应该如何设置该项?
还有一个问题,如何设置gvim的filetype 自动判定?
用gvim打开c文件时居然还要我自己设置
set filetype=c

[注]已经设置syntax on
发表于 2004-9-20 16:40:38 | 显示全部楼层
echo "colorscheme desert" >> ~/.vimrc
--
:help ft

vim --version
VIM - Vi IMproved 6.3 (2004 June 7, compiled Jul 11 2004 23:29:16)
Included patches: 1-13
Compiled by Norbert Tretkowski <[email protected]>
Big version without GUI.  Features included (+) or not (-):
+arabic +autocmd -balloon_eval -browse ++builtin_terms +byte_offset +cindent
-clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
+cryptv +cscope +dialog_con +diff +digraphs -dnd -ebcdic +emacs_tags +eval
+ex_extra +extra_search +farsi +file_in_path +find_in_path +folding -footer
+fork() +gettext -hangul_input +iconv +insert_expand +jumplist +keymap +langmap
+libcall +linebreak +lispindent +listcmds +localmap +menu +mksession
+modify_fname +mouse -mouseshape +mouse_dec +mouse_gpm -mouse_jsbterm
+mouse_netterm +mouse_xterm +multi_byte +multi_lang -netbeans_intg -osfiletype
+path_extra -perl +postscript +printer -python +quickfix +rightleft -ruby
+scrollbind +signs +smartindent -sniff +statusline -sun_workshop +syntax
+tag_binary +tag_old_static -tag_any_white -tcl +terminfo +termresponse
+textobjects +title -toolbar +user_commands +vertsplit +virtualedit +visual
+visualextra +viminfo +vreplace +wildignore +wildmenu +windows +writebackup
-X11 -xfontset -xim -xsmp -xterm_clipboard -xterm_save
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
      user exrc file: "$HOME/.exrc"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H     -O2 -g -Wall      
Linking: gcc   -L/usr/local/lib -o vim       -lncurses -lgpm -ldl
回复

使用道具 举报

 楼主| 发表于 2004-9-20 18:27:50 | 显示全部楼层
果然如此。谢谢。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-10-5 06:21 , Processed in 0.066305 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表