Created
May 8, 2012 07:02
-
-
Save ashleyblackmore/2633198 to your computer and use it in GitHub Desktop.
ash's dotfiles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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