CB2100
CB2100

Reputation: 19

Vim preferences

I've searched high and low but cannot get the correct syntax etc. I'd like to set my vim_rc file so I'm using the evening theme and 16pt Lucida console text as a default. I've tried many combinations and I am not having much joy on the web. At present, I'm receiving the following error:

 Error detected while processing C:\Program Files 
(x86)\Vim\_vimrc:

line   47:

E518: Unknown option: Console\ 14

and my vim file (based on web advice) looks like the following

  if $VIMRUNTIME =~ ' '
    if &sh =~ '\<cmd'
      if empty(&shellxquote)
        let l:shxq_sav = ''
        set shellxquote&
      endif
      let cmd = '"' . $VIMRUNTIME . '\diff"'
    else
      let cmd = substitute($VIMRUNTIME, ' ', '" ', '') . '\diff"'
    endif
  else
    let cmd = $VIMRUNTIME . '\diff'
  endif
  let cmd = substitute(cmd, '!', '\!', 'g')
  silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3
  if exists('l:shxq_sav')
    let &shellxquote=l:shxq_sav
  endif
endfunction
set expandtab
set tabstop=4
set softtabstop=4
set shiftwidth=4
set autoindent
set textwidth=80
set guifont=Lucida Console\ 14

Upvotes: 0

Views: 148

Answers (2)

Gerry Harp
Gerry Harp

Reputation: 159

in _vimrc file:

set guifont=Lucida_Console:h14

Upvotes: 0

gdupras
gdupras

Reputation: 751

You have to escape spaces with a backslash. You've already done so for the space after "Console". You just need to also escape the one before "Console".

set guifont=Lucida\ Console\ 14

Upvotes: 1

Related Questions