johnhamelink
3/19/2015 - 10:28 PM

.nvimrc

call plug#begin('~/.nvim/plugged')

Plug 'bling/vim-airline'

" Templates

Plug 'drmingdrmer/xptemplate'
Plug 'johnhamelink/custom-xptemplate-snippets'

" Syntax Checking

Plug 'scrooloose/syntastic'

" Rails

Plug 'tpope/vim-rails'
Plug 'vim-ruby/vim-ruby'
Plug 'kana/vim-textobj-user'
Plug 'nelstrom/vim-textobj-rubyblock'
Plug 'tpope/vim-bundler'
Plug 'tpope/vim-endwise'
Plug 'ecomba/vim-ruby-refactoring'

" Elixir

Plug 'elixir-lang/vim-elixir'

" CSS

Plug 'cakebaker/scss-syntax.vim'
Plug 'Rykka/colorv.vim'

" Markdown

Plug 'plasticboy/vim-markdown'

" Handlebars

Plug 'mustache/vim-mustache-handlebars'

" Git

Plug 'airblade/vim-gitgutter'
Plug 'mattn/webapi-vim'
Plug 'mattn/gist-vim'

" Indentation

Plug 'sdanielf/vim-stdtabs'
Plug 'nathanaelkane/vim-indent-guides'

" Unite

Plug 'Shougo/unite.vim'

" Search

Plug 'kien/ctrlp.vim'
Plug 'rking/ag.vim'

" Backend


Plug 'chriskempson/base16-vim'
Plug 'nanotech/jellybeans.vim'

" NetRW

Plug 'tpope/vim-vinegar'

" EditorConfig


Plug 'editorconfig/editorconfig-vim'

call plug#end()

set laststatus=2
let g:airline_powerline_fonts=1
let g:airline#extensions#syntastic#enabled = 1
let g:airline#extensions#tabline#enabled = 0

set shortmess=atTiOI

let g:gist_clip_command = 'pbcopy'
let g:gist_open_browser_after_post = 1
let g:gist_private = 1

set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
set autoindent
set smartindent
let g:indent_guides_enable_on_vim_startup = 1

nnoremap <leader>y :Unite history/yank<cr>
nnoremap <leader>s :Unite -quick-match buffer<cr>

set nohlsearch
set incsearch
set ignorecase
set wildignore=*.swp,*.bak,*.pyc,*.class
set magic
set wildmode=longest:full,list:full

set visualbell
set noerrorbells
set noerrorbells visualbell t_vb=
autocmd GUIEnter * set visualbell t_vb=

let mapleader="\\"
let g:mapleader="\\"

syntax on
colorscheme jellybeans

if has("gui_running")
  set background=dark
  colorscheme jellybeans
endif
set guifont=Meslo\ LG\ S\ Regular\ for\ Powerline:h11


set autochdir
let g:netrw_banner=0

set nowrap
set number

set listchars=tab:▒\ ,trail:⎵
set list


set lazyredraw
au VimResized * :wincmd =
nnoremap <silent> <C-w>+ :exe "resize " . (winheight(0) * 3/2)<CR>
nnoremap <silent> <C-w>- :exe "resize " . (winheight(0) * 2/3)<CR>

" Disabled Q (ex)
nnoremap Q <nop>

" Enable per-project vimrcs
set exrc   " enable per-directory .vimrc files
set secure " disable unsafe commands in local .vimrc files

" In Neovim, use the unnamed register to access
" the keyboard (when available)
set unnamedclip