Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
174 lines (166 sloc) 3.98 KB
" =========================================
" VUNDLE
" =========================================
set nocompatible
filetype off
" Vundle config
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'Gundo'
Bundle 'MarcWeber/vim-addon-sql'
Bundle 'airblade/vim-gitgutter'
Bundle 'bling/vim-airline'
Bundle 'vim-airline/vim-airline-themes'
Bundle 'chriskempson/base16-vim'
Bundle 'derekwyatt/vim-scala'
Bundle 'ervandew/supertab'
Bundle 'grep.vim'
Bundle 'jiangmiao/auto-pairs'
Bundle 'kien/ctrlp.vim'
Bundle 'megaannum/vimside'
Bundle 'scrooloose/nerdtree'
Bundle 'scrooloose/syntastic'
Bundle 'sheerun/vim-polyglot'
Bundle 'tpope/vim-commentary'
Bundle 'tpope/vim-fugitive'
Bundle 'tpope/vim-rails'
Bundle 'tpope/vim-endwise'
Bundle 'tpope/vim-eunuch'
Bundle 'vim-scripts/ctags.vim'
Bundle 'w0ng/vim-hybrid'
" Bundle 'Lokaltog/vim-easymotion'
Bundle 'tpope/vim-rvm'
Bundle 'tpope/vim-repeat'
" Bundle 'szw/vim-ctrlspace'
Bundle 'Keithbsmiley/rspec.vim'
Bundle 'geekjuice/vim-spec'
Bundle 'jaxbot/semantic-highlight.vim'
Bundle 'morhetz/gruvbox'
Bundle 'mhinz/vim-startify'
Bundle 'whatyouhide/vim-gotham'
Bundle 'reedes/vim-colors-pencil'
Bundle 'baskerville/bubblegum'
Bundle 'haya14busa/incsearch.vim'
Bundle 'slim-template/vim-slim'
Bundle 'ajh17/Spacegray.vim'
Bundle 'tpope/vim-sensible'
Bundle 'tpope/vim-vinegar'
Bundle 'thinkpixellab/flatland'
Bundle 'stefanoverna/vim-i18n'
Bundle 'NLKNguyen/papercolor-theme'
Bundle 'rking/ag.vim'
Bundle 'joshdick/onedark.vim'
Bundle 'joshdick/airline-onedark.vim'
Bundle 'junegunn/gv.vim'
" =========================================
" GENERAL
" =========================================
"
set encoding=utf-8
set termencoding=utf-8
set spelllang=en_gb
syntax on sync minlines=256
filetype plugin indent on
"
set t_Co=256
set nocompatible
set nocursorcolumn
set nocursorline
set scrolljump=10
" =========================================
" BASIC CONFIGURATION
" =========================================
" project
let $PROJECT_HOME='~/projects'
set backspace=indent,eol,start
set history=1000
set showcmd
set noshowmode
set nowrap
set wildmenu
set wildmode=list:longest,list:full
set wildignore+=*.o,*.obj,.git,*.rbc,*.pyc,*.zip,*.gz,*.bz,*.tar,*.jpg,*.png,*.gif,*.avi,*.wmv,*.ogg,*.mp3,*.mov,*.DS_Store,*.orig
set clipboard+=unnamed
set ruler
"
set incsearch
set hlsearch
set ignorecase
set smartcase
set showmatch
"
set endofline
set number
set linebreak
set showbreak=...
"set autowrite
"set autochdir
" set keymodel=startsel,stopsel
set ttyfast
set lcs=tab:\ \ ,eol:¬,trail:•,extends:»,precedes:«
set novisualbell
set noerrorbells
" set cinoptions=:0,p0,t0
" set cinwords=if,else,while,do,for,switch,case
set formatoptions=tcqr
set foldmethod=manual
set switchbuf=usetab,newtab
set lazyredraw
"
" " don't highlight matched brackets etc
" let loaded_matchparen = 1
"
" " Time out on key codes but not mappings.
" " Basically this makes terminal Vim work sanely.
set notimeout
set ttimeout
set ttimeoutlen=10
"
" " Better Completion
set complete=.,w,b,u,t
set completeopt=longest,menuone,preview
"
" " Save when losing focus
au FocusLost * :silent! wall
"
" " Resize splits when the window is resized
au VimResized * :wincmd =
"
augroup trailing
au!
au InsertEnter * :set listchars-=trail:
augroup END
" split settings
set splitright
set splitbelow
"
" hide buffers when not displayed
set hidden
set backup " Enable creation of backup file.
set backupdir=~/.vim/backup " Where backups will go.
set directory=~/.vim/tmp " Where temporary files will go.
set noswapfile
"
" indent settings
set shiftwidth=2
set softtabstop=2
set expandtab
set autoindent
set fo=1
"
" make uses real tabs
au FileType make set noexpandtab
"
set laststatus=2
set statusline=[%n]\ %<%f%m%r
" set statusline+=%{fugitive#statusline()}%=
set statusline+=%w\ <%{&fileformat}>%\=\ [%o]\ %l,%c%V\/%L\ \ %P
"
" =========================================
" IMPORTS
" =========================================
so ~/.vim/gui.vim
so ~/.vim/keybinds.vim
so ~/.vim/plugins.vim
so ~/.vim/buffers.vim