我正在嘗試爲gvim找到一個最佳字體來在C/C++中編程。什麼是用於C/C++編程的良好gvim guifont
我目前在〜/ .gvimrc裏下面,我不喜歡它:
if has("gui_gtk2")
set guifont=MiscFixed\ 11
else
set guifont=-misc-fixed-medium-r-normal--10-100-75-75-c-60-iso8859-1
endif
set columns=80 lines=50
set guioptions-=T "hide toolbar
"Try to load happy hacking teal colour scheme
"I copy this to ~/.vim/colors/hhteal.vim
silent! colorscheme hhteal
if exists("colors_name") == 0
"Otherwise modify the defaults appropriately
"background set to dark in .vimrc
"So pick appropriate defaults.
hi Normal guifg=gray guibg=black
hi Visual gui=none guifg=black guibg=yellow
"The following removes bold from all highlighting
"as this is usually rendered badly for me. Note this
"is not done in .vimrc because bold usually makes
"the colour brighter on terminals and most terminals
"allow one to keep the new colour while turning off
"the actual bolding.
" Steve Hall wrote this function for me on [email protected]
" See :help attr-list for possible attrs to pass
function! Highlight_remove_attr(attr)
" save selection registers
new
silent! put
" get current highlight configuration
redir @x
silent! highlight
redir END
當你關心的是字體時,爲什麼要包含整個.gvimrc? – 2009-10-08 19:17:33
歡迎您編輯您認爲無關的內容。我只留下染色的東西。 – vehomzzz 2009-10-08 19:20:21
你也在問顏色方案嗎,或者只是字體?如果是後者,「set guifont」系列就足夠了。 – 2009-10-08 19:21:58