paramita 发表于 2004-9-20 11:50:42

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

在kde3.3下使用gvim6.3, 设置/etc/vim/gvimrc
set background=dark
没有用,现在只能在菜单里面设置背景色,
但是每次都要设置很麻烦。请问,在gvim
应该如何设置该项?
还有一个问题,如何设置gvim的filetype 自动判定?
用gvim打开c文件时居然还要我自己设置
set filetype=c
[注]已经设置syntax on

Ivn 发表于 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

paramita 发表于 2004-9-20 18:27:50

果然如此。谢谢。
页: [1]
查看完整版本: 请问如何设置gvim的背景色?