Showing posts with label vim. Show all posts
Showing posts with label vim. Show all posts

Monday, October 27, 2014

White-on-blue Theme for Vim

If you want to make vim look like the old white-on-blue of WordPerfect (and frankly, who doesn't?), you can apply these changes to a colour file.

I started with desert.vim (usually in a directory like /usr/share/vim/vim74/colors), copied to ~/.vim/colors and made the following changes:

26,27c24 < ""hi Normal guifg=White guibg=grey20 < hi Normal guifg=grey90 guibg=#061c34 --- > hi Normal guifg=White guibg=grey20 48,49c45 < ""hi SpecialKey guifg=yellowgreen < hi SpecialKey guifg=darkblue --- > hi SpecialKey guifg=yellowgreen 73d68 < hi SpellBad guisp=darkred

There are probably more changes that could (should?) be made, but that gets the primary effect.

Monday, May 9, 2011

Mercurial/Vim compatibility

If you want to use vim as your editor in the .hgrc file (on Windows), install vim to a directory with no spaces in the path.

Wednesday, April 27, 2011

Vim Options

Some options for the .vimrc file:
colorscheme desert
set spell
set lines=60
set columns=90
set nobackup
set tabstop=2
set shiftwidth=2
set expandtab
set ignorecase
set nowrapscan
set autoindent
set smartindent
set listchars=tab:>\ ,eol:$
set list