Skip to content

Instantly share code, notes, and snippets.

@memoryleak
Last active August 29, 2015 14:17
Show Gist options
  • Select an option

  • Save memoryleak/3b7a4c728ab68fb95635 to your computer and use it in GitHub Desktop.

Select an option

Save memoryleak/3b7a4c728ab68fb95635 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment