Last active
September 2, 2016 11:11
-
-
Save khusseini/947649a782b389a498ceadf7431d0700 to your computer and use it in GitHub Desktop.
Workstation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax on | |
set nocompatible | |
set number | |
set backspace=2 | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' | |
Plugin 'StanAngeloff/php.vim' | |
Plugin 'shougo/vimproc.vim' | |
Plugin 'shougo/unite.vim' | |
Plugin 'shawncplus/phpcomplete.vim' | |
Plugin 'm2mdas/phpcomplete-extended-symfony' | |
Plugin 'noahfrederick/vim-composer' | |
Plugin 'joonty/vdebug' | |
call vundle#end() | |
function! PhpSyntaxOverride() | |
hi! def link phpDocTags phpDefine | |
hi! def link phpDocParam phpType | |
endfunction | |
augroup phpSyntaxOverride | |
autocmd! | |
autocmd FileType php call PhpSyntaxOverride() | |
augroup END | |
filetype plugin indent on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zend_extension=xdebug.so | |
xdebug.remote_enable=on | |
xdebug.remote_handler=dbgp | |
xdebug.remote_host=localhost | |
xdebug.remote_port=9000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-common vim-gui-common | |
sudo apt-get build-dep vim-gnome | |
sudo apt-get install liblua5.1-dev luajit libluajit-5.1 python-dev ruby-dev libperl-dev libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev | |
sudo rm -rf /usr/local/share/vim | |
sudo rm /usr/bin/vim | |
sudo mkdir /usr/include/lua5.1/include | |
sudo mv /usr/include/lua5.1/*.h /usr/include/lua5.1/include/ | |
sudo ln -s /usr/bin/luajit-2.0.4 /usr/bin/luajit | |
cd ~ | |
git clone https://github.com/vim/vim | |
cd vim/src | |
make distclean | |
./configure --with-features=huge \ | |
--enable-rubyinterp \ | |
--enable-largefile \ | |
--disable-netbeans \ | |
--enable-pythoninterp \ | |
--with-python-config-dir=/usr/lib/python2.7/config \ | |
--enable-perlinterp \ | |
--enable-luainterp \ | |
--with-luajit \ | |
--enable-gui=auto \ | |
--enable-fail-if-missing \ | |
--with-lua-prefix=/usr/include/lua5.1 \ | |
--enable-cscope | |
make | |
sudo make install | |
cd ~ | |
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
wget https://gist.githubusercontent.com/mozzymoz/947649a782b389a498ceadf7431d0700/raw/.vimrc -O ~/.vimrc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get update | |
sudo apt-get install -y terminator git virtualbox vagrant php-cli php-xdebug | |
sudo apt-get install -y apt-transport-https ca-certificates | |
sudo wget https://gist.githubusercontent.com/mozzymoz/947649a782b389a498ceadf7431d0700/raw/20-xdebug.ini -O /etc/php/7.0/cli/conf.d/20-xdebug.ini | |
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
sudo sh -c "echo 'deb https://apt.dockerproject.org/repo ubuntu-xenial main' > /etc/apt/sources.list.d/docker.list" | |
sudo apt-get update | |
sudo apt-get purge -y lxc-docker | |
sudo apt-cache policy docker-engine | |
sudo apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual | |
sudo apt-get install -y docker-engine | |
curl -s https://gist.githubusercontent.com/mozzymoz/947649a782b389a498ceadf7431d0700/raw/install-vim.sh | sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment