I'm not a big fan of emacs but I can help you with vim: Create two files in your home directory: ~/.vimrc and ~/.gvimrc.
Put this in your ~/.vimrc:
Code:
set nocompatible
syntax on
And here's a dead simple .gvimrc:
This tells vim not try to be fully compatible with the old vi editor, and it should display colors. The contents of the .gvimrc just makes gvim (vim with GTK2 graphical interface) use the same settings as when you run vim in console mode (it uses the ~/.vimrc file, which it normally wouldn't).
Here's my .vimrc:
Code:
set nocompatible
syntax on
set showmatch
set showmode
set ic
set vb
set mouse=a
" Make vim silent
set noerrorbells
set vb
" Tabs and indenting
set ts=4
set sw=4
set smarttab
set autoindent
set smartindent
""""" Mappings
" Get rid of highlighted search hits
nmap <silent> <C-N> :silent noh<CR>
" Indent the current code block
nmap <silent> <C-I> >i{
...and here's my .gvimrc:
Code:
so ~/.vimrc
set guifont=ProggySquareTT\ 12
colo oceanlight
Hope that helps!
Håkan