"stop Vi compatibility mode - allows multiple undo, ...
set nocompatible
"shows line numbers
set nu
"incremental search - search as you type
set incsearch
"automatic indent, great for programming
set autoindent
"set backup
"show current line and other details in the bottom row
set ruler
"shows current command in the bottom row, before execution
set showcmd
"detect and highlight syntax
set syntax=on
"set line wrapping
set wrap
"filetype detection and textwidth
autocmd FileType text setlocal textwidth=80
"filetype specifiv indent
filetype plugin indent on
"use backspace as usual
set backspace=eol,indent,start
"command history
set history=1000
"a tab is 4 spaces wide
set shiftwidth=4
"not very sure about this
set tabstop=4
"same here
set softtabstop=4
"folding method
set foldmethod=marker
"foldmarker, so Vim will know where to fold
set foldmarker={{{,}}}
"not sure about this
set showfulltag
"show possible completion on the bottom command line
set wildmenu
set wildmode=list:full
"console vim gets to use the mouse

vim ~ gvim this way

set mouse=a
"scroll ahead, to prevent ugly line scrolling
set scrolloff=3
"no beep
set visualbell
"colorscheme - relaxing
colo oceandeep
"c comment - rather crude

must make it use multipliers
map! <F2> ^[0i/* ^[$a */
"c uncommment, same thing
map! <F3> ^[0xx^[$xxi
"folding marker, for automatic folding
imap <F4>> ^[0i/* {{{ ^[$a */
imap <C-F4> ^[0i/* }}} ^[$a */
"nice Windows font, good for Linux too
set guifont=Courier\ New\ Bold\ 13
"tab completion
"Tab = Ctrl-P - complete previous
"Shift-Tab = Ctrl-N - complete next
"Ctrl-Tab = Tab
"omnisense tab completion
imap <Tab> <C-x><C-o>
imap <C-Tab> <Space><Space><Space><Space>
"HTML.vim plugin
let g:html_tag_case="lowercase"
"moving between tabs with Alt-number
imap <A-1> <Esc>:tabn 1<CR>i
imap <A-2> <Esc>:tabn 2<CR>i
imap <A-3> <Esc>:tabn 3<CR>i
imap <A-4> <Esc>:tabn 4<CR>i
imap <A-5> <Esc>:tabn 5<CR>i
imap <A-6> <Esc>:tabn 6<CR>i
imap <A-7> <Esc>:tabn 7<CR>i
imap <A-8> <Esc>:tabn 8<CR>i
imap <A-9> <Esc>:tabn 9<CR>i
map <A-1> :tabn 1<CR>
map <A-2> :tabn 2<CR>
map <A-3> :tabn 3<CR>
map <A-4> :tabn 4<CR>
map <A-5> :tabn 5<CR>
map <A-6> :tabn 6<CR>
map <A-7> :tabn 7<CR>
map <A-8> :tabn 8<CR>
map <A-9> :tabn 9<CR>
.vimrc-ul meu.
E comentan în engleză pentru că încerc să mă obişnuiesc să comentez totul în engleză

O să pun şi schema mea de culori, oceandeep - este o temă preluată de pe
www.vim.org, şi puţin modificată. Am modificat un pic şi pluginul HTML.vim (nu cel default, ci unul găsit pe net), ca să fie mai XHTML-compliant.