Source

rcfiles / vimrc

Full commit
" Set the title string to the current file being edited
let &titlestring = hostname() . "[vim(" . expand("%:t") . ")]"
if &term == "screen" || &term == "xterm"
  set title
endif

" Jump to last position from previous edit
if has("autocmd")
    au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
    \| exe "normal! g'\"" | endif
endif

" Custom Settings
syntax on
set cindent " smarter smartindent
set tabstop=4 " instead of 8
set shiftwidth=4 " instead of 8
set softtabstop=4 " instead of 0
set background=dark " brighter colors for dark terminals
set showcmd " show the current command in the bottom bar
set showmatch " show the matching {([<
set ignorecase " for searching
set hlsearch " highlight searches
set ruler " display line,col in lower right
set scrolloff=3 " show some context at the bottom of the screen