Skip to content

Instantly share code, notes, and snippets.

@hungryblank
Created October 12, 2009 13:31
Show Gist options
  • Save hungryblank/208383 to your computer and use it in GitHub Desktop.
Save hungryblank/208383 to your computer and use it in GitHub Desktop.
syntax on
"Rainer paste
set ffs=unix " only support unix (could also be dos,mac)
syntax on " syntax highlighting on
set ruler " Always show current positions along the bottom
set noerrorbells " don't make noise
set showmatch " show matching brackets
set mat=5 " how many tenths of a second to blink matching brackets for
set so=3 " Keep 3 lines (top/bottom) for scope
set novisualbell " don't blink
hi User1 term=underline cterm=bold ctermfg=Cyan ctermbg=Blue guifg=#40ffff guibg=#0000aa
"set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [ASCII=\%03.3b]\ [HEX=\%02.2B]\ [POS=%04l,%04v][%p%%]\ [LEN=%L]
"set statusline=%1*%F%m%r%h%w%=%(%c%V\ %l/%L\ %P%)
set statusline=%1*%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [ASCII=\%03.3b]\ [HEX=\%02.2B]\ [POS=%04l,%04v][%p%%]\ [LEN=%L]
set laststatus=2 " always show the status line
set ai " autoindent
set si " smartindent
set tabstop=2 " tab spacing (settings below are just to unify it)
set expandtab
set softtabstop=2 " unify
set shiftwidth=2 " unify
" Show trailing whitespace (works for me)
set wildmode=longest:full
set wildmenu
:highlight ExtraWhitespace ctermbg=darkblue guibg=darkblue
:match ExtraWhitespace /\s\+$/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment