Created
September 14, 2010 11:59
-
-
Save jiphex/578924 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
" essential, makes good stuff work | |
set nocompatible | |
" if we can do syntax, do it, | |
if has('syntax') && (&t_Co > 2 || has("gui_running")) | |
syntax on | |
endif | |
" what mode are we in? (all the time) | |
set showmode | |
" search options (makes sense over defaults) | |
set ignorecase | |
set smartcase | |
set incsearch | |
" make tab do real things | |
inoremap <Tab> <C-T> | |
inoremap <S-Tab> <C-D> | |
" show stuff at the bottom right (commands as they are executed) | |
set showcmd | |
" ruler at the bottom | |
set ruler | |
" lots of history etc. | |
set history=1000 | |
set undolevels=1000 | |
" ignore shit | |
set wildignore=*.swp,*.bak,*.pyc,*.class | |
" terminal stuff (title,bell etc.) | |
set title | |
set visualbell | |
set noerrorbells | |
" activate clever stuff based on filetype | |
filetype on | |
filetype plugin on | |
filetype indent on | |
" do spaces not tabs in python. | |
autocmd filetype python set expandtab | |
" css coolness | |
autocmd FileType css set smartindent | |
" eww extra files, no thanks. | |
set nobackup | |
set noswapfile | |
" go on then, we'll take mouse support. | |
set mouse=a | |
" non-gash colour scheme | |
colors evening | |
" highlight search matches | |
set hlsearch | |
" funky shiz (autocomplete file name menu) | |
set wildmenu | |
set wildmode=list:longest,full | |
" dont close stuff, just hide it (dont have to save when editing new windows) | |
set hidden | |
" no wrapping lines thanks | |
set nowrap | |
" but we'll have hashes at the end of the line where we dont wrap. | |
set listchars=tab:»·,trail:·,extends:#,nbsp:· | |
" tabs are 4 spaces ffs. | |
set tabstop=4 | |
" backspace over linebreaks etc. | |
set backspace=indent,eol,start | |
" work out how to do indenting using magic | |
set autoindent | |
" auto indent when pasting | |
set copyindent | |
" line numbers | |
set number | |
" make tabs work like python (a bit) | |
set shiftwidth=4 | |
set shiftround | |
set showmatch | |
set smarttab | |
" load magic filetype stuff | |
filetype on | |
" for formatting git edit messages | |
autocmd FileType EDITMSG set formatoptions=tq textwidth=72 | |
" ;w instead of <shift>:w | |
nnoremap ; : | |
" clear search with ,/ | |
nmap <silent> ,/ :let @/=""<CR> | |
" sudo to write | |
cmap w!! w !sudo tee % >/dev/null | |
" show the status bar | |
set laststatus=2 | |
" use hjkl damnit, no fricking cursors. | |
map <up> <nop> | |
map <down> <nop> | |
map <left> <nop> | |
map <right> <nop> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment