Skip to content

Instantly share code, notes, and snippets.

@btisdall
Created July 20, 2012 14:20
Show Gist options
  • Save btisdall/3150979 to your computer and use it in GitHub Desktop.
Save btisdall/3150979 to your computer and use it in GitHub Desktop.
set ruler
set nohls
syntax on
set autoindent smartindent
set tabstop=4
set shiftround
set shiftwidth=4
set expandtab
set wildmode=longest,list
set vb
set t_Co=256
colors elflord
set encoding=utf-8
au BufNewFile,BufRead firewall.rules set filetype=sh
au BufNewFile,BufRead *.tt2 set filetype=sh
au BufNewFile,BufRead *.pp set filetype=puppet
au BufNewFile,BufRead *.sas set filetype=sas
au BufNewFile,BufRead capfile set filetype=ruby
"if has("autocmd")
" In text files, always limit the width of text to 78 characters
autocmd BufRead *.txt set tw=78
" When editing a file, always jump to the last cursor position
autocmd BufReadPost *
\ if line("'\"") > 0 && line ("'\"") <= line("$") |
\ exe "normal! g'\"" |
\ endif
"endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment