Skip to content

Instantly share code, notes, and snippets.

@papajuans
Created September 28, 2009 03:09
Show Gist options
  • Save papajuans/195114 to your computer and use it in GitHub Desktop.
Save papajuans/195114 to your computer and use it in GitHub Desktop.
" Show syntax coloring
syntax enable
set tabstop=4
set autoindent
set hls
colorscheme desert
" Show line numbers
" set number
" Incremental search, ingore case, unless all caps
set incsearch
set ignorecase
set smartcase
" No vi compatibility
set nocompatible
" Show matching parens
set showmatch
" Show current mode
set showmode
set showcmd
" Show current position
set ruler
"-------------------------------------------------------
" STATUSBAR
" ------------------------------------------------------
set laststatus=2
set statusline=
set statusline+=%-3.3n\ " buffer number
set statusline+=%f\ " file name
set statusline+=%h%m%r%w " flags
set statusline+=\[%{strlen(&ft)?&ft:'none'}, " filetype
set statusline+=%{&encoding}, " encoding
set statusline+=%{&fileformat}] " file format
set statusline+=%= " right align
set statusline+=%-10.(%l,%c%V%)\ %<%P " offset
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment