Closed. This question is opinion-based。它当前不接受答案。
想要改善这个问题吗?更新问题,以便editing this post用事实和引用来回答。
已关闭6年。
Improve this question
我正在尝试为gvim查找在C/C++中编程的最佳字体。
我目前在〜/.gvimrc中具有以下内容,但我不喜欢它:
想要改善这个问题吗?更新问题,以便editing this post用事实和引用来回答。
已关闭6年。
Improve this question
我正在尝试为gvim查找在C/C++中编程的最佳字体。
我目前在〜/.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
最佳答案
您可以使用:set guifont=*
来显示一个字体选择器对话框。选择字体后,请使用:echo &guifont
查看要放入.gvimrc的内容。 (请记住\
-转义空格)
就个人而言,我喜欢Inconsolata。从我的.gvimrc中:
set guifont=Inconsolata\ 13
关于c++ - 什么是C/C++编程的好gvim guifont,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/1539861/
10-09 13:11