Created
April 16, 2013 16:43
-
-
Save hygl/5397475 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
set transparency=5 | |
set gfn=Source\ Code\ Pro\ for\ Powerline:h14 |
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
" Use Vim settings, rather then Vi settings (much better!). | |
" This must be first, because it changes other options as a side effect. | |
set nocompatible | |
filetype plugin on | |
"Powerline | |
set rtp+=~/.vim/bundle/powerline/powerline/bindings/vim | |
set laststatus=2 | |
set t_Co=256 | |
"let g:Powerline_symbols = 'unicode' | |
" allow backspacing over everything in insert mode | |
if has("vms") | |
set nobackup " do not keep a backup file, use versions instead | |
else | |
set backup " keep a backup file | |
endif | |
set history=50 " keep 50 lines of command line history | |
set ruler " show the cursor position all the time | |
set showcmd " display incomplete commands | |
set incsearch " do incremental searching | |
set paste | |
"indent as in the emacs | |
set cindent | |
set smartindent | |
set autoindent | |
set expandtab | |
set tabstop=2 | |
set shiftwidth=2 | |
" Auto expand tabs to spaces | |
set expandtab | |
set ruler | |
set hlsearch | |
" keep a copy of last edit | |
" if this throws errors, make sure the backup dir exists | |
set backup | |
set backupdir=~/.vim/backup/ | |
set wildmode=longest,list | |
" Also switch on highlighting the last used search pattern. | |
if &t_Co > 2 || has("gui_running") | |
syntax on | |
endif | |
if has("autocmd") | |
filetype plugin indent on | |
autocmd FileType text setlocal textwidth=78 | |
" always jump to last edit position when opening a file | |
autocmd BufReadPost * | |
\ if line("'\"") > 0 && line("'\"") <= line("$") | | |
\ exe "normal g`\"" | | |
\ endif | |
endif | |
set number | |
call pathogen#infect() | |
syntax enable | |
if has('gui_running') | |
set background=dark | |
endif | |
colorscheme jellybeans | |
set guifont=Source\ Code\ Pro\ for\ Powerline:h14 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment