Friday, November 29, 2019

vimrc debug help

Hi guys,

New to the vim_use group - hi :) Apologies if I'm breaking policy with this! Please point me to policy guides if I am.

I'm struggling to set the guifont from my .vimrc and I don't know how to debug it :( Can you advise?

I've been using vim (I use gvim almost exclusively) for a couple of years, but only tend to learn reactively - I face a problem and I search how to solve it. But I can't seem to fix this one! I've included my .vimrc below. I'm using the command that I believe *should* change the guifont, but it doesn't work from my .vimrc. It gets set to (I guess) the default of 'Monospace 16' whenever I open a new vim window. Can any of you see what I'm doing wrong?

Thanks in advance!

(N.B. I pretty much only code in linux world so I haven't got around to trying to set guifont based on OS.

Also, if you see commands where you infer I'm trying to do something, but you know it won't work, please say :) )

.vimrc:

syntax on
set guifont=Monospace\ 5
set backspace=indent,eol,start
set number
set ignorecase
set hlsearch
set cursorline
set listchars=eol:$,tab:>-,trail:~,extends:>,precedes:<
set list
set lines=15
set columns=80
set directory^=$HOME/.vim/tmp//
set ruler
set autoindent
set noswapfile
filetype plugin indent on

au BufRead,BufNewFile *.v setfiletype systemverilog
au BufRead,BufNewFile *.sv setfiletype systemverilog
au BufRead,BufNewFile *.svh setfiletype systemverilog
au BufRead,BufNewFile *.sva setfiletype systemverilog
au BufRead,BufNewFile *.vc setfiletype systemverilog
au BufRead,BufNewFile *.xml setfiletype xml

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/1c67ebf9-6c4d-4108-ad9f-759ca9473883%40googlegroups.com.

No comments: