My vim configuration (~/.vimrc, ~/.vim).

Simon Vieille 9699e53627 * Markdown preview 5 months ago
vim 9a2c01dde5 XML snippet: phunit configuration 5 months ago
.gitignore 65ebd36472 Configuration refactored 11 months ago 9699e53627 * Markdown preview 5 months ago
vimrc 9699e53627 * Markdown preview 5 months ago

My vim configuration

Made for php developments.


First, move to your home directory: cd $HOME


Packages for Debian GNU/Linux. You have to adapt it for your system.

$ sudo apt install \
vim \
vim-athena \
vim-common \
vim-gtk \
vim-gui-common \
vim-nox \
vim-runtime \
vim-scripts \
vim-tiny \
wget \
git \
exuberant-ctags \


$ wget
$ chmod +x php-cs-fixer.phar

Instant Markdown preview:

$ sudo npm -g install instant-markdown-d

Notify me if I forgot something :)

Do backups if needed:

$ [ -f .vimrc ] && mv .vimrc .vimrc-back
$ [ -d .vim ] && mv .vim .vim-back

Cloning the configuration

$ git clone deblan-vim
$ ln -rs deblan-vim/vimrc .vimrc
$ ln -rs deblan-vim/vim .vim


$ git clone .vim/bundle/Vundle.vim
$ vim +PluginInstall +qall

Hack the conf!

  • let g:snips_author = "Your username"
  • let g:snips_email = "Your email"
  • let g:snips_github = "Your website"

GVim are configured to use Fantasque Sans Mono: If you want to use another one, edit set guifont=Fantasque\ Sans\ Mono\ 14.

F1 is mapped to run a script named indentation. It's a personal and ugly script that indents the html, css and javascript. If you want to use it, you must install node and run sudo cp .vim/bin/* /usr/local/bin/.