gvim configuration does not work like it should

Posted by ganjan on Ask Ubuntu See other posts from Ask Ubuntu or by ganjan
Published on 2011-03-01T18:22:49Z Indexed on 2011/03/02 23:33 UTC
Read the original article Hit count: 328

Filed under:
|
|

Hi. I have a little problem with my vim config.

This what I got in my 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()

The colorsheme work, but the font has way to much spacing. Every sentence is twice as long. I installed the Inconsolata font and I have the same config on my windows 7 box and it works fine.

© Ask Ubuntu or respective owner

Related posts about configuration

Related posts about vim