El meu .vimrc

set nocompatible
set backspace=indent,eol,start
set background=dark
if has("vms")
    set nobackup
else
    set nobackup
endif
set ruler
set showcmd
set incsearch
map Q gq
if &t_Co > 2 || has("gui_running")
    syntax on
    set hlsearch
endif
if has("autocmd")
    filetype plugin indent on
    augroup vimrcEx
    au!
    autocmd FileType text setlocal textwidth=78
    autocmd FileType text setlocal spell spelllang=ca
    autocmd BufReadPost *
        \ if line("'\"") > 0 && line("'\"") <= line("$") |
        \   exe "normal g`\"" |
        \ endif

    augroup END
else
    set autoindent
endif " has("autocmd")

nmap ,s :source $VIM/.vimrc
nmap ,v :e $VIM/.vimrc 

set encoding=utf8
set fileencoding=utf8

"set nowrap

set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab

set laststatus=2
highlight StatusLine cterm=none ctermbg=darkblue
highlight StatusLineNC cterm=none ctermbg=darkblue
highlight VertSplit cterm=none ctermbg=darkblue

let python_highlight_all=1

nnoremap <C-N> :next<Enter>
nnoremap <C-P> :prev<Enter>
set confirm

autocmd FileType python ab _head 
            \#!/usr/bin/env python<cr>
            \# -*- coding: utf8 -*-<cr>
            \<cr>
            \__version__ = "$Revision$"<cr>
            \# $URL$<cr>
            \<cr>
            \__date__    = "$Date$"<cr>
            \__id__      = "$Id$"<cr>

ab _pre  
            \print "<pre>";<cr>
            \print_r(  );<cr>
            \print "</pre>";<ESC>kkwl

set printdevice=OfficeJet-Pro-L7700

vimrc (last edited 2008-08-19 09:07:35 by AlbertManyà)