My VIM configuration and plugins for developing laravel apps
- colorschemes
- ctrlp.vim
- delimitMate
- dracula-theme
- html5.vim
- NERDTree
- NERDTree-git-plugin
- php.vim
- syntastic
- tagbar
- vim-airline
- vim-airline-themes
- vim-autotag
- vim-blade
- vim-fugitive
- vim-gitgutter
- vim-php-namespace
- vim-surround
- YouCompleteMe
- Backup your existing ~/.vim directory
mv ~/.vim ~/.vim_backup
- Clone this repository to ~/.vim
git clone https://github.com/sembrex/myvim.git ~/.vim
- Enter ~/.vim directory
cd ~/.vim
- Clone all plugins
git submodule update --init --recursive
Click here for official installation guide
Universal ctags is required for generating tags with PHP Trait support. See vim-php-namespace documentation here for more detail.
These tags are required by vim-php-namespace
- Using universal ctags
cd your_project_path
ctags -R --PHP-kinds=cfit -f tags.vendors vendor
ctags -R --PHP-kinds=cfit app
- Using ctags
cd your_project_path
ctags -R --PHP-kinds=cfi --regex-php="/^[ \t]*trait[ \t]+([a-z0_9_]+)/\1/t,traits/i" -f tags.vendors vendor
ctags -R --PHP-kinds=cfi --regex-php="/^[ \t]*trait[ \t]+([a-z0_9_]+)/\1/t,traits/i" app
Note: if you change above tags filename, make sure you change tags and autotag configuration in vimrc line 77 & 78