Skip to content

Instantly share code, notes, and snippets.

@halan
Last active December 26, 2015 20:59
Show Gist options
  • Save halan/7213169 to your computer and use it in GitHub Desktop.
Save halan/7213169 to your computer and use it in GitHub Desktop.
set t_Co=256
if has('vim_starting')
set nocompatible
set runtimepath+=~/.vim/bundle/neobundle.vim/
endif
call neobundle#rc(expand('~/.vim/bundle/'))
NeoBundleFetch 'Shougo/neobundle.vim'
NeoBundle 'kien/ctrlp.vim'
NeoBundle 'bzx/vim-theme-pack'
NeoBundle 'rking/ag.vim'
NeoBundle 'bling/vim-airline'
NeoBundle 'ervandew/supertab'
NeoBundle 'nono/vim-handlebars'
NeoBundle 'rstacruz/sparkup', {'rtp': 'vim/'}
NeoBundle 'kchmck/vim-coffee-script'
NeoBundle 'majutsushi/tagbar'
NeoBundle 'chrisbra/csv.vim'
NeoBundle 'scrooloose/syntastic'
NeoBundle 'tpope/vim-surround'
NeoBundle 'tpope/vim-unimpaired'
NeoBundle 'tpope/vim-repeat'
NeoBundle 'tpope/vim-commentary'
NeoBundle 'tpope/vim-abolish'
NeoBundle 'tpope/vim-speeddating'
NeoBundle 'tpope/vim-fugitive'
NeoBundle 'tpope/vim-rails'
NeoBundle 'tpope/vim-endwise'
NeoBundle 'edsono/vim-matchit'
NeoBundle 'msanders/snipmate.vim'
NeoBundle 'mattn/emmet-vim'
NeoBundle 'tpope/vim-sensible'
NeoBundle 'terryma/vim-multiple-cursors'
NeoBundle 'terryma/vim-expand-region'
NeoBundle 'scrooloose/nerdtree'
NeoBundle 'Lokaltog/vim-easymotion'
NeoBundle 'ecomba/vim-ruby-refactoring'
NeoBundle 'ciaranm/detectindent'
NeoBundle 'tomasr/molokai'
NeoBundle 'myusuf3/numbers.vim'
NeoBundle 'airblade/vim-gitgutter'
set background=dark
colorscheme Tomorrow-Night-Eighties
noremap <C-Up> :m .-2<CR>gv
noremap <C-Down> :m .+1<CR>gv
vnoremap <C-Up> :m '<-2<CR>gv=gv
vnoremap <C-Down> :m '>+1<CR>gv=gv
noremap <leader>n :NERDTreeToggle<CR>
nnoremap <leader>s :Gstatus<CR>
nnoremap <leader>b :Gbrowse<CR>
nnoremap <leader>c :Gcommit<CR>
set laststatus=2
set tabstop=2
set shiftwidth=2
set expandtab
set smarttab
set smartindent
set colorcolumn=80
set listchars=eol:¬,tab:>–,trail:\•,extends:>,precedes:<
set list
set magic
highlight clear SignColumn
let mapleader=','
nnoremap <F4> :set invpaste paste?<CR>
set pastetoggle=<F4>
set showmode
let g:SuperTabDefaultCompletionType = 'context'
let g:airline_powerline_fonts = 1
let g:airline#extensions#tabline#enabled = 1
nnoremap <F3> :NumbersToggle<CR>
set number
autocmd bufenter * if ( winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
filetype plugin indent on
NeoBundleCheck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment