Created
September 28, 2010 07:48
-
-
Save blat/600580 to your computer and use it in GitHub Desktop.
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
set nocompatible " get out of horrible vi-compatible mode | |
set backspace=2 " make backspace work normal | |
set whichwrap+=<,>,[,],h,l " backspace and cursor keys wrap to | |
set lazyredraw " do not redraw while running macros (much faster) (LazyRedraw) | |
set backup " make backup file | |
set backupdir=~/.vim/backup " where to put backup file | |
set directory=~/.vim/temp " directory is the directory for temp file | |
set noswapfile | |
set background=dark " we are using a dark background | |
if has("gui") | |
set guifont=Consolas:h10 " Consolas is awesome | |
set guioptions=acg " advanced, try help 'go | |
set nomousehide " don't hide the mouse | |
colorscheme metacosm " my color scheme (only works in GUI) | |
endif | |
syntax on " syntax highlighting on | |
set number " turn on line numbers | |
set ruler " Always show current positions along the bottom | |
set linespace=0 " space it out a little more (easier to read) | |
set cmdheight=1 " the command bar is 1 high | |
set nostartofline " leave my cursor where it was | |
set mouse=a " use mouse everywhere | |
set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [ASCII=\%03.3b]\ [HEX=\%02.2B]\ [POS=%04l,%04v][%p%%]\ [LEN=%L] | |
set laststatus=2 " always show the status line | |
set numberwidth=4 " If we have over 9999 lines, ohh, boo-hoo | |
set showcmd " show the command being typed | |
set hidden " you can change buffer without saving | |
set shortmess=atI " shortens messages to avoid 'press a key' prompt | |
set report=0 " tell us when anything is changed via :... | |
set noerrorbells " don't make noise | |
set novisualbell " don't blink | |
set formatoptions=tcrq " See Help (complex) | |
set shiftround " when at 3 spaces, and I hit > ... go to 4, not 5 | |
set nosmartindent " smartindent (filetype indenting instead) | |
set autoindent " autoindent (should be overwrote by cindent or filetype indent) | |
set cindent " do c-style indenting | |
set softtabstop=4 " unify | |
set shiftwidth=4 " unify | |
set tabstop=4 " real tabs should be 4, but they will show with set list on | |
set copyindent " but above all -- follow the conventions laid before us | |
set expandtab " no real tabs please! | |
set preserveindent " but above all -- follow the conventions laid before us | |
set list " we do what to show tabs, to ensure we get them out of my files | |
set listchars=tab:>-,trail:- " show tabs and trailing whitespace | |
set ignorecase " case insensitive by default | |
set smartcase " if there are caps, go case-sensitive | |
set showmatch " show matching brackets | |
set matchtime=5 " how many tenths of a second to blink matching brackets for | |
set nohlsearch " do not highlight searched for phrases | |
set incsearch " BUT do highlight as you type you search phrase | |
set scrolloff=5 " Keep 5 lines (top/bottom) for scope | |
set sidescrolloff=5 " Keep 5 lines at the size | |
set wildmenu " turn on wild menu | |
set wildmode=list:longest " turn on wild menu in special format (long format) | |
set wildignore=*.dll,*.o,*.obj,*.bak,*.exe,*.pyc,*.swp,*.jpg,*.gif,*.png " ignore some formats |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment