Created
August 4, 2014 05:58
-
-
Save samzhao/01ce6d9c74d15a9134d0 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
syntax enable | |
colorscheme monokai | |
set tabstop=2 | |
set softtabstop=2 | |
set expandtab | |
set smarttab | |
set number | |
set showcmd | |
set cursorline | |
set ignorecase | |
set smartcase | |
set autoindent smartindent | |
set fileformats=unix | |
set ff=unix | |
set visualbell | |
filetype indent on | |
set wildmenu | |
set lazyredraw | |
set showmatch | |
set incsearch | |
set hlsearch | |
set foldenable | |
set foldlevelstart=10 | |
set foldnestmax=10 | |
nnoremap <space> za | |
set foldmethod=indent | |
nnoremap j gj | |
nnoremap k gk | |
inoremap jk <esc> | |
" allows cursor change in tmux mode | |
if exists('$TMUX') | |
let &t_SI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=1\x7\<Esc>\\" | |
let &t_EI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=0\x7\<Esc>\\" | |
else | |
let &t_SI = "\<Esc>]50;CursorShape=1\x7" | |
let &t_EI = "\<Esc>]50;CursorShape=0\x7" | |
endif | |
set backup | |
set backupdir=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp | |
set backupskip=/tmp/*,/private/tmp/* | |
set directory=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp | |
set writebackup | |
" Always show statusline | |
set laststatus=2 | |
set rtp+=/Users/raguay/Library/Python/2.7/lib/python/site-packages/powerline/bindings/vim | |
" These lines setup the environment to show graphics and colors correctly. | |
set nocompatible | |
set t_Co=256 | |
let g:minBufExplForceSyntaxEnable = 1 | |
python from powerline.vim import setup as powerline_setup | |
python powerline_setup() | |
python del powerline_setup | |
if ! has('gui_running') | |
set ttimeoutlen=10 | |
augroup FastEscape | |
autocmd! | |
au InsertEnter * set timeoutlen=0 | |
au InsertLeave * set timeoutlen=1000 | |
augroup END | |
endif | |
set laststatus=2 " Always display the statusline in all windows | |
set guifont=Inconsolata\ for\ Powerline:h14 | |
set noshowmode " Hide the default mode text (e.g. -- INSERT -- below the statusline) | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'gmarik/Vundle.vim' | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'mattn/emmet-vim' | |
Plugin 'kien/ctrlp.vim' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'tpope/vim-rails' | |
Plugin 'cakebaker/scss-syntax.vim' | |
Plugin 'kchmck/vim-coffee-script' | |
Plugin 'scrooloose/syntastic' | |
Plugin 'terryma/vim-multiple-cursors' | |
call vundle#end() | |
filetype plugin indent on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment