Vim configuration file
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --color=auto'
alias ll='ls -laF --color=auto'
alias ls='ls -F --color=auto'
alias psg='ps aux | grep -v grep | grep -i -e VSZ -e'
alias wget='wget -c --trust-server-names'
backup() { cp $@ $@.backup-`date +%y%m%d`; }
EDITOR=vim
export EDITOR
"" Encoding
set encoding=utf-8
set fileencoding=utf-8
set fileencodings=utf-8
"" Fix backspace indent
set backspace=indent,eol,start
"" Tabs. May be overriten by autocmd rules
set tabstop=4
set softtabstop=0
set shiftwidth=4
set expandtab
"" Enable hidden buffers
set hidden
"" Searching
set hlsearch
set incsearch
set ignorecase
set smartcase
"" Encoding
set bomb
set binary
set ttyfast
"" Directories for swp files
"set nobackup
"set noswapfile
set fileformats=unix,dos,mac
set showcmd
set shell=/bin/bash
"" Visual
syntax on
set ruler
set number