This repository contains my vim/neovim config that I use as a PHP IDE.
Download and execute this shell script
See below 'Additional steps for manual installation'
git clone https://github.com/Linuxbrew/brew.git ~/.linuxbrew
// add to .zshrc
export PATH="$HOME/.linuxbrew/bin:$PATH"
export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH"
export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH"
source ~/.zshrc
brew install neovim/neovim/neovim
git clone --recursive https://github.com/johgh/vim .vim
ln -s ~/.vim ~/.config/nvim
nvim +PlugInstall +qall
Download and execute this shell script
See below 'Additional steps for manual installation'
cd ~
# clean Vim files
rm -Rf .vim .vimrc .viminfo .vimbackup .vimswap .vimundo .vimviews
# get .vim dir
git clone --recursive https://github.com/johgh/vim .vim
# install plugins from command line
vim -E -u NONE -S ~/.vim/bundles.vim +PluginInstall +qall
# symlink .vimrc to $HOME
ln -s $HOME/.vim/.vimrc .
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install
# include in .zshrc, for terminal completion:
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
sudo apt-get install silversearcher-ag
sudo apt-get install php-codesniffer
On file /etc/php-codesniffer/CodeSniffer.conf put this for PSR2 support (PHP code style standard):
<?php
$phpCodeSnifferConfig = array (
'default_standard' => 'PSR2',
)
?>
cp -R ~/.vim/fonts/* ~/.local/share/fonts
fc-cache -f ~/.local/share/fonts
# purge current vim version (if any)
sudo apt-get purge vim-*
# add this repo
echo 'deb http://ppa.launchpad.net/pkg-vim/vim-daily/ubuntu UBUNTU_VERSION_HERE main' | sudo tee -a /etc/apt/sources.list
# or this other one
echo 'deb http://ppa.launchpad.net/pi-rho/dev/ubuntu UBUNTU_VERSION_HERE main' | sudo tee -a /etc/apt/sources.list
# update and install gvim
sudo apt-get update && sudo apt-get install vim vim-gnome
# Vim 7.3.584 with python2 support required
# e.g.: https://launchpad.net/~kalakris/+archive/ubuntu/vim
# install with Vundle
# install build packages and compile
# (repeat this step if some YCM update requires it in the future)
sudo apt-get install build-essential cmake python-dev
$HOME/.vim/bundle/YouCompleteMe/install.sh
sudo apt-get install wmctrl
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
# put these on .vimrc
execute pathogen#infect()
call pathogen#helptags()
syntax enable
filetype plugin indent on
git submodule add <github url>
- Add 'ignore = dirty' on your .gitmodules file for submodules that generate internal files
cd ~/.vim
# update repository files
git pull
# update submodules
git submodule update --init --recursive
# pull in the changes from main repo and submodules (same as the 2 above)
git pull --recurse-submodules
# upgrade specific plugin
cd bundle/<plugin>
git pull origin master
# upgrade all plugins
git submodule foreach git pull origin master
# delete the relevant section from the .gitmodules file at the root of the parent project
git add .gitmodules
# delete the relevant section from the config file located in the .git directory at the root of the project
git rm --cached path/to/submodule
rm -rf .git/modules/submodule_name
git commit -m "Removed <vendor> submodule." # only necessary if submodule was comitted
rm -rf path/to/submodule
- Download third party software
$ cd ~
$ git clone https://github.com/johgh/thirdparty
-
Download and install Eclipse Kepler
-
Install PDT on Eclipse: Open Eclipse and go to
Help
>Install New Software...
>Add...
>Archive...
> and selectpdt-Update-3.2.0.201306051924.zip
file from thirdparty repository -
Install Eclim into Eclipse
$ cd thirdparty/
$ java -Dvim.skip=true -Declipse.home=/opt/eclipse -jar eclim_2.3.4.jar install
Check if PDT feature is installed on eclim startup, if not, reinstall in GUI mode (double click .jar file) then select 'do not install Vim files' and install pdt features when asked