Skip to content

Instantly share code, notes, and snippets.

@tblyler
Created May 4, 2015 15:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tblyler/f947f4205be853549e66 to your computer and use it in GitHub Desktop.
Save tblyler/f947f4205be853549e66 to your computer and use it in GitHub Desktop.
scriptencoding utf-8
call plug#begin('~/.nvim/plugged')
Plug 'FelikZ/ctrlp-py-matcher'
Plug 'Lokaltog/vim-easymotion'
Plug 'Valloric/YouCompleteMe', { 'do': './install.sh --clang-completer --omnisharp-completer' }
Plug 'airblade/vim-gitgutter'
Plug 'bronson/vim-trailing-whitespace'
Plug 'fatih/vim-go'
Plug 'kien/ctrlp.vim'
Plug 'majutsushi/tagbar'
Plug 'nanotech/jellybeans.vim'
Plug 'rking/ag.vim'
Plug 'scrooloose/nerdcommenter'
Plug 'scrooloose/nerdtree'
Plug 'scrooloose/syntastic'
Plug 'terryma/vim-multiple-cursors'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-surround'
call plug#end()
" speed improvements for ctrlp
let g:ctrlp_user_command = 'ag %s -i --nocolor --nogroup --hidden
\ --ignore .git
\ --ignore .svn
\ --ignore .hg
\ --ignore .DS_Store
\ --ignore "**/*.pyc"
\ -g ""'
let g:ctrlp_match_func = { 'match': 'pymatcher#PyMatch' }
" end speed improvements for ctrlp
colorscheme jellybeans " Color scheme
set bs=2 " Allow backspacing over everything in insert mode
set ai " Always set auto-indenting on
set history=50 " Keep 50 lines of command history
set ruler " Show the cursor position all the time
syntax on " Syntax highlighting
set hlsearch " Search highlighting
set list " Show tabs
set listchars=tab:\|\ " Show tabs by using the pipe symbol
set number " Show line numbers
set cursorline " Highlight entire line that cursor is on
let g:tagbar_left = 1 " Make tagbar appear on the left
autocmd CompleteDone * pclose " Remove scratchpad after selection
let g:syntastic_check_on_wq = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_php_checkers = ['php', 'phpcs']
if getcwd() =~ '^/Users/tblyler/repos/bbs'
let g:syntastic_php_phpcs_args='--report=csv --standard=/Users/tblyler/repos/commonstandards/Barracuda/ruleset.xml --tab-width=4'
else
let g:syntastic_php_phpcs_args='--report=csv --standard=PSR2'
endif
let g:syntastic_go_checkers = ['go', 'golint', 'gofmt', 'gotype', 'govet']
" Key mappings
map <F2> :NERDTreeToggle <CR>
map <F3> :TagbarToggle <CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment