我的vim配置有一个小问题。
这就是我在我的home/user/.gvimrc里得到的
syntax enable "Enable syntax hl
colorscheme peaksea
set background=dark
set gfn=Inconsolata:h11
set nonu
set history=1000
set scrolloff=3
set number " turn on line numbers
" Save a global session file on session close
nmap SQ <ESC>:mksession! ~/.vim/session/Session.vim<CR>:wqa<CR>
function! RestoreSession()
if argc() == 0 "vim called without arguments
execute 'source ~/.vim/session/Session.vim'
end
endfunction
autocmd VimEnter * call RestoreSession()色素起作用,但字体的间距很大。每句话都有两倍长。我安装了Inconsolata字体,在我的windows 7框上也有相同的配置,它运行良好。
发布于 2011-03-02 20:23:14
您对'guifont'设置使用了错误的格式。FontName:h10格式适用于Windows,但不适用于*nix。相反,使用:set gfn=*打开字体对话框来选择您的字体和大小。然后,您可以检查当前操作系统的正确格式。或者你可以读:help 'gfn'。
https://askubuntu.com/questions/28614
复制相似问题