Created
December 27, 2010 20:11
-
-
Save drudge/756495 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
"" default to insert mode for most code files | |
"au BufWinEnter * set noinsertmode | |
"au BufWinEnter .vimrc,*.php,*.js,*.inc,*.jade,*.c,*.ejs,*.css,*.html,*.htm set insertmode | imap <buffer> <Esc> <C-l> | |
scriptencoding utf-8 | |
set encoding=utf-8 | |
set number | |
set cinoptions= | |
set noautoindent | |
set foldenable | |
set laststatus=2 " always show the status line | |
set cursorline " highlight current linefiletype indent off | |
set wildmenu " turn on command line completion wild style | |
set wildmode=list:longest " turn on wild mode huge list | |
set wildignore=*.dll,*.o,*.obj,*.bak,*.exe,*.pyc,*.jpg,*.gif,*.png | |
set mouse=a | |
set iskeyword+=_,$,@,%,# " none of these are word dividers | |
set nostartofline | |
set novisualbell | |
set showmatch | |
set expandtab | |
set ignorecase | |
set infercase | |
set shiftround | |
set smartcase | |
set shiftwidth=4 | |
set softtabstop=4 | |
set tabstop=8 | |
set ruler | |
set backspace=eol,start,indent " backspace crosses newlines? | |
set clipboard=unnamed | |
set scrolloff=4 | |
set hlsearch | |
set incsearch | |
let mapleader=',' | |
set autochdir | |
"set completeopt= " don't use a pop up menu for completions | |
filetype plugin indent on " load filetype plugins/indent settings | |
filetype on | |
colorscheme sidetracked | |
syntax on " syntax highlighting on | |
" taglist stuff | |
let Tlist_Ctags_Cmd='/usr/local/bin/ctags' | |
let Tlist_Auto_Open='1' | |
let Tlist_File_Fold_Auto_Close='1' | |
let Tlist_Enable_Fold_Column='0' | |
let Tlist_Exit_OnlyWindow='1' | |
let Tlist_Compact_Format='1' | |
let Tlist_Process_File_Always='1' | |
let Tlist_Show_Menu='1' | |
autocmd FileType python set omnifunc=pythoncomplete#Complete | |
autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS | |
autocmd FileType html set omnifunc=htmlcomplete#CompleteTags | |
autocmd FileType css set omnifunc=csscomplete#CompleteCSS | |
autocmd FileType xml set omnifunc=xmlcomplete#CompleteTags | |
autocmd FileType php set omnifunc=phpcomplete#CompletePHP | |
autocmd FileType c set omnifunc=ccomplete#Complete | |
set nocompatible " explicitly get out of vi-compatible mode | |
set noexrc " don't use local version of .(g)vimrc, .exrc | |
set cpoptions=aABceFsmq | |
" ||||||||| | |
" ||||||||+-- When joining lines, leave the cursor | |
" ||||||| between joined lines | |
" |||||||+-- When a new match is created (showmatch) | |
" |||||| pause for .5 | |
" ||||||+-- Set buffer options when entering the | |
" ||||| buffer | |
" |||||+-- :write command updates current file name | |
" ||||+-- Automatically add <CR> to the last line | |
" ||| when using :@r | |
" |||+-- Searching continues at the end of the match | |
" || at the cursor position | |
" ||+-- A backslash has no special meaning in mappings | |
" |+-- :write updates alternative file name | |
" +-- :read updates alternative file name | |
set statusline=%F%m%r%h%w[%L][%{&ff}]%y[%p%%][%04l,%04v] | |
" | | | | | | | | | | | | |
" | | | | | | | | | | + current | |
" | | | | | | | | | | column | |
" | | | | | | | | | +-- current line | |
" | | | | | | | | +-- current % into file | |
" | | | | | | | +-- current syntax in | |
" | | | | | | | square brackets | |
" | | | | | | +-- current fileformat | |
" | | | | | +-- number of lines | |
" | | | | +-- preview flag in square brackets | |
" | | | +-- help flag in square brackets | |
" | | +-- readonly flag in square brackets | |
" | +-- rodified flag in square brackets | |
" +-- full path to file in the buffer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment