我试图找到一个最佳的字体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 vim@vim.org
" 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
Run Code Online (Sandbox Code Playgroud)
Lau*_*ves 20
您可以使用:set guifont=*以显示字体选择器对话框.一旦选择了字体用法,就:echo &guifont可以查看.gvimrc中的内容.(记得 - \景点空间)
就个人而言,我喜欢Inconsolata.从我的.gvimrc:
set guifont=Inconsolata\ 13
Run Code Online (Sandbox Code Playgroud)
可以在那里使用Consolas字体吗?这是我见过的最好的monosize字体.
好的,有可能.检查下面的截图:
图片http://img.flashtux.org/upload/img132432527b55x895f9d81.png
| 归档时间: |
|
| 查看次数: |
10761 次 |
| 最近记录: |