Skip to content

Instantly share code, notes, and snippets.

@kevinquinnyo
Created September 25, 2016 21:04
Show Gist options
  • Save kevinquinnyo/9edb095d1670ae9f372630ca9ae51894 to your computer and use it in GitHub Desktop.
Save kevinquinnyo/9edb095d1670ae9f372630ca9ae51894 to your computer and use it in GitHub Desktop.
set nocompatible " be iMproved, required
filetype off " required
"set paste
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
Plugin 'tpope/vim-fugitive'
" Plugin 'scrooloose/syntastic'
Plugin 'scrooloose/nerdtree'
Plugin 'kien/ctrlp.vim'
" Plugin 'joonty/vim-phpqa'
" Plugin 'bpearson/vim-phpcs'
Plugin 'tobyS/vmustache'
Plugin 'tobyS/pdv'
Plugin 'ervandew/supertab'
Plugin 'shawncplus/phpcomplete.vim'
Plugin 'arnaud-lb/vim-php-namespace'
Plugin 'StanAngeloff/php.vim'
Plugin 'groenewege/vim-less'
Plugin 'flazz/vim-colorschemes'
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
" filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
" NERDTree Settings
let NERDTreeShowHidden=1
let NERDTreeIgnore=[]
" Syntastic Settings
" set statusline+=%#warningmsg#
" set statusline+=%{SyntasticStatuslineFlag()}
" set statusline+=%*
" let g:syntastic_always_populate_loc_list = 1
" let g:syntastic_auto_loc_list = 1
" let g:syntastic_check_on_open = 1
" let g:syntastic_check_on_wq = 0
" Codesniffer Settings:
let g:phpqa_codesniffer_cmd='/usr/bin/phpcs'
let g:phpqa_codesniffer_args = "--standard=CakePHP"
" let Vimphpcs_Standard='CakePHP'
syntax on
" set background=dark
" size of a hard tabstop
set tabstop=4
"
" size of an "indent"
set shiftwidth=4
"
" a combination of spaces and tabs are used to simulate tab stops at a width
" other than the (hard)tabstop
set softtabstop=4
set expandtab
set smarttab
inoremap <Leader>e <C-O>:call PhpExpandClass()<CR>
noremap <Leader>e :call PhpExpandClass()<CR>
" colorscheme molokai
function! PhpSyntaxOverride()
hi! def link phpDocTags phpDefine
hi! def link phpDocParam phpType
endfunction
augroup phpSyntaxOverride
autocmd!
autocmd FileType php call PhpSyntaxOverride()
augroup END
set expandtab
set tabstop=4
set shiftwidth=4
set softtabstop=4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment