Skip to content

Instantly share code, notes, and snippets.

@ashleyblackmore
Created May 8, 2012 07:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashleyblackmore/2633198 to your computer and use it in GitHub Desktop.
Save ashleyblackmore/2633198 to your computer and use it in GitHub Desktop.
ash's dotfiles
" options for gui
if has('gui_running')
set guifont=Ubuntu\ Mono\ 12
set guioptions-=T " no toolbar
endif
" No-brainer options
filetype plugin on
set nocompatible
syntax on
" omni for java
autocmd Filetype java setlocal omnifunc=javacomplete#Complete
" Leader key is comma
let mapleader = ","
" Mouse compatibility
set mouse=a
" Line numbers
set number
" Colors
"if has('gui_running')
" colorscheme solarized
" set background=dark
"else
set background=light
endif
call togglebg#map("<F5>")
" Insert a single space
nmap <Space> i_<Esc>r
" Nice Python tab settings
set tabstop=4
set shiftwidth=4
set smarttab
set expandtab
set softtabstop=4
set autoindent
" Clearup white space at EOL
autocmd BufWritePre * :%s/\s\+$//e
set pastetoggle=<F12>
" Clock
set ruler
set rulerformat=%55(%{strftime('%a\ %b\ %e\ %I:%M\ %p')}\ %5l,%-6(%c%V%)\ %P%)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment